]> git.eshelyaron.com Git - emacs.git/commitdiff
(lm-summary): Strip off -*-
authorAndreas Schwab <schwab@suse.de>
Thu, 3 Dec 1998 09:39:41 +0000 (09:39 +0000)
committerAndreas Schwab <schwab@suse.de>
Thu, 3 Dec 1998 09:39:41 +0000 (09:39 +0000)
specifications from summary line.

lisp/emacs-lisp/lisp-mnt.el

index a9a43d8ccdd74c5d3c9c05e629ca8ebd97f0e37f..09e1218d4e6c0f1f3014da6d9ef97fc7e8ef8d57 100644 (file)
@@ -250,7 +250,12 @@ The returned value is a list of strings, one per line."
           (looking-at lm-header-prefix)
           (progn (goto-char (match-end 0))
                  (looking-at "[^ ]+[ \t]+--+[ \t]+\\(.*\\)")))
-         (buffer-substring-no-properties (match-beginning 1) (match-end 1)))
+         (let ((summary (buffer-substring-no-properties (match-beginning 1)
+                                                        (match-end 1))))
+           ;; Strip off -*- specifications.
+           (if (string-match "[ \t]*-\\*-.*-\\*-" summary)
+               (substring summary 0 (match-beginning 0))
+             summary)))
       (if file
          (kill-buffer (current-buffer)))
       )))