(lm-summary): Strip off -*-
specifications from summary line.
This commit is contained in:
parent
ee9ec2a52c
commit
b162a8c47a
1 changed files with 6 additions and 1 deletions
|
@ -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)))
|
||||
)))
|
||||
|
|
Loading…
Add table
Reference in a new issue