X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=std11.el;h=14aa54bebd22a50e02aabddef9fe2699605a8ae6;hb=4949fd2a2cbe6f0883d861d49b4f69858dfb3f6f;hp=f82c64133c564e2feb3455018a6c66e06ef547b1;hpb=28f24587109365abe69c8bc963ecea412f70a9a6;p=elisp%2Fflim.git diff --git a/std11.el b/std11.el index f82c641..14aa54b 100644 --- a/std11.el +++ b/std11.el @@ -19,8 +19,8 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the -;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, -;; Boston, MA 02111-1307, USA. +;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +;; Boston, MA 02110-1301, USA. ;;; Code: @@ -43,8 +43,8 @@ The optional argument BOUNDs the search; it is a buffer position." (goto-char (match-beginning 0)) (if (re-search-forward "^$" bound t) (goto-char (1- (match-beginning 0))) - (end-of-line)) - (point))) + (end-of-line) + (point)))) ;;;###autoload (defun std11-fetch-field (name) @@ -481,7 +481,7 @@ be the result." (cons (cons 'word elt) rest) ))))) -(defun std11-parse-word-or-comment (lal) +(defun std11-parse-word-or-comment-or-period (lal) (let ((ret (std11-parse-token-or-comment lal))) (if ret (let ((elt (car ret)) @@ -493,12 +493,15 @@ be the result." ) ((assq 'comment elt) (cons (cons 'comment-word elt) rest) + ) + ((string-equal (cdr (assq 'specials elt)) ".") + (cons (cons 'period elt) rest) )) )))) (defun std11-parse-phrase (lal) (let (ret phrase) - (while (setq ret (std11-parse-word-or-comment lal)) + (while (setq ret (std11-parse-word-or-comment-or-period lal)) (setq phrase (append phrase (cdr (car ret)))) (setq lal (cdr ret)) ) @@ -763,6 +766,8 @@ represents addr-spec of RFC 822." ((eq name 'comment) "") ((eq name 'quoted-string) (concat "\"" (cdr token) "\"")) + ((eq name 'domain-literal) + (concat "[" (cdr token) "]")) (t (cdr token))) ))) seq "")