diff options
| author | Juanma Barranquero | 2002-10-18 08:52:37 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2002-10-18 08:52:37 +0000 |
| commit | 6c83d99f87a471b4c0e49f5fd5e43005176d84de (patch) | |
| tree | b774fe99e04c17797b4207499875e0589e7b1674 | |
| parent | 3d8c35d3b0c9c1302d77ed5abbed271360c6eedc (diff) | |
| download | emacs-6c83d99f87a471b4c0e49f5fd5e43005176d84de.tar.gz emacs-6c83d99f87a471b4c0e49f5fd5e43005176d84de.zip | |
Fix typo in comment.
| -rw-r--r-- | lisp/ediff-mult.el | 118 | ||||
| -rw-r--r-- | lisp/international/ccl.el | 14 | ||||
| -rw-r--r-- | lisp/mail/mail-extr.el | 138 | ||||
| -rw-r--r-- | lisp/net/eudc.el | 12 | ||||
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/octave-mod.el | 2 |
6 files changed, 143 insertions, 143 deletions
diff --git a/lisp/ediff-mult.el b/lisp/ediff-mult.el index e49ab14d2db..8e526c03659 100644 --- a/lisp/ediff-mult.el +++ b/lisp/ediff-mult.el | |||
| @@ -27,7 +27,7 @@ | |||
| 27 | ;; The present file contains all the infrastructure needed for that. | 27 | ;; The present file contains all the infrastructure needed for that. |
| 28 | ;; | 28 | ;; |
| 29 | ;; Generally, to implement a new multisession capability within Ediff, | 29 | ;; Generally, to implement a new multisession capability within Ediff, |
| 30 | ;; you need to tell it | 30 | ;; you need to tell it |
| 31 | ;; | 31 | ;; |
| 32 | ;; 1. How to display the session group buffer. | 32 | ;; 1. How to display the session group buffer. |
| 33 | ;; This function must indicate which Ediff sessions are active (+) and | 33 | ;; This function must indicate which Ediff sessions are active (+) and |
| @@ -53,8 +53,8 @@ | |||
| 53 | ;; HEADER must be a list of SIX elements (nil or string): | 53 | ;; HEADER must be a list of SIX elements (nil or string): |
| 54 | ;; (regexp metaobj1 metaobj2 metaobj3 merge-save-buffer | 54 | ;; (regexp metaobj1 metaobj2 metaobj3 merge-save-buffer |
| 55 | ;; comparison-function) | 55 | ;; comparison-function) |
| 56 | ;; The function ediff-redraw-registry-buffer displays the | 56 | ;; The function ediff-redraw-registry-buffer displays the |
| 57 | ;; 1st - 4th of these in the registry buffer. | 57 | ;; 1st - 4th of these in the registry buffer. |
| 58 | ;; For some jobs some of the members of the header might be nil. | 58 | ;; For some jobs some of the members of the header might be nil. |
| 59 | ;; The meaning of metaobj1, metaobj2, and metaobj3 depend on the job. | 59 | ;; The meaning of metaobj1, metaobj2, and metaobj3 depend on the job. |
| 60 | ;; Typically these are directories where the files to be compared are | 60 | ;; Typically these are directories where the files to be compared are |
| @@ -80,7 +80,7 @@ | |||
| 80 | ;; (whose name is obj1). | 80 | ;; (whose name is obj1). |
| 81 | ;; The nil's are placeholders, which are used internally by ediff. | 81 | ;; The nil's are placeholders, which are used internally by ediff. |
| 82 | ;; 4. Write a function that makes a call to ediff-prepare-meta-buffer | 82 | ;; 4. Write a function that makes a call to ediff-prepare-meta-buffer |
| 83 | ;; passing all this info. | 83 | ;; passing all this info. |
| 84 | ;; You may be able to use ediff-directories-internal as a template. | 84 | ;; You may be able to use ediff-directories-internal as a template. |
| 85 | ;; 5. If you intend to add several related pieces of functionality, | 85 | ;; 5. If you intend to add several related pieces of functionality, |
| 86 | ;; you may want to keep the function in 4 as an internal version | 86 | ;; you may want to keep the function in 4 as an internal version |
| @@ -88,7 +88,7 @@ | |||
| 88 | ;; with different parameters. | 88 | ;; with different parameters. |
| 89 | ;; See how ediff-directories, ediff-merge-directories, and | 89 | ;; See how ediff-directories, ediff-merge-directories, and |
| 90 | ;; ediff-merge-directories-with-ancestor all use | 90 | ;; ediff-merge-directories-with-ancestor all use |
| 91 | ;; ediff-directories-internal. | 91 | ;; ediff-directories-internal. |
| 92 | ;; | 92 | ;; |
| 93 | ;; A useful addition here could be session groups selected by patterns | 93 | ;; A useful addition here could be session groups selected by patterns |
| 94 | ;; (which are different in each directory). For instance, one may want to | 94 | ;; (which are different in each directory). For instance, one may want to |
| @@ -96,7 +96,7 @@ | |||
| 96 | ;; which may be in the same or different directories. Or, one may want to | 96 | ;; which may be in the same or different directories. Or, one may want to |
| 97 | ;; compare all files of the form {something} to files of the form {something}~. | 97 | ;; compare all files of the form {something} to files of the form {something}~. |
| 98 | ;; | 98 | ;; |
| 99 | ;; Implementing this requires writing an collating function, which should pair | 99 | ;; Implementing this requires writing a collating function, which should pair |
| 100 | ;; up appropriate files. It will also require a generalization of the | 100 | ;; up appropriate files. It will also require a generalization of the |
| 101 | ;; functions that do the layout of the meta- and differences buffers and of | 101 | ;; functions that do the layout of the meta- and differences buffers and of |
| 102 | ;; ediff-filegroup-action. | 102 | ;; ediff-filegroup-action. |
| @@ -207,7 +207,7 @@ It is used by commands such as ediff-directories. | |||
| 207 | This hook can be used to save the previous window config, which can be restored | 207 | This hook can be used to save the previous window config, which can be restored |
| 208 | on ediff-quit, ediff-suspend, or ediff-quit-session-group-hook." | 208 | on ediff-quit, ediff-suspend, or ediff-quit-session-group-hook." |
| 209 | :type 'hook | 209 | :type 'hook |
| 210 | :group 'ediff-hook) | 210 | :group 'ediff-hook) |
| 211 | (defcustom ediff-after-session-group-setup-hook nil | 211 | (defcustom ediff-after-session-group-setup-hook nil |
| 212 | "*Hooks run just after a meta-buffer controlling a session group, such as | 212 | "*Hooks run just after a meta-buffer controlling a session group, such as |
| 213 | ediff-directories, is run." | 213 | ediff-directories, is run." |
| @@ -322,7 +322,7 @@ buffers." | |||
| 322 | ;; OBJA, OBJB, OBJC are usually directories involved, but can be different for | 322 | ;; OBJA, OBJB, OBJC are usually directories involved, but can be different for |
| 323 | ;; different jobs. For instance, multifile patch has only OBJA, which is the | 323 | ;; different jobs. For instance, multifile patch has only OBJA, which is the |
| 324 | ;; patch buffer. | 324 | ;; patch buffer. |
| 325 | (defun ediff-make-new-meta-list-header (regexp | 325 | (defun ediff-make-new-meta-list-header (regexp |
| 326 | objA objB objC | 326 | objA objB objC |
| 327 | merge-auto-store-dir | 327 | merge-auto-store-dir |
| 328 | comparison-func) | 328 | comparison-func) |
| @@ -340,7 +340,7 @@ buffers." | |||
| 340 | ;; checks if the session is a meta session | 340 | ;; checks if the session is a meta session |
| 341 | (defun ediff-meta-session-p (session-info) | 341 | (defun ediff-meta-session-p (session-info) |
| 342 | (and (stringp (ediff-get-session-objA-name session-info)) | 342 | (and (stringp (ediff-get-session-objA-name session-info)) |
| 343 | (file-directory-p (ediff-get-session-objA-name session-info)) | 343 | (file-directory-p (ediff-get-session-objA-name session-info)) |
| 344 | (stringp (ediff-get-session-objB-name session-info)) | 344 | (stringp (ediff-get-session-objB-name session-info)) |
| 345 | (file-directory-p (ediff-get-session-objB-name session-info)) | 345 | (file-directory-p (ediff-get-session-objB-name session-info)) |
| 346 | (if (stringp (ediff-get-session-objC-name session-info)) | 346 | (if (stringp (ediff-get-session-objC-name session-info)) |
| @@ -468,7 +468,7 @@ Moves in circular fashion. With numeric prefix arg, skip this many items." | |||
| 468 | ;;; (while (ediff-get-session-status | 468 | ;;; (while (ediff-get-session-status |
| 469 | ;;; (ediff-get-meta-info (current-buffer) pos 'noerror)) | 469 | ;;; (ediff-get-meta-info (current-buffer) pos 'noerror)) |
| 470 | ;;; (setq pos (ediff-previous-meta-overlay-start pos))) | 470 | ;;; (setq pos (ediff-previous-meta-overlay-start pos))) |
| 471 | 471 | ||
| 472 | (if pos (goto-char pos)) | 472 | (if pos (goto-char pos)) |
| 473 | (if (eq ediff-metajob-name 'ediff-registry) | 473 | (if (eq ediff-metajob-name 'ediff-registry) |
| 474 | (if (and (ediff-get-meta-info (current-buffer) pos 'noerror) | 474 | (if (and (ediff-get-meta-info (current-buffer) pos 'noerror) |
| @@ -545,19 +545,19 @@ behavior." | |||
| 545 | lis1 (directory-files auxdir1 nil regexp) | 545 | lis1 (directory-files auxdir1 nil regexp) |
| 546 | lis1 (delete "." lis1) | 546 | lis1 (delete "." lis1) |
| 547 | lis1 (delete ".." lis1) | 547 | lis1 (delete ".." lis1) |
| 548 | lis1 (mapcar | 548 | lis1 (mapcar |
| 549 | (lambda (elt) | 549 | (lambda (elt) |
| 550 | (ediff-add-slash-if-directory auxdir1 elt)) | 550 | (ediff-add-slash-if-directory auxdir1 elt)) |
| 551 | lis1) | 551 | lis1) |
| 552 | auxdir2 (file-name-as-directory dir2) | 552 | auxdir2 (file-name-as-directory dir2) |
| 553 | lis2 (mapcar | 553 | lis2 (mapcar |
| 554 | (lambda (elt) | 554 | (lambda (elt) |
| 555 | (ediff-add-slash-if-directory auxdir2 elt)) | 555 | (ediff-add-slash-if-directory auxdir2 elt)) |
| 556 | (directory-files auxdir2 nil regexp))) | 556 | (directory-files auxdir2 nil regexp))) |
| 557 | 557 | ||
| 558 | (if (stringp dir3) | 558 | (if (stringp dir3) |
| 559 | (setq auxdir3 (file-name-as-directory dir3) | 559 | (setq auxdir3 (file-name-as-directory dir3) |
| 560 | lis3 (mapcar | 560 | lis3 (mapcar |
| 561 | (lambda (elt) | 561 | (lambda (elt) |
| 562 | (ediff-add-slash-if-directory auxdir3 elt)) | 562 | (ediff-add-slash-if-directory auxdir3 elt)) |
| 563 | (directory-files auxdir3 nil regexp)))) | 563 | (directory-files auxdir3 nil regexp)))) |
| @@ -614,16 +614,16 @@ behavior." | |||
| 614 | merge-autostore-dir | 614 | merge-autostore-dir |
| 615 | comparison-func) | 615 | comparison-func) |
| 616 | difflist)) | 616 | difflist)) |
| 617 | 617 | ||
| 618 | (setq common-part | 618 | (setq common-part |
| 619 | (cons | 619 | (cons |
| 620 | ;; metalist header | 620 | ;; metalist header |
| 621 | (ediff-make-new-meta-list-header regexp | 621 | (ediff-make-new-meta-list-header regexp |
| 622 | auxdir1 auxdir2 auxdir3 | 622 | auxdir1 auxdir2 auxdir3 |
| 623 | merge-autostore-dir | 623 | merge-autostore-dir |
| 624 | comparison-func) | 624 | comparison-func) |
| 625 | (mapcar | 625 | (mapcar |
| 626 | (lambda (elt) | 626 | (lambda (elt) |
| 627 | (ediff-make-new-meta-list-element | 627 | (ediff-make-new-meta-list-element |
| 628 | (concat auxdir1 elt) | 628 | (concat auxdir1 elt) |
| 629 | (concat auxdir2 elt) | 629 | (concat auxdir2 elt) |
| @@ -686,9 +686,9 @@ behavior." | |||
| 686 | (setq common (sort (ediff-copy-list common) 'string-lessp)) | 686 | (setq common (sort (ediff-copy-list common) 'string-lessp)) |
| 687 | 687 | ||
| 688 | ;; return result | 688 | ;; return result |
| 689 | (cons | 689 | (cons |
| 690 | ;; header -- has 6 elements. Meta buffer is prepended later by | 690 | ;; header -- has 6 elements. Meta buffer is prepended later by |
| 691 | ;; ediff-prepare-meta-buffer | 691 | ;; ediff-prepare-meta-buffer |
| 692 | (ediff-make-new-meta-list-header regexp | 692 | (ediff-make-new-meta-list-header regexp |
| 693 | auxdir1 nil nil | 693 | auxdir1 nil nil |
| 694 | merge-autostore-dir nil) | 694 | merge-autostore-dir nil) |
| @@ -696,7 +696,7 @@ behavior." | |||
| 696 | (concat auxdir1 elt) nil nil)) | 696 | (concat auxdir1 elt) nil nil)) |
| 697 | common)) | 697 | common)) |
| 698 | )) | 698 | )) |
| 699 | 699 | ||
| 700 | 700 | ||
| 701 | ;; If file groups selected by patterns will ever be implemented, this | 701 | ;; If file groups selected by patterns will ever be implemented, this |
| 702 | ;; comparison function might become useful. | 702 | ;; comparison function might become useful. |
| @@ -733,7 +733,7 @@ behavior." | |||
| 733 | (defun ediff-prepare-meta-buffer (action-func meta-list | 733 | (defun ediff-prepare-meta-buffer (action-func meta-list |
| 734 | meta-buffer-name redraw-function | 734 | meta-buffer-name redraw-function |
| 735 | jobname &optional startup-hooks) | 735 | jobname &optional startup-hooks) |
| 736 | (let* ((meta-buffer-name | 736 | (let* ((meta-buffer-name |
| 737 | (ediff-unique-buffer-name meta-buffer-name "*")) | 737 | (ediff-unique-buffer-name meta-buffer-name "*")) |
| 738 | (meta-buffer (get-buffer-create meta-buffer-name))) | 738 | (meta-buffer (get-buffer-create meta-buffer-name))) |
| 739 | (ediff-with-current-buffer meta-buffer | 739 | (ediff-with-current-buffer meta-buffer |
| @@ -748,7 +748,7 @@ behavior." | |||
| 748 | 748 | ||
| 749 | ;; comes after ediff-meta-action-function is set | 749 | ;; comes after ediff-meta-action-function is set |
| 750 | (ediff-setup-meta-map) | 750 | (ediff-setup-meta-map) |
| 751 | 751 | ||
| 752 | (if (eq ediff-metajob-name 'ediff-registry) | 752 | (if (eq ediff-metajob-name 'ediff-registry) |
| 753 | (progn | 753 | (progn |
| 754 | (setq ediff-registry-buffer meta-buffer | 754 | (setq ediff-registry-buffer meta-buffer |
| @@ -762,14 +762,14 @@ behavior." | |||
| 762 | ;; add meta-buffer to the list header | 762 | ;; add meta-buffer to the list header |
| 763 | (cons (cons meta-buffer (car meta-list)) | 763 | (cons (cons meta-buffer (car meta-list)) |
| 764 | (cdr meta-list)))) | 764 | (cdr meta-list)))) |
| 765 | 765 | ||
| 766 | (or (eq meta-buffer ediff-registry-buffer) | 766 | (or (eq meta-buffer ediff-registry-buffer) |
| 767 | (setq ediff-session-registry | 767 | (setq ediff-session-registry |
| 768 | (cons meta-buffer ediff-session-registry))) | 768 | (cons meta-buffer ediff-session-registry))) |
| 769 | 769 | ||
| 770 | ;; redraw-function uses ediff-meta-list | 770 | ;; redraw-function uses ediff-meta-list |
| 771 | (funcall redraw-function ediff-meta-list) | 771 | (funcall redraw-function ediff-meta-list) |
| 772 | 772 | ||
| 773 | ;; set read-only/non-modified | 773 | ;; set read-only/non-modified |
| 774 | (setq buffer-read-only t) | 774 | (setq buffer-read-only t) |
| 775 | (set-buffer-modified-p nil) | 775 | (set-buffer-modified-p nil) |
| @@ -788,15 +788,15 @@ behavior." | |||
| 788 | 788 | ||
| 789 | (or (ediff-one-filegroup-metajob jobname) | 789 | (or (ediff-one-filegroup-metajob jobname) |
| 790 | (ediff-draw-dir-diffs ediff-dir-difference-list)) | 790 | (ediff-draw-dir-diffs ediff-dir-difference-list)) |
| 791 | (define-key | 791 | (define-key |
| 792 | ediff-meta-buffer-map "h" 'ediff-mark-for-hiding-at-pos) | 792 | ediff-meta-buffer-map "h" 'ediff-mark-for-hiding-at-pos) |
| 793 | (define-key ediff-meta-buffer-map "x" 'ediff-hide-marked-sessions) | 793 | (define-key ediff-meta-buffer-map "x" 'ediff-hide-marked-sessions) |
| 794 | (define-key | 794 | (define-key |
| 795 | ediff-meta-buffer-map "m" 'ediff-mark-for-operation-at-pos) | 795 | ediff-meta-buffer-map "m" 'ediff-mark-for-operation-at-pos) |
| 796 | (define-key ediff-meta-buffer-map "u" nil) | 796 | (define-key ediff-meta-buffer-map "u" nil) |
| 797 | (define-key | 797 | (define-key |
| 798 | ediff-meta-buffer-map "um" 'ediff-unmark-all-for-operation) | 798 | ediff-meta-buffer-map "um" 'ediff-unmark-all-for-operation) |
| 799 | (define-key | 799 | (define-key |
| 800 | ediff-meta-buffer-map "uh" 'ediff-unmark-all-for-hiding) | 800 | ediff-meta-buffer-map "uh" 'ediff-unmark-all-for-hiding) |
| 801 | (cond ((ediff-collect-diffs-metajob jobname) | 801 | (cond ((ediff-collect-diffs-metajob jobname) |
| 802 | (define-key | 802 | (define-key |
| @@ -826,7 +826,7 @@ behavior." | |||
| 826 | ;; Insert session status at point. Status is either ?H (marked for hiding), or | 826 | ;; Insert session status at point. Status is either ?H (marked for hiding), or |
| 827 | ;; ?I (hidden or invalid), or ?* (meaning marked for an operation; currently, | 827 | ;; ?I (hidden or invalid), or ?* (meaning marked for an operation; currently, |
| 828 | ;; such op can only be checking for equality)), or SPC (meaning neither marked | 828 | ;; such op can only be checking for equality)), or SPC (meaning neither marked |
| 829 | ;; nor invalid) | 829 | ;; nor invalid) |
| 830 | (defun ediff-insert-session-status-in-meta-buffer (session) | 830 | (defun ediff-insert-session-status-in-meta-buffer (session) |
| 831 | (insert | 831 | (insert |
| 832 | (cond ((ediff-get-session-status session)) ; session has status: ?H, ?I, ?* | 832 | (cond ((ediff-get-session-status session)) ; session has status: ?H, ?I, ?* |
| @@ -900,14 +900,14 @@ behavior." | |||
| 900 | (map-extents 'delete-extent) ; xemacs | 900 | (map-extents 'delete-extent) ; xemacs |
| 901 | (mapcar 'delete-overlay (overlays-in 1 1)) ; emacs | 901 | (mapcar 'delete-overlay (overlays-in 1 1)) ; emacs |
| 902 | ) | 902 | ) |
| 903 | 903 | ||
| 904 | (insert (format ediff-meta-buffer-message | 904 | (insert (format ediff-meta-buffer-message |
| 905 | (ediff-abbrev-jobname ediff-metajob-name))) | 905 | (ediff-abbrev-jobname ediff-metajob-name))) |
| 906 | 906 | ||
| 907 | (setq regexp (ediff-get-group-regexp meta-list) | 907 | (setq regexp (ediff-get-group-regexp meta-list) |
| 908 | merge-autostore-dir | 908 | merge-autostore-dir |
| 909 | (ediff-get-group-merge-autostore-dir meta-list)) | 909 | (ediff-get-group-merge-autostore-dir meta-list)) |
| 910 | 910 | ||
| 911 | (cond ((ediff-collect-diffs-metajob) | 911 | (cond ((ediff-collect-diffs-metajob) |
| 912 | (insert | 912 | (insert |
| 913 | " P:\tcollect custom diffs of all marked sessions\n")) | 913 | " P:\tcollect custom diffs of all marked sessions\n")) |
| @@ -938,7 +938,7 @@ behavior." | |||
| 938 | ---------------------------------------------- | 938 | ---------------------------------------------- |
| 939 | 939 | ||
| 940 | ") | 940 | ") |
| 941 | 941 | ||
| 942 | ;; discard info on directories and regexp | 942 | ;; discard info on directories and regexp |
| 943 | (setq meta-list (cdr meta-list) | 943 | (setq meta-list (cdr meta-list) |
| 944 | tmp-list meta-list) | 944 | tmp-list meta-list) |
| @@ -951,7 +951,7 @@ behavior." | |||
| 951 | (if empty | 951 | (if empty |
| 952 | (insert | 952 | (insert |
| 953 | " ****** ****** This session group has no members\n")) | 953 | " ****** ****** This session group has no members\n")) |
| 954 | 954 | ||
| 955 | ;; now organize file names like this: | 955 | ;; now organize file names like this: |
| 956 | ;; use-mark sizeA dateA sizeB dateB filename | 956 | ;; use-mark sizeA dateA sizeB dateB filename |
| 957 | ;; make sure directories are displayed with a trailing slash. | 957 | ;; make sure directories are displayed with a trailing slash. |
| @@ -1213,7 +1213,7 @@ Useful commands: | |||
| 1213 | (if (stringp dir3) | 1213 | (if (stringp dir3) |
| 1214 | (if (= (mod membership-code ediff-membership-code3) 0) ; dir3 | 1214 | (if (= (mod membership-code ediff-membership-code3) 0) ; dir3 |
| 1215 | (let ((beg (point))) | 1215 | (let ((beg (point))) |
| 1216 | (insert (format " %-25s" | 1216 | (insert (format " %-25s" |
| 1217 | (ediff-truncate-string-left | 1217 | (ediff-truncate-string-left |
| 1218 | (ediff-abbreviate-file-name | 1218 | (ediff-abbreviate-file-name |
| 1219 | (if (file-directory-p (concat dir3 file)) | 1219 | (if (file-directory-p (concat dir3 file)) |
| @@ -1327,7 +1327,7 @@ Useful commands: | |||
| 1327 | (ediff-show-meta-buffer | 1327 | (ediff-show-meta-buffer |
| 1328 | ediff-parent-meta-buffer ediff-meta-session-number) | 1328 | ediff-parent-meta-buffer ediff-meta-session-number) |
| 1329 | (error "This session group has no parent"))) | 1329 | (error "This session group has no parent"))) |
| 1330 | 1330 | ||
| 1331 | 1331 | ||
| 1332 | ;; argument is ignored | 1332 | ;; argument is ignored |
| 1333 | (defun ediff-redraw-registry-buffer (&optional ignore) | 1333 | (defun ediff-redraw-registry-buffer (&optional ignore) |
| @@ -1373,7 +1373,7 @@ Useful commands: | |||
| 1373 | (while registry-list | 1373 | (while registry-list |
| 1374 | (setq elt (car registry-list) | 1374 | (setq elt (car registry-list) |
| 1375 | registry-list (cdr registry-list)) | 1375 | registry-list (cdr registry-list)) |
| 1376 | 1376 | ||
| 1377 | (if (ediff-buffer-live-p elt) | 1377 | (if (ediff-buffer-live-p elt) |
| 1378 | (if (ediff-with-current-buffer elt | 1378 | (if (ediff-with-current-buffer elt |
| 1379 | (setq job-name ediff-metajob-name | 1379 | (setq job-name ediff-metajob-name |
| @@ -1479,7 +1479,7 @@ Useful commands: | |||
| 1479 | ;;; (error "Can't hide active session, %s" (buffer-name session-buf))) | 1479 | ;;; (error "Can't hide active session, %s" (buffer-name session-buf))) |
| 1480 | (t (ediff-set-session-status info ?H)))) | 1480 | (t (ediff-set-session-status info ?H)))) |
| 1481 | unmark) | 1481 | unmark) |
| 1482 | 1482 | ||
| 1483 | 1483 | ||
| 1484 | (defun ediff-mark-for-operation-at-pos (unmark) | 1484 | (defun ediff-mark-for-operation-at-pos (unmark) |
| 1485 | "Mark session for a group operation. With prefix arg, unmark." | 1485 | "Mark session for a group operation. With prefix arg, unmark." |
| @@ -1562,11 +1562,11 @@ Useful commands: | |||
| 1562 | (funcall operation elt sessionNum))) | 1562 | (funcall operation elt sessionNum))) |
| 1563 | ;; The following goes into a session represented by a subdirectory | 1563 | ;; The following goes into a session represented by a subdirectory |
| 1564 | ;; and applies operation to marked sessions there | 1564 | ;; and applies operation to marked sessions there |
| 1565 | ((and (ediff-meta-session-p elt) | 1565 | ((and (ediff-meta-session-p elt) |
| 1566 | (ediff-buffer-live-p | 1566 | (ediff-buffer-live-p |
| 1567 | (setq session-buf (ediff-get-session-buffer elt)))) | 1567 | (setq session-buf (ediff-get-session-buffer elt)))) |
| 1568 | (setq numMarked | 1568 | (setq numMarked |
| 1569 | (+ numMarked | 1569 | (+ numMarked |
| 1570 | (ediff-with-current-buffer session-buf | 1570 | (ediff-with-current-buffer session-buf |
| 1571 | ;; pass meta-diff along | 1571 | ;; pass meta-diff along |
| 1572 | (setq ediff-meta-diff-buffer diff-buffer) | 1572 | (setq ediff-meta-diff-buffer diff-buffer) |
| @@ -1602,7 +1602,7 @@ Useful commands: | |||
| 1602 | (insert-buffer custom-diff-buf) | 1602 | (insert-buffer custom-diff-buf) |
| 1603 | (insert "\n"))) | 1603 | (insert "\n"))) |
| 1604 | ;; if ediff session is not live, run diff directly on the files | 1604 | ;; if ediff session is not live, run diff directly on the files |
| 1605 | ((memq metajob '(ediff-directories | 1605 | ((memq metajob '(ediff-directories |
| 1606 | ediff-merge-directories | 1606 | ediff-merge-directories |
| 1607 | ediff-merge-directories-with-ancestor)) | 1607 | ediff-merge-directories-with-ancestor)) |
| 1608 | ;; get diffs by calling shell command on ediff-custom-diff-program | 1608 | ;; get diffs by calling shell command on ediff-custom-diff-program |
| @@ -1671,7 +1671,7 @@ all marked sessions must be active." | |||
| 1671 | )) | 1671 | )) |
| 1672 | (error "The patch buffer wasn't found")))) | 1672 | (error "The patch buffer wasn't found")))) |
| 1673 | 1673 | ||
| 1674 | 1674 | ||
| 1675 | ;; This function executes in meta buffer. It knows where event happened. | 1675 | ;; This function executes in meta buffer. It knows where event happened. |
| 1676 | (defun ediff-filegroup-action () | 1676 | (defun ediff-filegroup-action () |
| 1677 | "Execute appropriate action for a selected session." | 1677 | "Execute appropriate action for a selected session." |
| @@ -1710,14 +1710,14 @@ all marked sessions must be active." | |||
| 1710 | ;; do ediff/ediff-merge on subdirectories | 1710 | ;; do ediff/ediff-merge on subdirectories |
| 1711 | (if (ediff-buffer-live-p session-buf) | 1711 | (if (ediff-buffer-live-p session-buf) |
| 1712 | (ediff-show-meta-buffer session-buf) | 1712 | (ediff-show-meta-buffer session-buf) |
| 1713 | (setq regexp (read-string "Filter through regular expression: " | 1713 | (setq regexp (read-string "Filter through regular expression: " |
| 1714 | nil 'ediff-filtering-regexp-history)) | 1714 | nil 'ediff-filtering-regexp-history)) |
| 1715 | (ediff-directories-internal | 1715 | (ediff-directories-internal |
| 1716 | file1 file2 file3 regexp | 1716 | file1 file2 file3 regexp |
| 1717 | ediff-session-action-function | 1717 | ediff-session-action-function |
| 1718 | ediff-metajob-name | 1718 | ediff-metajob-name |
| 1719 | ;; make it update (car info) after startup | 1719 | ;; make it update (car info) after startup |
| 1720 | `(list (lambda () | 1720 | `(list (lambda () |
| 1721 | ;; child session group should know its parent | 1721 | ;; child session group should know its parent |
| 1722 | (setq ediff-parent-meta-buffer | 1722 | (setq ediff-parent-meta-buffer |
| 1723 | (quote ,ediff-meta-buffer) | 1723 | (quote ,ediff-meta-buffer) |
| @@ -1732,13 +1732,13 @@ all marked sessions must be active." | |||
| 1732 | (file-directory-p file1)) | 1732 | (file-directory-p file1)) |
| 1733 | (if (ediff-buffer-live-p session-buf) | 1733 | (if (ediff-buffer-live-p session-buf) |
| 1734 | (ediff-show-meta-buffer session-buf) | 1734 | (ediff-show-meta-buffer session-buf) |
| 1735 | (setq regexp (read-string "Filter through regular expression: " | 1735 | (setq regexp (read-string "Filter through regular expression: " |
| 1736 | nil 'ediff-filtering-regexp-history)) | 1736 | nil 'ediff-filtering-regexp-history)) |
| 1737 | (ediff-directory-revisions-internal | 1737 | (ediff-directory-revisions-internal |
| 1738 | file1 regexp | 1738 | file1 regexp |
| 1739 | ediff-session-action-function ediff-metajob-name | 1739 | ediff-session-action-function ediff-metajob-name |
| 1740 | ;; make it update (car info) after startup | 1740 | ;; make it update (car info) after startup |
| 1741 | `(list (lambda () | 1741 | `(list (lambda () |
| 1742 | ;; child session group should know its parent and | 1742 | ;; child session group should know its parent and |
| 1743 | ;; its number | 1743 | ;; its number |
| 1744 | (setq ediff-parent-meta-buffer | 1744 | (setq ediff-parent-meta-buffer |
| @@ -1762,8 +1762,8 @@ all marked sessions must be active." | |||
| 1762 | "This session has no ancestor. Merge without the ancestor? ") | 1762 | "This session has no ancestor. Merge without the ancestor? ") |
| 1763 | (ediff-merge-files | 1763 | (ediff-merge-files |
| 1764 | file1 file2 | 1764 | file1 file2 |
| 1765 | ;; provide startup hooks | 1765 | ;; provide startup hooks |
| 1766 | `(list (lambda () | 1766 | `(list (lambda () |
| 1767 | (add-hook | 1767 | (add-hook |
| 1768 | 'ediff-after-quit-hook-internal | 1768 | 'ediff-after-quit-hook-internal |
| 1769 | (lambda () | 1769 | (lambda () |
| @@ -1791,8 +1791,8 @@ all marked sessions must be active." | |||
| 1791 | ((ediff-one-filegroup-metajob) ; needs 1 file arg | 1791 | ((ediff-one-filegroup-metajob) ; needs 1 file arg |
| 1792 | (funcall ediff-session-action-function | 1792 | (funcall ediff-session-action-function |
| 1793 | file1 | 1793 | file1 |
| 1794 | ;; provide startup hooks | 1794 | ;; provide startup hooks |
| 1795 | `(list (lambda () | 1795 | `(list (lambda () |
| 1796 | (add-hook | 1796 | (add-hook |
| 1797 | 'ediff-after-quit-hook-internal | 1797 | 'ediff-after-quit-hook-internal |
| 1798 | (lambda () | 1798 | (lambda () |
| @@ -1820,8 +1820,8 @@ all marked sessions must be active." | |||
| 1820 | ((not (ediff-metajob3)) ; need 2 file args | 1820 | ((not (ediff-metajob3)) ; need 2 file args |
| 1821 | (funcall ediff-session-action-function | 1821 | (funcall ediff-session-action-function |
| 1822 | file1 file2 | 1822 | file1 file2 |
| 1823 | ;; provide startup hooks | 1823 | ;; provide startup hooks |
| 1824 | `(list (lambda () | 1824 | `(list (lambda () |
| 1825 | (add-hook | 1825 | (add-hook |
| 1826 | 'ediff-after-quit-hook-internal | 1826 | 'ediff-after-quit-hook-internal |
| 1827 | (lambda () | 1827 | (lambda () |
| @@ -1849,8 +1849,8 @@ all marked sessions must be active." | |||
| 1849 | ((ediff-metajob3) ; need 3 file args | 1849 | ((ediff-metajob3) ; need 3 file args |
| 1850 | (funcall ediff-session-action-function | 1850 | (funcall ediff-session-action-function |
| 1851 | file1 file2 file3 | 1851 | file1 file2 file3 |
| 1852 | ;; arrange startup hooks | 1852 | ;; arrange startup hooks |
| 1853 | `(list (lambda () | 1853 | `(list (lambda () |
| 1854 | (add-hook | 1854 | (add-hook |
| 1855 | 'ediff-after-quit-hook-internal | 1855 | 'ediff-after-quit-hook-internal |
| 1856 | (lambda () | 1856 | (lambda () |
| @@ -1956,7 +1956,7 @@ all marked sessions must be active." | |||
| 1956 | (set-window-buffer (selected-window) meta-buf))) | 1956 | (set-window-buffer (selected-window) meta-buf))) |
| 1957 | )) | 1957 | )) |
| 1958 | (if (and (ediff-window-display-p) | 1958 | (if (and (ediff-window-display-p) |
| 1959 | (window-live-p | 1959 | (window-live-p |
| 1960 | (setq wind (ediff-get-visible-buffer-window meta-buf)))) | 1960 | (setq wind (ediff-get-visible-buffer-window meta-buf)))) |
| 1961 | (progn | 1961 | (progn |
| 1962 | (setq frame (window-frame wind)) | 1962 | (setq frame (window-frame wind)) |
| @@ -2018,7 +2018,7 @@ all marked sessions must be active." | |||
| 2018 | )) | 2018 | )) |
| 2019 | (if (ediff-window-display-p) | 2019 | (if (ediff-window-display-p) |
| 2020 | (progn | 2020 | (progn |
| 2021 | (setq frame | 2021 | (setq frame |
| 2022 | (window-frame | 2022 | (window-frame |
| 2023 | (ediff-get-visible-buffer-window ediff-registry-buffer))) | 2023 | (ediff-get-visible-buffer-window ediff-registry-buffer))) |
| 2024 | (raise-frame frame) | 2024 | (raise-frame frame) |
| @@ -2058,7 +2058,7 @@ all marked sessions must be active." | |||
| 2058 | (ediff-with-current-buffer (current-buffer) | 2058 | (ediff-with-current-buffer (current-buffer) |
| 2059 | (if (ediff-buffer-live-p ediff-registry-buffer) | 2059 | (if (ediff-buffer-live-p ediff-registry-buffer) |
| 2060 | (ediff-redraw-registry-buffer) | 2060 | (ediff-redraw-registry-buffer) |
| 2061 | (ediff-prepare-meta-buffer | 2061 | (ediff-prepare-meta-buffer |
| 2062 | 'ediff-registry-action | 2062 | 'ediff-registry-action |
| 2063 | ediff-session-registry | 2063 | ediff-session-registry |
| 2064 | "*Ediff Registry" | 2064 | "*Ediff Registry" |
| @@ -2066,7 +2066,7 @@ all marked sessions must be active." | |||
| 2066 | 'ediff-registry)) | 2066 | 'ediff-registry)) |
| 2067 | )) | 2067 | )) |
| 2068 | 2068 | ||
| 2069 | ;; If meta-buf exists, it is redrawn along with parent. | 2069 | ;; If meta-buf exists, it is redrawn along with parent. |
| 2070 | ;; Otherwise, nothing happens. | 2070 | ;; Otherwise, nothing happens. |
| 2071 | (defun ediff-cleanup-meta-buffer (meta-buffer) | 2071 | (defun ediff-cleanup-meta-buffer (meta-buffer) |
| 2072 | (if (ediff-buffer-live-p meta-buffer) | 2072 | (if (ediff-buffer-live-p meta-buffer) |
| @@ -2134,7 +2134,7 @@ If this is a session registry buffer then just bury it." | |||
| 2134 | (if (ediff-buffer-live-p ediff-dir-diffs-buffer) | 2134 | (if (ediff-buffer-live-p ediff-dir-diffs-buffer) |
| 2135 | (kill-buffer ediff-dir-diffs-buffer))) | 2135 | (kill-buffer ediff-dir-diffs-buffer))) |
| 2136 | (kill-buffer buf)) | 2136 | (kill-buffer buf)) |
| 2137 | 2137 | ||
| 2138 | 2138 | ||
| 2139 | ;; Obtain information on a meta record where the user clicked or typed | 2139 | ;; Obtain information on a meta record where the user clicked or typed |
| 2140 | ;; BUF is the buffer where this happened and POINT is the position | 2140 | ;; BUF is the buffer where this happened and POINT is the position |
diff --git a/lisp/international/ccl.el b/lisp/international/ccl.el index 4e8594685c3..687698c4709 100644 --- a/lisp/international/ccl.el +++ b/lisp/international/ccl.el | |||
| @@ -237,7 +237,7 @@ | |||
| 237 | 237 | ||
| 238 | ;; If REG is a CCL register symbol (e.g. r0, r1...), the register | 238 | ;; If REG is a CCL register symbol (e.g. r0, r1...), the register |
| 239 | ;; number is embedded. If OP is one of unconditional jumps, DATA is | 239 | ;; number is embedded. If OP is one of unconditional jumps, DATA is |
| 240 | ;; changed to an relative jump address. | 240 | ;; changed to a relative jump address. |
| 241 | 241 | ||
| 242 | (defun ccl-embed-code (op reg data &optional reg2) | 242 | (defun ccl-embed-code (op reg data &optional reg2) |
| 243 | (if (and (> data 0) (get op 'jump-flag)) | 243 | (if (and (> data 0) (get op 'jump-flag)) |
| @@ -509,7 +509,7 @@ | |||
| 509 | (ccl-embed-data op) | 509 | (ccl-embed-data op) |
| 510 | (ccl-embed-data arg)) | 510 | (ccl-embed-data arg)) |
| 511 | (ccl-check-register arg cmd) | 511 | (ccl-check-register arg cmd) |
| 512 | (ccl-embed-code (if read-flag 'read-jump-cond-expr-register | 512 | (ccl-embed-code (if read-flag 'read-jump-cond-expr-register |
| 513 | 'jump-cond-expr-register) | 513 | 'jump-cond-expr-register) |
| 514 | rrr 0) | 514 | rrr 0) |
| 515 | (ccl-embed-data op) | 515 | (ccl-embed-data op) |
| @@ -707,7 +707,7 @@ | |||
| 707 | (error "CCL: Invalid argument %s: %s" arg cmd))) | 707 | (error "CCL: Invalid argument %s: %s" arg cmd))) |
| 708 | (ccl-embed-code 'read-jump rrr ccl-loop-head)) | 708 | (ccl-embed-code 'read-jump rrr ccl-loop-head)) |
| 709 | t) | 709 | t) |
| 710 | 710 | ||
| 711 | ;; Compile READ statement. | 711 | ;; Compile READ statement. |
| 712 | (defun ccl-compile-read (cmd) | 712 | (defun ccl-compile-read (cmd) |
| 713 | (if (< (length cmd) 2) | 713 | (if (< (length cmd) 2) |
| @@ -899,7 +899,7 @@ | |||
| 899 | add 1)) | 899 | add 1)) |
| 900 | (setq arg (cdr arg) | 900 | (setq arg (cdr arg) |
| 901 | len (+ len add))) | 901 | len (+ len add))) |
| 902 | (if mp | 902 | (if mp |
| 903 | (cons (- len) result) | 903 | (cons (- len) result) |
| 904 | result)))) | 904 | result)))) |
| 905 | (setq arg (append (list (nth 0 cmd) (nth 1 cmd) (nth 2 cmd)) | 905 | (setq arg (append (list (nth 0 cmd) (nth 1 cmd) (nth 2 cmd)) |
| @@ -990,7 +990,7 @@ | |||
| 990 | (rrr (ash (logand code 255) -5)) | 990 | (rrr (ash (logand code 255) -5)) |
| 991 | (cc (ash code -8))) | 991 | (cc (ash code -8))) |
| 992 | (insert (format "%5d:[%s] " (1- ccl-current-ic) cmd)) | 992 | (insert (format "%5d:[%s] " (1- ccl-current-ic) cmd)) |
| 993 | (funcall (get cmd 'ccl-dump-function) rrr cc))) | 993 | (funcall (get cmd 'ccl-dump-function) rrr cc))) |
| 994 | 994 | ||
| 995 | (defun ccl-dump-set-register (rrr cc) | 995 | (defun ccl-dump-set-register (rrr cc) |
| 996 | (insert (format "r%d = r%d\n" rrr cc))) | 996 | (insert (format "r%d = r%d\n" rrr cc))) |
| @@ -1273,7 +1273,7 @@ | |||
| 1273 | (insert (format "map-single r%d r%d map(%S)\n" RRR rrr id)))) | 1273 | (insert (format "map-single r%d r%d map(%S)\n" RRR rrr id)))) |
| 1274 | 1274 | ||
| 1275 | 1275 | ||
| 1276 | ;; CCL emulation staffs | 1276 | ;; CCL emulation staffs |
| 1277 | 1277 | ||
| 1278 | ;; Not yet implemented. | 1278 | ;; Not yet implemented. |
| 1279 | 1279 | ||
| @@ -1472,7 +1472,7 @@ ASSIGNMENT_OPERATOR := | |||
| 1472 | ;; (REG <8= ARG) is the same as: | 1472 | ;; (REG <8= ARG) is the same as: |
| 1473 | ;; ((REG <<= 8) | 1473 | ;; ((REG <<= 8) |
| 1474 | ;; (REG |= ARG)) | 1474 | ;; (REG |= ARG)) |
| 1475 | | <8= | 1475 | | <8= |
| 1476 | 1476 | ||
| 1477 | ;; (REG >8= ARG) is the same as: | 1477 | ;; (REG >8= ARG) is the same as: |
| 1478 | ;; ((r7 = (REG & 255)) | 1478 | ;; ((r7 = (REG & 255)) |
diff --git a/lisp/mail/mail-extr.el b/lisp/mail/mail-extr.el index 7078b564f67..e764fb26b67 100644 --- a/lisp/mail/mail-extr.el +++ b/lisp/mail/mail-extr.el | |||
| @@ -29,11 +29,11 @@ | |||
| 29 | ;; The entry point of this code is | 29 | ;; The entry point of this code is |
| 30 | ;; | 30 | ;; |
| 31 | ;; mail-extract-address-components: (address &optional all) | 31 | ;; mail-extract-address-components: (address &optional all) |
| 32 | ;; | 32 | ;; |
| 33 | ;; Given an RFC-822 ADDRESS, extract full name and canonical address. | 33 | ;; Given an RFC-822 ADDRESS, extract full name and canonical address. |
| 34 | ;; Returns a list of the form (FULL-NAME CANONICAL-ADDRESS). | 34 | ;; Returns a list of the form (FULL-NAME CANONICAL-ADDRESS). |
| 35 | ;; If no name can be extracted, FULL-NAME will be nil. | 35 | ;; If no name can be extracted, FULL-NAME will be nil. |
| 36 | ;; ADDRESS may be a string or a buffer. If it is a buffer, the visible | 36 | ;; ADDRESS may be a string or a buffer. If it is a buffer, the visible |
| 37 | ;; (narrowed) portion of the buffer will be interpreted as the address. | 37 | ;; (narrowed) portion of the buffer will be interpreted as the address. |
| 38 | ;; (This feature exists so that the clever caller might be able to avoid | 38 | ;; (This feature exists so that the clever caller might be able to avoid |
| 39 | ;; consing a string.) | 39 | ;; consing a string.) |
| @@ -61,10 +61,10 @@ | |||
| 61 | ;; make sure you're not breaking functionality. The test cases aren't included | 61 | ;; make sure you're not breaking functionality. The test cases aren't included |
| 62 | ;; because they are over 100K. | 62 | ;; because they are over 100K. |
| 63 | ;; | 63 | ;; |
| 64 | ;; If you find an address that mail-extr fails on, please send it to the | 64 | ;; If you find an address that mail-extr fails on, please send it to the |
| 65 | ;; maintainer along with what you think the correct results should be. We do | 65 | ;; maintainer along with what you think the correct results should be. We do |
| 66 | ;; not consider it a bug if mail-extr mangles a comment that does not | 66 | ;; not consider it a bug if mail-extr mangles a comment that does not |
| 67 | ;; correspond to a real human full name, although we would prefer that | 67 | ;; correspond to a real human full name, although we would prefer that |
| 68 | ;; mail-extr would return the comment as-is. | 68 | ;; mail-extr would return the comment as-is. |
| 69 | ;; | 69 | ;; |
| 70 | ;; Features: | 70 | ;; Features: |
| @@ -121,8 +121,8 @@ | |||
| 121 | ;; * insert documentation strings! | 121 | ;; * insert documentation strings! |
| 122 | ;; * handle X.400-gatewayed addresses according to RFC 1148. | 122 | ;; * handle X.400-gatewayed addresses according to RFC 1148. |
| 123 | 123 | ||
| 124 | ;;; Change Log: | 124 | ;;; Change Log: |
| 125 | ;; | 125 | ;; |
| 126 | ;; Thu Feb 17 17:57:33 1994 Jamie Zawinski (jwz@lucid.com) | 126 | ;; Thu Feb 17 17:57:33 1994 Jamie Zawinski (jwz@lucid.com) |
| 127 | ;; | 127 | ;; |
| 128 | ;; * merged with jbw's latest version | 128 | ;; * merged with jbw's latest version |
| @@ -140,26 +140,26 @@ | |||
| 140 | ;; * some more cleanup, doc, added provide | 140 | ;; * some more cleanup, doc, added provide |
| 141 | ;; | 141 | ;; |
| 142 | ;; Tue Mar 23 21:23:18 1993 Joe Wells (jbw at csd.bu.edu) | 142 | ;; Tue Mar 23 21:23:18 1993 Joe Wells (jbw at csd.bu.edu) |
| 143 | ;; | 143 | ;; |
| 144 | ;; * Made mail-full-name-prefixes a user-customizable variable. | 144 | ;; * Made mail-full-name-prefixes a user-customizable variable. |
| 145 | ;; Allow passing the address as a buffer as well as a string. | 145 | ;; Allow passing the address as a buffer as well as a string. |
| 146 | ;; Allow [ and ] as name characters (Finnish character set). | 146 | ;; Allow [ and ] as name characters (Finnish character set). |
| 147 | ;; | 147 | ;; |
| 148 | ;; Mon Mar 22 21:20:56 1993 Joe Wells (jbw at bigbird.bu.edu) | 148 | ;; Mon Mar 22 21:20:56 1993 Joe Wells (jbw at bigbird.bu.edu) |
| 149 | ;; | 149 | ;; |
| 150 | ;; * Handle "null" addresses. Handle = used for spacing in mailbox | 150 | ;; * Handle "null" addresses. Handle = used for spacing in mailbox |
| 151 | ;; name. Fix bug in handling of ROUTE-ADDR-type addresses that are | 151 | ;; name. Fix bug in handling of ROUTE-ADDR-type addresses that are |
| 152 | ;; missing their brackets. Handle uppercase "JR". Extract full | 152 | ;; missing their brackets. Handle uppercase "JR". Extract full |
| 153 | ;; names from X.400 addresses encoded in RFC-822. Fix bug in | 153 | ;; names from X.400 addresses encoded in RFC-822. Fix bug in |
| 154 | ;; handling of multiple addresses where first has trailing comment. | 154 | ;; handling of multiple addresses where first has trailing comment. |
| 155 | ;; Handle more kinds of telephone extension lead-ins. | 155 | ;; Handle more kinds of telephone extension lead-ins. |
| 156 | ;; | 156 | ;; |
| 157 | ;; Mon Mar 22 20:16:57 1993 Joe Wells (jbw at bigbird.bu.edu) | 157 | ;; Mon Mar 22 20:16:57 1993 Joe Wells (jbw at bigbird.bu.edu) |
| 158 | ;; | 158 | ;; |
| 159 | ;; * Handle HZ encoding for embedding GB encoded chinese characters. | 159 | ;; * Handle HZ encoding for embedding GB encoded chinese characters. |
| 160 | ;; | 160 | ;; |
| 161 | ;; Mon Mar 22 00:46:12 1993 Joe Wells (jbw at bigbird.bu.edu) | 161 | ;; Mon Mar 22 00:46:12 1993 Joe Wells (jbw at bigbird.bu.edu) |
| 162 | ;; | 162 | ;; |
| 163 | ;; * Fixed too broad matching of ham radio call signs. Fixed bug in | 163 | ;; * Fixed too broad matching of ham radio call signs. Fixed bug in |
| 164 | ;; handling an unmatched ' in a name string. Enhanced recognition | 164 | ;; handling an unmatched ' in a name string. Enhanced recognition |
| 165 | ;; of when . in the mailbox name terminates the name portion. | 165 | ;; of when . in the mailbox name terminates the name portion. |
| @@ -169,40 +169,40 @@ | |||
| 169 | ;; introduced in switching last name order. Fixed bug in handling | 169 | ;; introduced in switching last name order. Fixed bug in handling |
| 170 | ;; address with ! and % but no @. Narrowed the cases in which | 170 | ;; address with ! and % but no @. Narrowed the cases in which |
| 171 | ;; certain trailing words are discarded. | 171 | ;; certain trailing words are discarded. |
| 172 | ;; | 172 | ;; |
| 173 | ;; Sun Mar 21 21:41:06 1993 Joe Wells (jbw at bigbird.bu.edu) | 173 | ;; Sun Mar 21 21:41:06 1993 Joe Wells (jbw at bigbird.bu.edu) |
| 174 | ;; | 174 | ;; |
| 175 | ;; * Fixed bugs in handling GROUP addresses. Certain words in the | 175 | ;; * Fixed bugs in handling GROUP addresses. Certain words in the |
| 176 | ;; middle of a name no longer terminate it. Handle LISTSERV list | 176 | ;; middle of a name no longer terminate it. Handle LISTSERV list |
| 177 | ;; names. Ignore comment field containing mailbox name. | 177 | ;; names. Ignore comment field containing mailbox name. |
| 178 | ;; | 178 | ;; |
| 179 | ;; Sun Mar 21 14:39:38 1993 Joe Wells (jbw at bigbird.bu.edu) | 179 | ;; Sun Mar 21 14:39:38 1993 Joe Wells (jbw at bigbird.bu.edu) |
| 180 | ;; | 180 | ;; |
| 181 | ;; * Moved variant-method code back into main function. Handle | 181 | ;; * Moved variant-method code back into main function. Handle |
| 182 | ;; underscores as spaces in comments. Handle leading nickname. Add | 182 | ;; underscores as spaces in comments. Handle leading nickname. Add |
| 183 | ;; flag to ignore single-word names. Other changes. | 183 | ;; flag to ignore single-word names. Other changes. |
| 184 | ;; | 184 | ;; |
| 185 | ;; Mon Feb 1 22:23:31 1993 Joe Wells (jbw at bigbird.bu.edu) | 185 | ;; Mon Feb 1 22:23:31 1993 Joe Wells (jbw at bigbird.bu.edu) |
| 186 | ;; | 186 | ;; |
| 187 | ;; * Added in changes by Rod Whitby and Jamie Zawinski. This | 187 | ;; * Added in changes by Rod Whitby and Jamie Zawinski. This |
| 188 | ;; includes the flag mail-extr-guess-middle-initial and the fix for | 188 | ;; includes the flag mail-extr-guess-middle-initial and the fix for |
| 189 | ;; handling multiple addresses correctly. (Whitby just changed | 189 | ;; handling multiple addresses correctly. (Whitby just changed |
| 190 | ;; a > to a <.) | 190 | ;; a > to a <.) |
| 191 | ;; | 191 | ;; |
| 192 | ;; Mon Apr 6 23:59:09 1992 Joe Wells (jbw at bigbird.bu.edu) | 192 | ;; Mon Apr 6 23:59:09 1992 Joe Wells (jbw at bigbird.bu.edu) |
| 193 | ;; | 193 | ;; |
| 194 | ;; * Cleaned up some more. Release version 1.0 to world. | 194 | ;; * Cleaned up some more. Release version 1.0 to world. |
| 195 | ;; | 195 | ;; |
| 196 | ;; Sun Apr 5 19:39:08 1992 Joe Wells (jbw at bigbird.bu.edu) | 196 | ;; Sun Apr 5 19:39:08 1992 Joe Wells (jbw at bigbird.bu.edu) |
| 197 | ;; | 197 | ;; |
| 198 | ;; * Cleaned up full name extraction extensively. | 198 | ;; * Cleaned up full name extraction extensively. |
| 199 | ;; | 199 | ;; |
| 200 | ;; Sun Feb 2 14:45:24 1992 Joe Wells (jbw at bigbird.bu.edu) | 200 | ;; Sun Feb 2 14:45:24 1992 Joe Wells (jbw at bigbird.bu.edu) |
| 201 | ;; | 201 | ;; |
| 202 | ;; * Total rewrite. Integrated mail-canonicalize-address into | 202 | ;; * Total rewrite. Integrated mail-canonicalize-address into |
| 203 | ;; mail-extract-address-components. Now handles GROUP addresses more | 203 | ;; mail-extract-address-components. Now handles GROUP addresses more |
| 204 | ;; or less correctly. Better handling of lots of different cases. | 204 | ;; or less correctly. Better handling of lots of different cases. |
| 205 | ;; | 205 | ;; |
| 206 | ;; Fri Jun 14 19:39:50 1991 | 206 | ;; Fri Jun 14 19:39:50 1991 |
| 207 | ;; * Created. | 207 | ;; * Created. |
| 208 | 208 | ||
| @@ -318,16 +318,16 @@ by translating things like \"foo!bar!baz@host\" into \"baz@bar.UUCP\"." | |||
| 318 | 318 | ||
| 319 | (defconst mail-extr-leading-garbage "\\W+") | 319 | (defconst mail-extr-leading-garbage "\\W+") |
| 320 | 320 | ||
| 321 | ;; (defconst mail-extr-non-name-chars | 321 | ;; (defconst mail-extr-non-name-chars |
| 322 | ;; (purecopy (concat "^" mail-extr-all-letters "."))) | 322 | ;; (purecopy (concat "^" mail-extr-all-letters "."))) |
| 323 | ;; (defconst mail-extr-non-begin-name-chars | 323 | ;; (defconst mail-extr-non-begin-name-chars |
| 324 | ;; (purecopy (concat "^" mail-extr-first-letters))) | 324 | ;; (purecopy (concat "^" mail-extr-first-letters))) |
| 325 | ;; (defconst mail-extr-non-end-name-chars | 325 | ;; (defconst mail-extr-non-end-name-chars |
| 326 | ;; (purecopy (concat "^" mail-extr-last-letters))) | 326 | ;; (purecopy (concat "^" mail-extr-last-letters))) |
| 327 | 327 | ||
| 328 | ;; Matches an initial not followed by both a period and a space. | 328 | ;; Matches an initial not followed by both a period and a space. |
| 329 | ;; (defconst mail-extr-bad-initials-pattern | 329 | ;; (defconst mail-extr-bad-initials-pattern |
| 330 | ;; (purecopy | 330 | ;; (purecopy |
| 331 | ;; (format "\\(\\([^%s]\\|\\`\\)[%s]\\)\\(\\.\\([^ ]\\)\\| \\|\\([^%s .]\\)\\|\\'\\)" | 331 | ;; (format "\\(\\([^%s]\\|\\`\\)[%s]\\)\\(\\.\\([^ ]\\)\\| \\|\\([^%s .]\\)\\|\\'\\)" |
| 332 | ;; mail-extr-all-letters mail-extr-first-letters mail-extr-all-letters))) | 332 | ;; mail-extr-all-letters mail-extr-first-letters mail-extr-all-letters))) |
| 333 | 333 | ||
| @@ -363,7 +363,7 @@ by translating things like \"foo!bar!baz@host\" into \"baz@bar.UUCP\"." | |||
| 363 | ;; Must not match a trailing uppercase last name or trailing initial | 363 | ;; Must not match a trailing uppercase last name or trailing initial |
| 364 | (defconst mail-extr-weird-acronym-pattern | 364 | (defconst mail-extr-weird-acronym-pattern |
| 365 | (purecopy "\\([A-Z]+[-_/]\\|[A-Z][A-Z][A-Z]?\\b\\)")) | 365 | (purecopy "\\([A-Z]+[-_/]\\|[A-Z][A-Z][A-Z]?\\b\\)")) |
| 366 | 366 | ||
| 367 | ;; Matches a mixed-case or lowercase name (not an initial). | 367 | ;; Matches a mixed-case or lowercase name (not an initial). |
| 368 | ;; #### Match Latin1 lower case letters here too? | 368 | ;; #### Match Latin1 lower case letters here too? |
| 369 | ;; (defconst mail-extr-mixed-case-name-pattern | 369 | ;; (defconst mail-extr-mixed-case-name-pattern |
| @@ -376,7 +376,7 @@ by translating things like \"foo!bar!baz@host\" into \"baz@bar.UUCP\"." | |||
| 376 | 376 | ||
| 377 | ;; Matches a trailing alternative address. | 377 | ;; Matches a trailing alternative address. |
| 378 | ;; #### Match Latin1 letters here too? | 378 | ;; #### Match Latin1 letters here too? |
| 379 | ;; #### Match _ before @ here too? | 379 | ;; #### Match _ before @ here too? |
| 380 | (defconst mail-extr-alternative-address-pattern | 380 | (defconst mail-extr-alternative-address-pattern |
| 381 | (purecopy "\\(aka *\\)?[a-zA-Z.]+[!@][a-zA-Z.]")) | 381 | (purecopy "\\(aka *\\)?[a-zA-Z.]+[!@][a-zA-Z.]")) |
| 382 | 382 | ||
| @@ -435,7 +435,7 @@ by translating things like \"foo!bar!baz@host\" into \"baz@bar.UUCP\"." | |||
| 435 | ;; Matches a single word name. | 435 | ;; Matches a single word name. |
| 436 | ;; (defconst mail-extr-one-name-pattern | 436 | ;; (defconst mail-extr-one-name-pattern |
| 437 | ;; (purecopy (concat "\\`" mail-extr-normal-name-pattern "\\'"))) | 437 | ;; (purecopy (concat "\\`" mail-extr-normal-name-pattern "\\'"))) |
| 438 | 438 | ||
| 439 | ;; Matches normal two names with missing middle initial | 439 | ;; Matches normal two names with missing middle initial |
| 440 | ;; The first name is not allowed to have a hyphen because this can cause | 440 | ;; The first name is not allowed to have a hyphen because this can cause |
| 441 | ;; false matches where the "middle initial" is actually the first letter | 441 | ;; false matches where the "middle initial" is actually the first letter |
| @@ -459,12 +459,12 @@ by translating things like \"foo!bar!baz@host\" into \"baz@bar.UUCP\"." | |||
| 459 | ;; encountered. The character '~' is an escape character. By convention, it | 459 | ;; encountered. The character '~' is an escape character. By convention, it |
| 460 | ;; must be immediately followed ONLY by '~', '{' or '\n' (<LF>), with the | 460 | ;; must be immediately followed ONLY by '~', '{' or '\n' (<LF>), with the |
| 461 | ;; following special meaning. | 461 | ;; following special meaning. |
| 462 | ;; | 462 | ;; |
| 463 | ;; o The escape sequence '~~' is interpreted as a '~'. | 463 | ;; o The escape sequence '~~' is interpreted as a '~'. |
| 464 | ;; o The escape-to-GB sequence '~{' switches the mode from ASCII to GB. | 464 | ;; o The escape-to-GB sequence '~{' switches the mode from ASCII to GB. |
| 465 | ;; o The escape sequence '~\n' is a line-continuation marker to be consumed | 465 | ;; o The escape sequence '~\n' is a line-continuation marker to be consumed |
| 466 | ;; with no output produced. | 466 | ;; with no output produced. |
| 467 | ;; | 467 | ;; |
| 468 | ;; In GB mode, characters are interpreted two bytes at a time as (pure) GB | 468 | ;; In GB mode, characters are interpreted two bytes at a time as (pure) GB |
| 469 | ;; codes until the escape-from-GB code '~}' is read. This code switches the | 469 | ;; codes until the escape-from-GB code '~}' is read. This code switches the |
| 470 | ;; mode from GB back to ASCII. (Note that the escape-from-GB code '~}' | 470 | ;; mode from GB back to ASCII. (Note that the escape-from-GB code '~}' |
| @@ -734,7 +734,7 @@ consing a string.)" | |||
| 734 | (widen) | 734 | (widen) |
| 735 | (erase-buffer) | 735 | (erase-buffer) |
| 736 | (setq case-fold-search nil) | 736 | (setq case-fold-search nil) |
| 737 | 737 | ||
| 738 | ;; Insert extra space at beginning to allow later replacement with < | 738 | ;; Insert extra space at beginning to allow later replacement with < |
| 739 | ;; without having to move markers. | 739 | ;; without having to move markers. |
| 740 | (insert ?\ ) | 740 | (insert ?\ ) |
| @@ -754,12 +754,12 @@ consing a string.)" | |||
| 754 | (buffer-disable-undo canonicalization-buffer) | 754 | (buffer-disable-undo canonicalization-buffer) |
| 755 | (setq case-fold-search nil)) | 755 | (setq case-fold-search nil)) |
| 756 | 756 | ||
| 757 | 757 | ||
| 758 | ;; Unfold multiple lines. | 758 | ;; Unfold multiple lines. |
| 759 | (goto-char (point-min)) | 759 | (goto-char (point-min)) |
| 760 | (while (re-search-forward "\\([^\\]\\(\\\\\\\\\\)*\\)\n[ \t]" nil t) | 760 | (while (re-search-forward "\\([^\\]\\(\\\\\\\\\\)*\\)\n[ \t]" nil t) |
| 761 | (replace-match "\\1 " t)) | 761 | (replace-match "\\1 " t)) |
| 762 | 762 | ||
| 763 | ;; Loop over addresses until we have as many as we want. | 763 | ;; Loop over addresses until we have as many as we want. |
| 764 | (while (and (or all (null value-list)) | 764 | (while (and (or all (null value-list)) |
| 765 | (progn (goto-char (point-min)) | 765 | (progn (goto-char (point-min)) |
| @@ -1012,7 +1012,7 @@ consing a string.)" | |||
| 1012 | 1012 | ||
| 1013 | ;; Any commas must be between < and : of ROUTE-ADDR. Nuke any | 1013 | ;; Any commas must be between < and : of ROUTE-ADDR. Nuke any |
| 1014 | ;; others. | 1014 | ;; others. |
| 1015 | ;; Hell, go ahead an nuke all of the commas. | 1015 | ;; Hell, go ahead and nuke all of the commas. |
| 1016 | ;; **** This will cause problems when we start handling commas in | 1016 | ;; **** This will cause problems when we start handling commas in |
| 1017 | ;; the PHRASE part .... no it won't ... yes it will ... ????? | 1017 | ;; the PHRASE part .... no it won't ... yes it will ... ????? |
| 1018 | (mail-extr-nuke-outside-range comma-pos 1 1) | 1018 | (mail-extr-nuke-outside-range comma-pos 1 1) |
| @@ -1495,7 +1495,7 @@ consing a string.)" | |||
| 1495 | (if (bobp) | 1495 | (if (bobp) |
| 1496 | (delete-region (point) cbeg) | 1496 | (delete-region (point) cbeg) |
| 1497 | (just-one-space)))))) | 1497 | (just-one-space)))))) |
| 1498 | 1498 | ||
| 1499 | ;; This was moved above. | 1499 | ;; This was moved above. |
| 1500 | ;; Fix . used as space | 1500 | ;; Fix . used as space |
| 1501 | ;; But it belongs here because it occurs not only as | 1501 | ;; But it belongs here because it occurs not only as |
| @@ -1524,7 +1524,7 @@ consing a string.)" | |||
| 1524 | ;; Loop over the words (and other junk) in the name. | 1524 | ;; Loop over the words (and other junk) in the name. |
| 1525 | (goto-char (point-min)) | 1525 | (goto-char (point-min)) |
| 1526 | (while (not name-done-flag) | 1526 | (while (not name-done-flag) |
| 1527 | 1527 | ||
| 1528 | (when word-found-flag | 1528 | (when word-found-flag |
| 1529 | ;; Last time through this loop we skipped over a word. | 1529 | ;; Last time through this loop we skipped over a word. |
| 1530 | (setq last-word-beg this-word-beg) | 1530 | (setq last-word-beg this-word-beg) |
| @@ -1543,22 +1543,22 @@ consing a string.)" | |||
| 1543 | (setq lower-case-flag nil) | 1543 | (setq lower-case-flag nil) |
| 1544 | ;; (setq upper-case-flag nil) | 1544 | ;; (setq upper-case-flag nil) |
| 1545 | (setq begin-again-flag nil)) | 1545 | (setq begin-again-flag nil)) |
| 1546 | 1546 | ||
| 1547 | ;; Initialize for this iteration of the loop. | 1547 | ;; Initialize for this iteration of the loop. |
| 1548 | (mail-extr-skip-whitespace-forward) | 1548 | (mail-extr-skip-whitespace-forward) |
| 1549 | (if (eq word-count 0) (narrow-to-region (point) (point-max))) | 1549 | (if (eq word-count 0) (narrow-to-region (point) (point-max))) |
| 1550 | (setq this-word-beg (point)) | 1550 | (setq this-word-beg (point)) |
| 1551 | (setq drop-this-word-if-trailing-flag nil) | 1551 | (setq drop-this-word-if-trailing-flag nil) |
| 1552 | 1552 | ||
| 1553 | ;; Decide what to do based on what we are looking at. | 1553 | ;; Decide what to do based on what we are looking at. |
| 1554 | (cond | 1554 | (cond |
| 1555 | 1555 | ||
| 1556 | ;; Delete title | 1556 | ;; Delete title |
| 1557 | ((and (eq word-count 0) | 1557 | ((and (eq word-count 0) |
| 1558 | (looking-at mail-extr-full-name-prefixes)) | 1558 | (looking-at mail-extr-full-name-prefixes)) |
| 1559 | (goto-char (match-end 0)) | 1559 | (goto-char (match-end 0)) |
| 1560 | (narrow-to-region (point) (point-max))) | 1560 | (narrow-to-region (point) (point-max))) |
| 1561 | 1561 | ||
| 1562 | ;; Stop after name suffix | 1562 | ;; Stop after name suffix |
| 1563 | ((and (>= word-count 2) | 1563 | ((and (>= word-count 2) |
| 1564 | (looking-at mail-extr-full-name-suffix-pattern)) | 1564 | (looking-at mail-extr-full-name-suffix-pattern)) |
| @@ -1580,13 +1580,13 @@ consing a string.)" | |||
| 1580 | (upcase-word 1))) | 1580 | (upcase-word 1))) |
| 1581 | (setq word-found-flag t) | 1581 | (setq word-found-flag t) |
| 1582 | (setq name-done-flag t)) | 1582 | (setq name-done-flag t)) |
| 1583 | 1583 | ||
| 1584 | ;; Handle SCA names | 1584 | ;; Handle SCA names |
| 1585 | ((looking-at "MKA \\(.+\\)") ; "Mundanely Known As" | 1585 | ((looking-at "MKA \\(.+\\)") ; "Mundanely Known As" |
| 1586 | (goto-char (match-beginning 1)) | 1586 | (goto-char (match-beginning 1)) |
| 1587 | (narrow-to-region (point) (point-max)) | 1587 | (narrow-to-region (point) (point-max)) |
| 1588 | (setq begin-again-flag t)) | 1588 | (setq begin-again-flag t)) |
| 1589 | 1589 | ||
| 1590 | ;; Check for initial last name followed by comma | 1590 | ;; Check for initial last name followed by comma |
| 1591 | ((and (eq ?, (following-char)) | 1591 | ((and (eq ?, (following-char)) |
| 1592 | (eq word-count 1)) | 1592 | (eq word-count 1)) |
| @@ -1594,13 +1594,13 @@ consing a string.)" | |||
| 1594 | (setq last-name-comma-flag t) | 1594 | (setq last-name-comma-flag t) |
| 1595 | (or (eq ?\ (following-char)) | 1595 | (or (eq ?\ (following-char)) |
| 1596 | (insert ?\ ))) | 1596 | (insert ?\ ))) |
| 1597 | 1597 | ||
| 1598 | ;; Stop before trailing comma-separated comment | 1598 | ;; Stop before trailing comma-separated comment |
| 1599 | ;; THIS CASE MUST BE AFTER THE PRECEDING CASES. | 1599 | ;; THIS CASE MUST BE AFTER THE PRECEDING CASES. |
| 1600 | ;; *** This case is redundant??? | 1600 | ;; *** This case is redundant??? |
| 1601 | ;;((eq ?, (following-char)) | 1601 | ;;((eq ?, (following-char)) |
| 1602 | ;; (setq name-done-flag t)) | 1602 | ;; (setq name-done-flag t)) |
| 1603 | 1603 | ||
| 1604 | ;; Delete parenthesized/quoted comment/nickname | 1604 | ;; Delete parenthesized/quoted comment/nickname |
| 1605 | ((memq (following-char) '(?\( ?\{ ?\[ ?\" ?\' ?\`)) | 1605 | ((memq (following-char) '(?\( ?\{ ?\[ ?\" ?\' ?\`)) |
| 1606 | (setq cbeg (point)) | 1606 | (setq cbeg (point)) |
| @@ -1632,16 +1632,16 @@ consing a string.)" | |||
| 1632 | (delete-region cbeg cend) | 1632 | (delete-region cbeg cend) |
| 1633 | (if initial | 1633 | (if initial |
| 1634 | (insert initial ". "))))) | 1634 | (insert initial ". "))))) |
| 1635 | 1635 | ||
| 1636 | ;; Handle *Stupid* VMS date stamps | 1636 | ;; Handle *Stupid* VMS date stamps |
| 1637 | ((looking-at mail-extr-stupid-vms-date-stamp-pattern) | 1637 | ((looking-at mail-extr-stupid-vms-date-stamp-pattern) |
| 1638 | (replace-match "" t)) | 1638 | (replace-match "" t)) |
| 1639 | 1639 | ||
| 1640 | ;; Handle Chinese characters. | 1640 | ;; Handle Chinese characters. |
| 1641 | ((looking-at mail-extr-hz-embedded-gb-encoded-chinese-pattern) | 1641 | ((looking-at mail-extr-hz-embedded-gb-encoded-chinese-pattern) |
| 1642 | (goto-char (match-end 0)) | 1642 | (goto-char (match-end 0)) |
| 1643 | (setq word-found-flag t)) | 1643 | (setq word-found-flag t)) |
| 1644 | 1644 | ||
| 1645 | ;; Skip initial garbage characters. | 1645 | ;; Skip initial garbage characters. |
| 1646 | ;; THIS CASE MUST BE AFTER THE PRECEDING CASES. | 1646 | ;; THIS CASE MUST BE AFTER THE PRECEDING CASES. |
| 1647 | ((and (eq word-count 0) | 1647 | ((and (eq word-count 0) |
| @@ -1650,33 +1650,33 @@ consing a string.)" | |||
| 1650 | ;; *** Skip backward over these??? | 1650 | ;; *** Skip backward over these??? |
| 1651 | ;; (skip-chars-backward "& \"") | 1651 | ;; (skip-chars-backward "& \"") |
| 1652 | (narrow-to-region (point) (point-max))) | 1652 | (narrow-to-region (point) (point-max))) |
| 1653 | 1653 | ||
| 1654 | ;; Various stopping points | 1654 | ;; Various stopping points |
| 1655 | ((or | 1655 | ((or |
| 1656 | 1656 | ||
| 1657 | ;; Stop before ALL CAPS acronyms, if preceded by mixed-case | 1657 | ;; Stop before ALL CAPS acronyms, if preceded by mixed-case |
| 1658 | ;; words. Example: XT-DEM. | 1658 | ;; words. Example: XT-DEM. |
| 1659 | (and (>= word-count 2) | 1659 | (and (>= word-count 2) |
| 1660 | mixed-case-flag | 1660 | mixed-case-flag |
| 1661 | (looking-at mail-extr-weird-acronym-pattern) | 1661 | (looking-at mail-extr-weird-acronym-pattern) |
| 1662 | (not (looking-at mail-extr-roman-numeral-pattern))) | 1662 | (not (looking-at mail-extr-roman-numeral-pattern))) |
| 1663 | 1663 | ||
| 1664 | ;; Stop before trailing alternative address | 1664 | ;; Stop before trailing alternative address |
| 1665 | (looking-at mail-extr-alternative-address-pattern) | 1665 | (looking-at mail-extr-alternative-address-pattern) |
| 1666 | 1666 | ||
| 1667 | ;; Stop before trailing comment not introduced by comma | 1667 | ;; Stop before trailing comment not introduced by comma |
| 1668 | ;; THIS CASE MUST BE AFTER AN EARLIER CASE. | 1668 | ;; THIS CASE MUST BE AFTER AN EARLIER CASE. |
| 1669 | (looking-at mail-extr-trailing-comment-start-pattern) | 1669 | (looking-at mail-extr-trailing-comment-start-pattern) |
| 1670 | 1670 | ||
| 1671 | ;; Stop before telephone numbers | 1671 | ;; Stop before telephone numbers |
| 1672 | (and (>= word-count 1) | 1672 | (and (>= word-count 1) |
| 1673 | (looking-at mail-extr-telephone-extension-pattern))) | 1673 | (looking-at mail-extr-telephone-extension-pattern))) |
| 1674 | (setq name-done-flag t)) | 1674 | (setq name-done-flag t)) |
| 1675 | 1675 | ||
| 1676 | ;; Delete ham radio call signs | 1676 | ;; Delete ham radio call signs |
| 1677 | ((looking-at mail-extr-ham-call-sign-pattern) | 1677 | ((looking-at mail-extr-ham-call-sign-pattern) |
| 1678 | (delete-region (match-beginning 0) (match-end 0))) | 1678 | (delete-region (match-beginning 0) (match-end 0))) |
| 1679 | 1679 | ||
| 1680 | ;; Fixup initials | 1680 | ;; Fixup initials |
| 1681 | ((looking-at mail-extr-initial-pattern) | 1681 | ((looking-at mail-extr-initial-pattern) |
| 1682 | (or (eq (following-char) (upcase (following-char))) | 1682 | (or (eq (following-char) (upcase (following-char))) |
| @@ -1688,14 +1688,14 @@ consing a string.)" | |||
| 1688 | (or (eq ?\ (following-char)) | 1688 | (or (eq ?\ (following-char)) |
| 1689 | (insert ?\ )) | 1689 | (insert ?\ )) |
| 1690 | (setq word-found-flag t)) | 1690 | (setq word-found-flag t)) |
| 1691 | 1691 | ||
| 1692 | ;; Handle BITNET LISTSERV list names. | 1692 | ;; Handle BITNET LISTSERV list names. |
| 1693 | ((and (eq word-count 0) | 1693 | ((and (eq word-count 0) |
| 1694 | (looking-at mail-extr-listserv-list-name-pattern)) | 1694 | (looking-at mail-extr-listserv-list-name-pattern)) |
| 1695 | (narrow-to-region (match-beginning 1) (match-end 1)) | 1695 | (narrow-to-region (match-beginning 1) (match-end 1)) |
| 1696 | (setq word-found-flag t) | 1696 | (setq word-found-flag t) |
| 1697 | (setq name-done-flag t)) | 1697 | (setq name-done-flag t)) |
| 1698 | 1698 | ||
| 1699 | ;; Handle & substitution, when & is last and is not first. | 1699 | ;; Handle & substitution, when & is last and is not first. |
| 1700 | ((and (> word-count 0) | 1700 | ((and (> word-count 0) |
| 1701 | (eq ?\ (preceding-char)) | 1701 | (eq ?\ (preceding-char)) |
| @@ -1722,7 +1722,7 @@ consing a string.)" | |||
| 1722 | ((looking-at mail-extr-name-pattern) | 1722 | ((looking-at mail-extr-name-pattern) |
| 1723 | (setq name-beg (point)) | 1723 | (setq name-beg (point)) |
| 1724 | (setq name-end (match-end 0)) | 1724 | (setq name-end (match-end 0)) |
| 1725 | 1725 | ||
| 1726 | ;; Certain words will be dropped if they are at the end. | 1726 | ;; Certain words will be dropped if they are at the end. |
| 1727 | (and (>= word-count 2) | 1727 | (and (>= word-count 2) |
| 1728 | (not lower-case-flag) | 1728 | (not lower-case-flag) |
| @@ -1733,7 +1733,7 @@ consing a string.)" | |||
| 1733 | ;; Drop a trailing word which is terminated with a period. | 1733 | ;; Drop a trailing word which is terminated with a period. |
| 1734 | (eq ?. (char-after (1- name-end)))) | 1734 | (eq ?. (char-after (1- name-end)))) |
| 1735 | (setq drop-this-word-if-trailing-flag t)) | 1735 | (setq drop-this-word-if-trailing-flag t)) |
| 1736 | 1736 | ||
| 1737 | ;; Set the flags that indicate whether we have seen a lowercase | 1737 | ;; Set the flags that indicate whether we have seen a lowercase |
| 1738 | ;; word, a mixed case word, and an uppercase word. | 1738 | ;; word, a mixed case word, and an uppercase word. |
| 1739 | (if (re-search-forward "[a-z]" name-end t) | 1739 | (if (re-search-forward "[a-z]" name-end t) |
| @@ -1744,7 +1744,7 @@ consing a string.)" | |||
| 1744 | (setq lower-case-flag t)) | 1744 | (setq lower-case-flag t)) |
| 1745 | ;; (setq upper-case-flag t) | 1745 | ;; (setq upper-case-flag t) |
| 1746 | ) | 1746 | ) |
| 1747 | 1747 | ||
| 1748 | (goto-char name-end) | 1748 | (goto-char name-end) |
| 1749 | (setq word-found-flag t)) | 1749 | (setq word-found-flag t)) |
| 1750 | 1750 | ||
| @@ -1758,11 +1758,11 @@ consing a string.)" | |||
| 1758 | (t | 1758 | (t |
| 1759 | (setq name-done-flag t) | 1759 | (setq name-done-flag t) |
| 1760 | )) | 1760 | )) |
| 1761 | 1761 | ||
| 1762 | ;; Count any word that we skipped over. | 1762 | ;; Count any word that we skipped over. |
| 1763 | (if word-found-flag | 1763 | (if word-found-flag |
| 1764 | (setq word-count (1+ word-count)))) | 1764 | (setq word-count (1+ word-count)))) |
| 1765 | 1765 | ||
| 1766 | ;; If the last thing in the name is 2 or more periods, or one or more | 1766 | ;; If the last thing in the name is 2 or more periods, or one or more |
| 1767 | ;; other sentence terminators (but not a single period) then keep them | 1767 | ;; other sentence terminators (but not a single period) then keep them |
| 1768 | ;; and the preceding word. This is for the benefit of whole sentences | 1768 | ;; and the preceding word. This is for the benefit of whole sentences |
| @@ -1777,7 +1777,7 @@ consing a string.)" | |||
| 1777 | (or (and drop-last-word-if-trailing-flag | 1777 | (or (and drop-last-word-if-trailing-flag |
| 1778 | last-word-beg) | 1778 | last-word-beg) |
| 1779 | (point))) | 1779 | (point))) |
| 1780 | 1780 | ||
| 1781 | ;; Xerox's mailers SUCK!!!!!! | 1781 | ;; Xerox's mailers SUCK!!!!!! |
| 1782 | ;; We simply refuse to believe that any last name is PARC or ADOC. | 1782 | ;; We simply refuse to believe that any last name is PARC or ADOC. |
| 1783 | ;; If it looks like that is the last name, that there is no meaningful | 1783 | ;; If it looks like that is the last name, that there is no meaningful |
| @@ -1802,7 +1802,7 @@ consing a string.)" | |||
| 1802 | (goto-char name-end) | 1802 | (goto-char name-end) |
| 1803 | (skip-chars-forward "\t ,") | 1803 | (skip-chars-forward "\t ,") |
| 1804 | (narrow-to-region (point) (point-max))) | 1804 | (narrow-to-region (point) (point-max))) |
| 1805 | 1805 | ||
| 1806 | ;; Delete leading and trailing junk characters. | 1806 | ;; Delete leading and trailing junk characters. |
| 1807 | ;; *** This is probably completely unneeded now. | 1807 | ;; *** This is probably completely unneeded now. |
| 1808 | ;;(goto-char (point-max)) | 1808 | ;;(goto-char (point-max)) |
| @@ -1814,7 +1814,7 @@ consing a string.)" | |||
| 1814 | ;; (goto-char (point-min)) | 1814 | ;; (goto-char (point-min)) |
| 1815 | ;; (skip-chars-forward mail-extr-non-begin-name-chars) | 1815 | ;; (skip-chars-forward mail-extr-non-begin-name-chars) |
| 1816 | ;; (point))) | 1816 | ;; (point))) |
| 1817 | 1817 | ||
| 1818 | ;; Compress whitespace | 1818 | ;; Compress whitespace |
| 1819 | (goto-char (point-min)) | 1819 | (goto-char (point-min)) |
| 1820 | (while (re-search-forward "[ \t\n]+" nil t) | 1820 | (while (re-search-forward "[ \t\n]+" nil t) |
| @@ -2132,7 +2132,7 @@ consing a string.)" | |||
| 2132 | 2132 | ||
| 2133 | ;(let ((all nil)) | 2133 | ;(let ((all nil)) |
| 2134 | ; (mapatoms #'(lambda (x) | 2134 | ; (mapatoms #'(lambda (x) |
| 2135 | ; (if (and (boundp x) | 2135 | ; (if (and (boundp x) |
| 2136 | ; (string-match "^mail-extr-" (symbol-name x))) | 2136 | ; (string-match "^mail-extr-" (symbol-name x))) |
| 2137 | ; (setq all (cons x all))))) | 2137 | ; (setq all (cons x all))))) |
| 2138 | ; (setq all (sort all #'string-lessp)) | 2138 | ; (setq all (sort all #'string-lessp)) |
diff --git a/lisp/net/eudc.el b/lisp/net/eudc.el index 4c501e9c63b..9d3e4aa9d34 100644 --- a/lisp/net/eudc.el +++ b/lisp/net/eudc.el | |||
| @@ -38,7 +38,7 @@ | |||
| 38 | ;; The main entry points of EUDC are: | 38 | ;; The main entry points of EUDC are: |
| 39 | ;; `eudc-query-form': Query a directory server from a query form | 39 | ;; `eudc-query-form': Query a directory server from a query form |
| 40 | ;; `eudc-expand-inline': Query a directory server for the e-mail address | 40 | ;; `eudc-expand-inline': Query a directory server for the e-mail address |
| 41 | ;; of the name before cursor and insert it in the | 41 | ;; of the name before cursor and insert it in the |
| 42 | ;; buffer | 42 | ;; buffer |
| 43 | ;; `eudc-get-phone': Get a phone number from a directory server | 43 | ;; `eudc-get-phone': Get a phone number from a directory server |
| 44 | ;; `eudc-get-email': Get an e-mail address from a directory server | 44 | ;; `eudc-get-email': Get an e-mail address from a directory server |
| @@ -207,7 +207,7 @@ Value is the new string." | |||
| 207 | (defun eudc-default-set (var val) | 207 | (defun eudc-default-set (var val) |
| 208 | "Set the EUDC default value of VAR to VAL. | 208 | "Set the EUDC default value of VAR to VAL. |
| 209 | The current binding of VAR is not changed." | 209 | The current binding of VAR is not changed." |
| 210 | (put var 'eudc-locals | 210 | (put var 'eudc-locals |
| 211 | (plist-put (get var 'eudc-locals) 'default val)) | 211 | (plist-put (get var 'eudc-locals) 'default val)) |
| 212 | (add-to-list 'eudc-local-vars var)) | 212 | (add-to-list 'eudc-local-vars var)) |
| 213 | 213 | ||
| @@ -221,7 +221,7 @@ The current binding of VAR is changed only if PROTOCOL is omitted." | |||
| 221 | (protocol-locals (eudc-plist-get eudc-locals 'protocol))) | 221 | (protocol-locals (eudc-plist-get eudc-locals 'protocol))) |
| 222 | (setq protocol-locals (plist-put protocol-locals (or protocol | 222 | (setq protocol-locals (plist-put protocol-locals (or protocol |
| 223 | eudc-protocol) val)) | 223 | eudc-protocol) val)) |
| 224 | (setq eudc-locals | 224 | (setq eudc-locals |
| 225 | (plist-put eudc-locals 'protocol protocol-locals)) | 225 | (plist-put eudc-locals 'protocol protocol-locals)) |
| 226 | (put var 'eudc-locals eudc-locals) | 226 | (put var 'eudc-locals eudc-locals) |
| 227 | (add-to-list 'eudc-local-vars var) | 227 | (add-to-list 'eudc-local-vars var) |
| @@ -293,7 +293,7 @@ SERVER defaults to `eudc-server'" | |||
| 293 | (eudc-plist-member eudc-locals 'server))) | 293 | (eudc-plist-member eudc-locals 'server))) |
| 294 | 'unbound | 294 | 'unbound |
| 295 | (setq server-locals (eudc-plist-get eudc-locals 'server)) | 295 | (setq server-locals (eudc-plist-get eudc-locals 'server)) |
| 296 | (eudc-lax-plist-get server-locals | 296 | (eudc-lax-plist-get server-locals |
| 297 | (or server | 297 | (or server |
| 298 | eudc-server) 'unbound)))) | 298 | eudc-server) 'unbound)))) |
| 299 | 299 | ||
| @@ -789,7 +789,7 @@ If none try N - 1 and so forth." | |||
| 789 | (let (formats) | 789 | (let (formats) |
| 790 | (while (and (null formats) | 790 | (while (and (null formats) |
| 791 | (> n 0)) | 791 | (> n 0)) |
| 792 | (setq formats | 792 | (setq formats |
| 793 | (delq nil | 793 | (delq nil |
| 794 | (mapcar '(lambda (format) | 794 | (mapcar '(lambda (format) |
| 795 | (if (= n | 795 | (if (= n |
| @@ -1103,7 +1103,7 @@ queries the server for the existing fields and displays a corresponding form." | |||
| 1103 | 1103 | ||
| 1104 | ;;}}} | 1104 | ;;}}} |
| 1105 | 1105 | ||
| 1106 | ;;{{{ Menus an keymaps | 1106 | ;;{{{ Menus and keymaps |
| 1107 | 1107 | ||
| 1108 | (require 'easymenu) | 1108 | (require 'easymenu) |
| 1109 | 1109 | ||
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 4fdfbcf9502..58d61eb2182 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -366,7 +366,7 @@ COMMA-DELIM is non-nil then ',' is treated likewise." | |||
| 366 | c-maybe-labelp nil)))) | 366 | c-maybe-labelp nil)))) |
| 367 | 367 | ||
| 368 | ;; Step to next sexp, but not if we crossed a boundary, since | 368 | ;; Step to next sexp, but not if we crossed a boundary, since |
| 369 | ;; that doesn't consume an sexp. | 369 | ;; that doesn't consume a sexp. |
| 370 | (if (eq sym 'boundary) | 370 | (if (eq sym 'boundary) |
| 371 | (setq ret 'previous) | 371 | (setq ret 'previous) |
| 372 | (while | 372 | (while |
diff --git a/lisp/progmodes/octave-mod.el b/lisp/progmodes/octave-mod.el index e66c4578e70..9ba2596a208 100644 --- a/lisp/progmodes/octave-mod.el +++ b/lisp/progmodes/octave-mod.el | |||
| @@ -1183,7 +1183,7 @@ otherwise." | |||
| 1183 | (beginning-of-line) | 1183 | (beginning-of-line) |
| 1184 | (looking-at "^\\s-*\\s<+\\s-*$")))) | 1184 | (looking-at "^\\s-*\\s<+\\s-*$")))) |
| 1185 | ;; This is a nonempty comment line which does not extend | 1185 | ;; This is a nonempty comment line which does not extend |
| 1186 | ;; past the fill column. If it is followed by an nonempty | 1186 | ;; past the fill column. If it is followed by a nonempty |
| 1187 | ;; comment line with the same comment prefix, try to | 1187 | ;; comment line with the same comment prefix, try to |
| 1188 | ;; combine them, and repeat this until either we reach the | 1188 | ;; combine them, and repeat this until either we reach the |
| 1189 | ;; fill-column or there is nothing more to combine. | 1189 | ;; fill-column or there is nothing more to combine. |