]> git.eshelyaron.com Git - emacs.git/commitdiff
(texinfo-menu-copy-old-description): do not copy `@detailmenu' or
authorRobert J. Chassell <bob@rattlesnake.com>
Sat, 10 Jan 2004 15:01:51 +0000 (15:01 +0000)
committerRobert J. Chassell <bob@rattlesnake.com>
Sat, 10 Jan 2004 15:01:51 +0000 (15:01 +0000)
`@end menu' as descriptions!

lisp/textmodes/texnfo-upd.el

index 17b0affac9208e188396ff54a90634c7140d36b5..a539ed9ff2ce970695950048b0db8d6c15ac29d8 100644 (file)
@@ -618,10 +618,11 @@ Point must be located just after the node name.  Point left before description.
 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