aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-08-15 12:30:59 +0000
committerRichard M. Stallman1995-08-15 12:30:59 +0000
commitdcb38be88e968b88c61d86ffc6d958c0957309ec (patch)
tree72f815bf9513af8d32ff8ad38fac15670be528ee
parent6e4bd6ae29e88b72bc4446f4e3c7166c9b95d33f (diff)
downloademacs-dcb38be88e968b88c61d86ffc6d958c0957309ec.tar.gz
emacs-dcb38be88e968b88c61d86ffc6d958c0957309ec.zip
(sc-attribs-extract-namestring): If name has <...>,
treat everything before that as the full name.
-rw-r--r--lisp/mail/supercite.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/mail/supercite.el b/lisp/mail/supercite.el
index 6a5dc746343..5c5d7efd0f7 100644
--- a/lisp/mail/supercite.el
+++ b/lisp/mail/supercite.el
@@ -1,5 +1,7 @@
1;;; supercite.el --- minor mode for citing mail and news replies 1;;; supercite.el --- minor mode for citing mail and news replies
2 2
3;; Copyright (C) 1993 Free Software Foundation, Inc.
4
3;; Author: 1993 Barry A. Warsaw, Century Computing, Inc. <bwarsaw@cen.com> 5;; Author: 1993 Barry A. Warsaw, Century Computing, Inc. <bwarsaw@cen.com>
4;; Maintainer: supercite-help@anthem.nlm.nih.gov 6;; Maintainer: supercite-help@anthem.nlm.nih.gov
5;; Created: February 1993 7;; Created: February 1993
@@ -9,8 +11,6 @@
9 11
10;; supercite.el revision: 3.54 12;; supercite.el revision: 3.54
11 13
12;; Copyright (C) 1993 Barry A. Warsaw
13
14;; This file is part of GNU Emacs. 14;; This file is part of GNU Emacs.
15 15
16;; GNU Emacs is free software; you can redistribute it and/or modify 16;; GNU Emacs is free software; you can redistribute it and/or modify
@@ -893,6 +893,11 @@ substring."
893This should be the author's full name minus an optional title." 893This should be the author's full name minus an optional title."
894 (let ((namestring 894 (let ((namestring
895 (or 895 (or
896 ;; If there is a <...> in the name,
897 ;; treat everything before that as the full name.
898 ;; Even if it contains parens, use the whole thing.
899 (and (string-match " *<.*>" from 0)
900 (sc-name-substring from 0 (match-beginning 0) 0))
896 (sc-name-substring 901 (sc-name-substring
897 from (string-match "(.*)" from 0) (match-end 0) 1) 902 from (string-match "(.*)" from 0) (match-end 0) 1)
898 (sc-name-substring 903 (sc-name-substring