Mercurial > emacs
changeset 53553:e7fef31e8d98
(texinfo-menu-copy-old-description): do not copy `@detailmenu' or
`@end menu' as descriptions!
author | Robert J. Chassell <bob@rattlesnake.com> |
---|---|
date | Sat, 10 Jan 2004 15:01:51 +0000 |
parents | bf35ae17f543 |
children | 1bdcd59e6a40 |
files | lisp/textmodes/texnfo-upd.el |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/textmodes/texnfo-upd.el Sat Jan 10 01:20:39 2004 +0000 +++ b/lisp/textmodes/texnfo-upd.el Sat Jan 10 15:01:51 2004 +0000 @@ -618,10 +618,11 @@ Single argument, END-OF-MENU, is position limiting search." (skip-chars-forward "[:.,\t\n ]+") ;; don't copy a carriage return at line beginning with asterisk! + ;; don't copy @detailmenu or @end menu as descriptions! ;; do copy a description that begins with an `@'! ;; !! Known bug: does not copy descriptions starting with ^|\{?* etc. (if (and (looking-at "\\(\\w+\\|@\\)") - (not (looking-at "\\(^\\* \\|^@end menu\\)"))) + (not (looking-at "\\(^\\* \\|^@detailmenu\\|^@end menu\\)"))) (buffer-substring (point) (save-excursion