diff options
| author | Roland McGrath | 1992-03-24 06:18:35 +0000 |
|---|---|---|
| committer | Roland McGrath | 1992-03-24 06:18:35 +0000 |
| commit | 433a300a35bec1fd56dbe83a3274e1d14e6f45e0 (patch) | |
| tree | 3fee4396ed64423fddc0a71bbe05b581d822cc13 | |
| parent | 22f4ef2ef2a2dc08f9c9c8722f36f19db232cef9 (diff) | |
| download | emacs-433a300a35bec1fd56dbe83a3274e1d14e6f45e0.tar.gz emacs-433a300a35bec1fd56dbe83a3274e1d14e6f45e0.zip | |
*** empty log message ***
| -rw-r--r-- | lisp/mail/mailabbrev.el | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lisp/mail/mailabbrev.el b/lisp/mail/mailabbrev.el index a7dc19052c4..438ca88d26c 100644 --- a/lisp/mail/mailabbrev.el +++ b/lisp/mail/mailabbrev.el | |||
| @@ -365,6 +365,15 @@ line." | |||
| 365 | (bol (save-excursion | 365 | (bol (save-excursion |
| 366 | (re-search-backward mail-abbrev-mode-regexp) | 366 | (re-search-backward mail-abbrev-mode-regexp) |
| 367 | (match-end 0)))) | 367 | (match-end 0)))) |
| 368 | (goto-char bol) | ||
| 369 | (while (re-search-forward | ||
| 370 | "\\(\\s *,?\\s *\\(\"?\\)\\(/[^,]+\\)\\2\\)\\(,\\|\\s +\\|$\\)" | ||
| 371 | p t) | ||
| 372 | (save-excursion | ||
| 373 | (goto-char p) | ||
| 374 | (insert "\nFCC: " (buffer-substring (match-beginning 3) | ||
| 375 | (match-end 3)))) | ||
| 376 | (delete-region (match-beginning 1) (match-end 1))) | ||
| 368 | (if (and (if (boundp 'auto-fill-function) | 377 | (if (and (if (boundp 'auto-fill-function) |
| 369 | auto-fill-function | 378 | auto-fill-function |
| 370 | auto-fill-hook) | 379 | auto-fill-hook) |
| @@ -383,7 +392,6 @@ line." | |||
| 383 | (if (> (current-column) fill-column) | 392 | (if (> (current-column) fill-column) |
| 384 | (let ((fill-prefix (or fp "\t"))) | 393 | (let ((fill-prefix (or fp "\t"))) |
| 385 | (do-auto-fill)))))))) | 394 | (do-auto-fill)))))))) |
| 386 | |||
| 387 | 395 | ||
| 388 | ;;; Syntax tables and abbrev-expansion | 396 | ;;; Syntax tables and abbrev-expansion |
| 389 | 397 | ||
| @@ -539,8 +547,7 @@ characters which may be a part of the name of a mail-alias.") | |||
| 539 | (defun mail-interactive-insert-alias (&optional alias) | 547 | (defun mail-interactive-insert-alias (&optional alias) |
| 540 | "Prompt for and insert a mail alias." | 548 | "Prompt for and insert a mail alias." |
| 541 | (interactive (list (completing-read "Expand alias: " mail-aliases nil t))) | 549 | (interactive (list (completing-read "Expand alias: " mail-aliases nil t))) |
| 542 | (if alias | 550 | (insert (or (and alias (symbol-value (intern-soft alias mail-aliases))) ""))) |
| 543 | (insert alias))) | ||
| 544 | 551 | ||
| 545 | (defun abbrev-hacking-next-line (&optional arg) | 552 | (defun abbrev-hacking-next-line (&optional arg) |
| 546 | "Just like `next-line' (\\[next-line]) but expands abbrevs when at \ | 553 | "Just like `next-line' (\\[next-line]) but expands abbrevs when at \ |