mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-07 16:10:46 -08:00
(sc-attribs-extract-namestring): Do look for
doublequotes after finding angle brackets.
This commit is contained in:
parent
9f0b1f0976
commit
f42dc896db
1 changed files with 7 additions and 1 deletions
|
|
@ -896,8 +896,14 @@ This should be the author's full name minus an optional title."
|
|||
;; If there is a <...> in the name,
|
||||
;; treat everything before that as the full name.
|
||||
;; Even if it contains parens, use the whole thing.
|
||||
;; On the other hand, we do look for quotes in the usual way.
|
||||
(and (string-match " *<.*>" from 0)
|
||||
(sc-name-substring from 0 (match-beginning 0) 0))
|
||||
(let ((before-angles
|
||||
(sc-name-substring from 0 (match-beginning 0) 0)))
|
||||
(if (string-match "\".*\"" before-angles 0)
|
||||
(sc-name-substring
|
||||
before-angles (match-beginning 0) (match-end 0) 1)
|
||||
before-angles)))
|
||||
(sc-name-substring
|
||||
from (string-match "(.*)" from 0) (match-end 0) 1)
|
||||
(sc-name-substring
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue