Mercurial > emacs
comparison lisp/mh-e/mh-alias.el @ 67681:3a8785724cca
* mh-acros.el:
* mh-alias.el:
* mh-comp.el:
* mh-customize.el:
* mh-e.el:
* mh-funcs.el:
* mh-gnus.el:
* mh-identity.el:
* mh-inc.el:
* mh-index.el:
* mh-init.el:
* mh-junk.el:
* mh-mime.el:
* mh-pick.el:
* mh-print.el:
* mh-seq.el:
* mh-speed.el:
* mh-utils.el:
Follow commenting conventions. Don't use ;;; form so much, except for
headings. Precede headings with page feed. This was mostly already
done, so I made it a convention. Did not update copyright on a couple
of files since this was an insignificant change.
author | Bill Wohler <wohler@newt.com> |
---|---|
date | Mon, 19 Dec 2005 23:32:16 +0000 |
parents | f5ade15d46f2 |
children | 7ff92ad99326 |
comparison
equal
deleted
inserted
replaced
67680:b7c68d3426e1 | 67681:3a8785724cca |
---|---|
36 (require 'mh-e) | 36 (require 'mh-e) |
37 (load "cmr" t t) ; Non-fatal dependency for | 37 (load "cmr" t t) ; Non-fatal dependency for |
38 ; completing-read-multiple. | 38 ; completing-read-multiple. |
39 (eval-when-compile (defvar mail-abbrev-syntax-table)) | 39 (eval-when-compile (defvar mail-abbrev-syntax-table)) |
40 | 40 |
41 | |
42 | |
41 ;;; Autoloads | 43 ;;; Autoloads |
44 | |
42 (eval-when (compile load eval) | 45 (eval-when (compile load eval) |
43 (ignore-errors | 46 (ignore-errors |
44 (require 'mailabbrev) | 47 (require 'mailabbrev) |
45 (require 'multi-prompt))) | 48 (require 'multi-prompt))) |
46 | 49 |
69 include only system aliases and the passwd file, since personal alias files | 72 include only system aliases and the passwd file, since personal alias files |
70 listed in your `Aliasfile:' MH profile component are automatically included. | 73 listed in your `Aliasfile:' MH profile component are automatically included. |
71 You can update the alias list manually using \\[mh-alias-reload].") | 74 You can update the alias list manually using \\[mh-alias-reload].") |
72 | 75 |
73 | 76 |
77 | |
74 ;;; Alias Loading | 78 ;;; Alias Loading |
75 | 79 |
76 (defun mh-alias-tstamp (arg) | 80 (defun mh-alias-tstamp (arg) |
77 "Check whether alias files have been modified. | 81 "Check whether alias files have been modified. |
78 Return t if any file listed in the Aliasfile MH profile component has been | 82 Return t if any file listed in the Aliasfile MH profile component has been |
226 (if (or (eq mh-alias-alist 'not-read) ; Doesn't exist? | 230 (if (or (eq mh-alias-alist 'not-read) ; Doesn't exist? |
227 (mh-alias-tstamp nil)) ; Out of date? | 231 (mh-alias-tstamp nil)) ; Out of date? |
228 (mh-alias-reload))) | 232 (mh-alias-reload))) |
229 | 233 |
230 | 234 |
235 | |
231 ;;; Alias Expansion | 236 ;;; Alias Expansion |
232 | 237 |
233 (defun mh-alias-ali (alias &optional user) | 238 (defun mh-alias-ali (alias &optional user) |
234 "Return ali expansion for ALIAS. | 239 "Return ali expansion for ALIAS. |
235 ALIAS must be a string for a single alias. | 240 ALIAS must be a string for a single alias. |
310 (let* ((end (point)) | 315 (let* ((end (point)) |
311 (expansion (mh-alias-expand (buffer-substring begin end)))) | 316 (expansion (mh-alias-expand (buffer-substring begin end)))) |
312 (delete-region begin end) | 317 (delete-region begin end) |
313 (insert expansion))))) | 318 (insert expansion))))) |
314 | 319 |
320 | |
315 ;;; Adding addresses to alias file. | 321 ;;; Adding addresses to alias file. |
316 | 322 |
317 (defun mh-alias-suggest-alias (string &optional no-comma-swap) | 323 (defun mh-alias-suggest-alias (string &optional no-comma-swap) |
318 "Suggest an alias for STRING. | 324 "Suggest an alias for STRING. |
319 Don't reverse the order of strings separated by a comma if NO-COMMA-SWAP is | 325 Don't reverse the order of strings separated by a comma if NO-COMMA-SWAP is |
651 (princ "\nLocal User Aliases:\n\n") | 657 (princ "\nLocal User Aliases:\n\n") |
652 (princ passwd-matches)))))) | 658 (princ passwd-matches)))))) |
653 | 659 |
654 (provide 'mh-alias) | 660 (provide 'mh-alias) |
655 | 661 |
656 ;;; Local Variables: | 662 ;; Local Variables: |
657 ;;; indent-tabs-mode: nil | 663 ;; indent-tabs-mode: nil |
658 ;;; sentence-end-double-space: nil | 664 ;; sentence-end-double-space: nil |
659 ;;; End: | 665 ;; End: |
660 | 666 |
661 ;;; arch-tag: 49879e46-5aa3-4569-bece-e5a58731d690 | 667 ;; arch-tag: 49879e46-5aa3-4569-bece-e5a58731d690 |
662 ;;; mh-alias.el ends here | 668 ;;; mh-alias.el ends here |