diff options
| author | Stefan Monnier | 2001-05-09 20:29:56 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-05-09 20:29:56 +0000 |
| commit | ff39b9a101dd59c2cdf041d59eb2a5af69c9fae4 (patch) | |
| tree | e9d1069c989c108ced1162d54a7f428a1f45e49d | |
| parent | e9726794f695b0e0fb58b61b7c471c286c61345c (diff) | |
| download | emacs-ff39b9a101dd59c2cdf041d59eb2a5af69c9fae4.tar.gz emacs-ff39b9a101dd59c2cdf041d59eb2a5af69c9fae4.zip | |
(archive-int-to-mode): Construct the string directly.
(archive-mode): Use capitalize.
(archive-unique-fname): Use make-temp-file.
| -rw-r--r-- | lisp/ChangeLog | 117 | ||||
| -rw-r--r-- | lisp/arc-mode.el | 47 |
2 files changed, 78 insertions, 86 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d8be90d2998..0b7e236502a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2001-05-09 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * arc-mode.el (archive-int-to-mode): Construct the string directly. | ||
| 4 | (archive-mode): Use capitalize. | ||
| 5 | (archive-unique-fname): Use make-temp-file. | ||
| 6 | |||
| 1 | 2001-05-09 Gerd Moellmann <gerd@gnu.org> | 7 | 2001-05-09 Gerd Moellmann <gerd@gnu.org> |
| 2 | 8 | ||
| 3 | * emacs-lisp/lisp-mode.el (lisp-interaction-mode): Doc fix. | 9 | * emacs-lisp/lisp-mode.el (lisp-interaction-mode): Doc fix. |
| @@ -7,17 +13,16 @@ | |||
| 7 | * tar-mode.el (tar-extract): Pay attention to the value of | 13 | * tar-mode.el (tar-extract): Pay attention to the value of |
| 8 | coding-system-for-read, if it is non-nil. | 14 | coding-system-for-read, if it is non-nil. |
| 9 | 15 | ||
| 10 | * calendar/holidays.el (holidays): Add an autoload cookie. From | 16 | * calendar/holidays.el (holidays): Add an autoload cookie. |
| 11 | Pavel Jan,Bm(Bk <Pavel@Janik.cz>. | 17 | From Pavel Jan,Bm(Bk <Pavel@Janik.cz>. |
| 12 | 18 | ||
| 13 | 2001-05-08 John Wiegley <johnw@gnu.org> | 19 | 2001-05-08 John Wiegley <johnw@gnu.org> |
| 14 | 20 | ||
| 15 | * calendar/timeclock.el (timeclock-workday-remaining): Changed | 21 | * calendar/timeclock.el (timeclock-workday-remaining): |
| 16 | logic for determining how much time is remaining. | 22 | Changed logic for determining how much time is remaining. |
| 17 | (timeclock-workday-elapsed): Don't accept a "relative" argument | 23 | (timeclock-workday-elapsed): Don't accept a "relative" argument |
| 18 | for the current day's elapsed time. What could that have meant? | 24 | for the current day's elapsed time. What could that have meant? |
| 19 | (timeclock-workday-elapsed-string): No "relative" argument | 25 | (timeclock-workday-elapsed-string): No "relative" argument anymore. |
| 20 | anymore. | ||
| 21 | (timeclock-when-to-leave): Changed logic, similarly to what was | 26 | (timeclock-when-to-leave): Changed logic, similarly to what was |
| 22 | done for `timeclock-workday-remaining'. | 27 | done for `timeclock-workday-remaining'. |
| 23 | (timeclock-find-discrep): Removed "today-only" argument, which had | 28 | (timeclock-find-discrep): Removed "today-only" argument, which had |
| @@ -41,11 +46,9 @@ | |||
| 41 | * mail/rmail.el (rmail-insert-mime-forwarded-message-function) | 46 | * mail/rmail.el (rmail-insert-mime-forwarded-message-function) |
| 42 | (rmail-search-mime-message-function) | 47 | (rmail-search-mime-message-function) |
| 43 | (rmail-search-mime-header-function): New variables. | 48 | (rmail-search-mime-header-function): New variables. |
| 44 | (rmail-expunge-and-save): Be sure to set-buffer to the Rmail | 49 | (rmail-expunge-and-save): Be sure to set-buffer to the Rmail buffer. |
| 45 | buffer. | 50 | (rmail-quit, rmail-get-new-mail): Bury `rmail-buffer' after |
| 46 | (rmail-quit): Bury `rmail-buffer' after `rmail-view-buffer' is | 51 | `rmail-view-buffer' is hidden. |
| 47 | hidden. | ||
| 48 | (rmail-get-new-mail): Likewise. | ||
| 49 | (rmail-toggle-header): Likewise. If rmail-enable-mime is non-nil, | 52 | (rmail-toggle-header): Likewise. If rmail-enable-mime is non-nil, |
| 50 | call rmai-show-mime-function. | 53 | call rmai-show-mime-function. |
| 51 | (rmail-display-labels): If rmail-enable-mime is non-nil, update | 54 | (rmail-display-labels): If rmail-enable-mime is non-nil, update |
| @@ -53,23 +56,21 @@ | |||
| 53 | (rmail-set-attribute): Be sure to set-buffer to the Rmail buffer. | 56 | (rmail-set-attribute): Be sure to set-buffer to the Rmail buffer. |
| 54 | (rmail-show-message): Be sure to call rmail-auto-file in the Rmail | 57 | (rmail-show-message): Be sure to call rmail-auto-file in the Rmail |
| 55 | buffer. | 58 | buffer. |
| 56 | (rmail-next-message): Be sure to set-buffer to the Rmail buffer. | 59 | (rmail-next-message, rmail-next-undeleted-message): Be sure to |
| 57 | (rmail-next-undeleted-message): Likewise. | 60 | set-buffer to the Rmail buffer. |
| 58 | (rmail-message-regexp-p): If rmail-enable-mime is non-nil, call | 61 | (rmail-message-regexp-p): If rmail-enable-mime is non-nil, call |
| 59 | rmail-search-mime-header-function. | 62 | rmail-search-mime-header-function. |
| 60 | (rmail-search-message): New function. | 63 | (rmail-search-message): New function. |
| 61 | (rmail-search): Call rmail-search-message to check if a message | 64 | (rmail-search): Call rmail-search-message to check if a message |
| 62 | matches REGEXP, lastly update point after calling | 65 | matches REGEXP, lastly update point after calling |
| 63 | rmail-show-message. | 66 | rmail-show-message. |
| 64 | (rmail-undelete-previous-message): Be sure to set-buffer to the | 67 | (rmail-undelete-previous-message, rmail-expunge-confirmed) |
| 65 | Rmail buffer. | 68 | (rmail-only-expunge): Be sure to set-buffer to the Rmail buffer. |
| 66 | (rmail-expunge-confirmed): Likewise. | ||
| 67 | (rmail-only-expunge): Likewise. | ||
| 68 | (rmail-reply): If rmail-enable-mime is non-nil, don't narrow to | 69 | (rmail-reply): If rmail-enable-mime is non-nil, don't narrow to |
| 69 | header region, refer to rmail-msgref-vector while setting the | 70 | header region, refer to rmail-msgref-vector while setting the |
| 70 | current buffer to rmail-buffer temporarily. | 71 | current buffer to rmail-buffer temporarily. |
| 71 | (rmail-forward): Be sure to bind forward-buffer to the Rmail | 72 | (rmail-forward): Be sure to bind forward-buffer to the Rmail buffer. |
| 72 | buffer. If rmail-enable-mime is non-nil, call | 73 | If rmail-enable-mime is non-nil, call |
| 73 | rmail-insert-mime-forwarded-message-function instead of inserting | 74 | rmail-insert-mime-forwarded-message-function instead of inserting |
| 74 | forwarded message by itself. | 75 | forwarded message by itself. |
| 75 | 76 | ||
| @@ -84,8 +85,8 @@ | |||
| 84 | 85 | ||
| 85 | * mail/rmailsum.el (rmail-message-subject-p): Process the result | 86 | * mail/rmailsum.el (rmail-message-subject-p): Process the result |
| 86 | of mail-fetch-field by rmail-summary-line-decoder. | 87 | of mail-fetch-field by rmail-summary-line-decoder. |
| 87 | (rmail-new-summary): Be sure to go to the Rmail buffer. If | 88 | (rmail-new-summary): Be sure to go to the Rmail buffer. |
| 88 | rmail-enable-mime is non-nil, set rmail-summary-buffer of | 89 | If rmail-enable-mime is non-nil, set rmail-summary-buffer of |
| 89 | rmail-view-buffer to nil. | 90 | rmail-view-buffer to nil. |
| 90 | (rmail-summary-undelete): If rmail-enable-mime is non-nil, pop to | 91 | (rmail-summary-undelete): If rmail-enable-mime is non-nil, pop to |
| 91 | rmail-view-buffer. | 92 | rmail-view-buffer. |
| @@ -107,22 +108,22 @@ | |||
| 107 | 108 | ||
| 108 | * mail/rmailedit.el (rmail-edit-mode-hook): Add :version. | 109 | * mail/rmailedit.el (rmail-edit-mode-hook): Add :version. |
| 109 | 110 | ||
| 110 | * mail/smtpmail.el (smtpmail-warn-about-unknown-extensions): Add | 111 | * mail/smtpmail.el (smtpmail-warn-about-unknown-extensions): |
| 111 | :version. | 112 | Add :version. |
| 112 | 113 | ||
| 113 | * mail/smtpmail.el (smtpmail-warn-about-unknown-extensions): New | 114 | * mail/smtpmail.el (smtpmail-warn-about-unknown-extensions): |
| 114 | option. | 115 | New option. |
| 115 | (smtpmail-via-smtp): Print warnings about unknown SMTP extensions | 116 | (smtpmail-via-smtp): Print warnings about unknown SMTP extensions |
| 116 | only if smtpmail-warn-about-unknown-extensions is set. | 117 | only if smtpmail-warn-about-unknown-extensions is set. |
| 117 | 118 | ||
| 118 | * mail/rmail.el (rmail-mode-map): Use rmail-sort-by-labels | 119 | * mail/rmail.el (rmail-mode-map): Use rmail-sort-by-labels |
| 119 | instead of rmail-sort-by-keywords. | 120 | instead of rmail-sort-by-keywords. |
| 120 | 121 | ||
| 121 | * mail/rmailsort.el (rmail-sort-by-labels): Renamed from | 122 | * mail/rmailsort.el (rmail-sort-by-labels): Renamed from |
| 122 | rmail-sort-by-keywords. | 123 | rmail-sort-by-keywords. |
| 123 | 124 | ||
| 124 | * mail/rmailsum.el (rmail-summary-sort-by-labels): Renamed | 125 | * mail/rmailsum.el (rmail-summary-sort-by-labels): Renamed from |
| 125 | from rmail-summary-sort-by-keywords. Doc fix. | 126 | rmail-summary-sort-by-keywords. Doc fix. |
| 126 | (rmail-summary-mode): Doc fix. | 127 | (rmail-summary-mode): Doc fix. |
| 127 | 128 | ||
| 128 | * mail/rmail.el (rmail-edit): New Custom group. | 129 | * mail/rmail.el (rmail-edit): New Custom group. |
| @@ -15738,8 +15739,7 @@ | |||
| 15738 | 15739 | ||
| 15739 | * emacs-lisp/easy-mmode.el (easy-mmode-define-keymap): Extend to | 15740 | * emacs-lisp/easy-mmode.el (easy-mmode-define-keymap): Extend to |
| 15740 | allow more flexibility. | 15741 | allow more flexibility. |
| 15741 | (easy-mmode-set-keymap-parents, easy-mmode-define-syntax): New | 15742 | (easy-mmode-set-keymap-parents, easy-mmode-define-syntax): New fns. |
| 15742 | fns. | ||
| 15743 | (easy-mmode-defmap, easy-mmode-defsyntax) | 15743 | (easy-mmode-defmap, easy-mmode-defsyntax) |
| 15744 | (easy-mmode-define-derived-mode): New macros. | 15744 | (easy-mmode-define-derived-mode): New macros. |
| 15745 | 15745 | ||
| @@ -15749,8 +15749,7 @@ | |||
| 15749 | 15749 | ||
| 15750 | 2000-03-09 Dave Love <fx@gnu.org> | 15750 | 2000-03-09 Dave Love <fx@gnu.org> |
| 15751 | 15751 | ||
| 15752 | * progmodes/fortran.el (fortran-comment-line-start): Define as | 15752 | * progmodes/fortran.el (fortran-comment-line-start): Define as "C". |
| 15753 | "C". | ||
| 15754 | (fortran-comment-line-start-skip): Don't match cpp stuff. | 15753 | (fortran-comment-line-start-skip): Don't match cpp stuff. |
| 15755 | (font-lock-keywords): Add * to comment-chars. Grok cpp stuff. | 15754 | (font-lock-keywords): Add * to comment-chars. Grok cpp stuff. |
| 15756 | (fortran-mode-map): Remove over-eager custom-menu-create for now. | 15755 | (fortran-mode-map): Remove over-eager custom-menu-create for now. |
| @@ -15818,8 +15817,7 @@ | |||
| 15818 | * recentf.el (recentf-keep-non-readable-files-p): Add :set, | 15817 | * recentf.el (recentf-keep-non-readable-files-p): Add :set, |
| 15819 | :require to defcustom. | 15818 | :require to defcustom. |
| 15820 | 15819 | ||
| 15821 | * emacs-lisp/cl.el: Remove expt, delete, rassoc from autoloads | 15820 | * emacs-lisp/cl.el: Remove expt, delete, rassoc from autoloads lists. |
| 15822 | lists. | ||
| 15823 | 15821 | ||
| 15824 | * files.el (auto-mode-alist): Add configure.in. | 15822 | * files.el (auto-mode-alist): Add configure.in. |
| 15825 | 15823 | ||
| @@ -15842,8 +15840,8 @@ | |||
| 15842 | 15840 | ||
| 15843 | 2000-03-07 Dave Love <fx@gnu.org> | 15841 | 2000-03-07 Dave Love <fx@gnu.org> |
| 15844 | 15842 | ||
| 15845 | * winner.el: Fix keywords, autoload cookies. Split | 15843 | * winner.el: Fix keywords, autoload cookies. |
| 15846 | eval-when-compile form to avoid compilation failure. | 15844 | Split eval-when-compile form to avoid compilation failure. |
| 15847 | 15845 | ||
| 15848 | 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp> | 15846 | 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp> |
| 15849 | 15847 | ||
| @@ -15852,12 +15850,12 @@ | |||
| 15852 | (make-coding-system): New argument EOL-TYPE. Pay attention to | 15850 | (make-coding-system): New argument EOL-TYPE. Pay attention to |
| 15853 | coding-category property of PROPERTIES. | 15851 | coding-category property of PROPERTIES. |
| 15854 | 15852 | ||
| 15855 | * international/mule-conf.el (coding-category-utf-8, | 15853 | * international/mule-conf.el (coding-category-utf-8) |
| 15856 | coding-category-utf-16-be, coding-category-utf-16-le): New coding | 15854 | (coding-category-utf-16-be, coding-category-utf-16-le): New coding |
| 15857 | categories. Include them in the argument for set-coding-priority. | 15855 | categories. Include them in the argument for set-coding-priority. |
| 15858 | 15856 | ||
| 15859 | * international/mule-cmds.el (reset-language-environment): Include | 15857 | * international/mule-cmds.el (reset-language-environment): |
| 15860 | coding-category-utf-8, coding-category-utf-16-be, and | 15858 | Include coding-category-utf-8, coding-category-utf-16-be, and |
| 15861 | coding-category-utf-16-le in the argument for set-coding-priority. | 15859 | coding-category-utf-16-le in the argument for set-coding-priority. |
| 15862 | (reset-language-environment): Initialize coding-category-utf-8, | 15860 | (reset-language-environment): Initialize coding-category-utf-8, |
| 15863 | coding-category-utf-16-be, and coding-category-utf-16-le to nil. | 15861 | coding-category-utf-16-be, and coding-category-utf-16-le to nil. |
| @@ -15882,15 +15880,14 @@ | |||
| 15882 | 15880 | ||
| 15883 | 2000-03-02 Gerd Moellmann <gerd@gnu.org> | 15881 | 2000-03-02 Gerd Moellmann <gerd@gnu.org> |
| 15884 | 15882 | ||
| 15885 | * time.el (display-time-mail-file): Add `none' to the list of | 15883 | * time.el (display-time-mail-file): Add `none' to the list of choices. |
| 15886 | choices. | ||
| 15887 | 15884 | ||
| 15888 | 2000-03-01 Dave Love <fx@gnu.org> | 15885 | 2000-03-01 Dave Love <fx@gnu.org> |
| 15889 | 15886 | ||
| 15890 | * help.el (help-xref-go-back): Don't try to set position. | 15887 | * help.el (help-xref-go-back): Don't try to set position. |
| 15891 | 15888 | ||
| 15892 | * international/mule-diag.el (list-character-sets): Call | 15889 | * international/mule-diag.el (list-character-sets): |
| 15893 | help-setup-xref. Add help-echo to xrefs. | 15890 | Call help-setup-xref. Add help-echo to xrefs. |
| 15894 | (list-character-sets-1): Add help-echo to xrefs. | 15891 | (list-character-sets-1): Add help-echo to xrefs. |
| 15895 | 15892 | ||
| 15896 | 2000-03-02 Gerd Moellmann <gerd@gnu.org> | 15893 | 2000-03-02 Gerd Moellmann <gerd@gnu.org> |
| @@ -15910,35 +15907,29 @@ | |||
| 15910 | * help.el (help-xref-button): Add help-echo arg. | 15907 | * help.el (help-xref-button): Add help-echo arg. |
| 15911 | (describe-function-1, describe-variable, help-make-xrefs): Use it. | 15908 | (describe-function-1, describe-variable, help-make-xrefs): Use it. |
| 15912 | 15909 | ||
| 15913 | * faces.el (list-faces-display): Supply help-echo with | 15910 | * faces.el (list-faces-display): Supply help-echo with help-make-xrefs. |
| 15914 | help-make-xrefs. | ||
| 15915 | 15911 | ||
| 15916 | * facemenu.el (list-text-properties-at): Set help-xref-stack to | 15912 | * facemenu.el (list-text-properties-at): Set help-xref-stack to nil. |
| 15917 | nil. | ||
| 15918 | 15913 | ||
| 15919 | 2000-03-01 Gerd Moellmann <gerd@gnu.org> | 15914 | 2000-03-01 Gerd Moellmann <gerd@gnu.org> |
| 15920 | 15915 | ||
| 15921 | * image.el (defimage): Look for image files in load-path. | 15916 | * image.el (defimage): Look for image files in load-path. |
| 15922 | 15917 | ||
| 15923 | * frame.el (busy-cursor-delay-seconds): Change type to | 15918 | * frame.el (busy-cursor-delay-seconds): Change type to `number'. |
| 15924 | `number'. | ||
| 15925 | 15919 | ||
| 15926 | 2000-03-01 David Ponce <david.ponce@wanadoo.fr> | 15920 | 2000-03-01 David Ponce <david.ponce@wanadoo.fr> |
| 15927 | 15921 | ||
| 15928 | * recentf.el (recentf): Added version tag to the defgroup of | 15922 | * recentf.el (recentf): Added version tag to the defgroup of recentf. |
| 15929 | recentf. | ||
| 15930 | 15923 | ||
| 15931 | 2000-03-01 David Ponce <david.ponce@wanadoo.fr> | 15924 | 2000-03-01 David Ponce <david.ponce@wanadoo.fr> |
| 15932 | 15925 | ||
| 15933 | * recentf.el (recentf-cleanup): Changed to remove excluded file | 15926 | * recentf.el (recentf-cleanup): Changed to remove excluded file too. |
| 15934 | too. | ||
| 15935 | (recentf-edit-list-action): `recentf-edit-list' checkbox widget | 15927 | (recentf-edit-list-action): `recentf-edit-list' checkbox widget |
| 15936 | action to select/unselect a file. | 15928 | action to select/unselect a file. |
| 15937 | (recentf-edit-list): Code cleanup and improvement. | 15929 | (recentf-edit-list): Code cleanup and improvement. |
| 15938 | (recentf-open-more-files-action): `recentf-open-more-files' button | 15930 | (recentf-open-more-files-action): `recentf-open-more-files' button |
| 15939 | widget action to open a file. | 15931 | widget action to open a file. |
| 15940 | (recentf-open-more-files): No more use standard completion but | 15932 | (recentf-open-more-files): No more use standard completion but widgets. |
| 15941 | widgets. | ||
| 15942 | (recentf-more-collection): Deleted. | 15933 | (recentf-more-collection): Deleted. |
| 15943 | (recentf-more-history): Deleted. | 15934 | (recentf-more-history): Deleted. |
| 15944 | (recentf-setup-more-completion): Deleted. | 15935 | (recentf-setup-more-completion): Deleted. |
| @@ -15948,7 +15939,7 @@ | |||
| 15948 | * recentf.el (recentf-mode): No more needs that Emacs is running | 15939 | * recentf.el (recentf-mode): No more needs that Emacs is running |
| 15949 | under a window-system. | 15940 | under a window-system. |
| 15950 | 15941 | ||
| 15951 | 1999-03-01 David Ponce <david.ponce@wanadoo.fr> | 15942 | 2000-03-01 David Ponce <david.ponce@wanadoo.fr> |
| 15952 | 15943 | ||
| 15953 | * recentf.el (recentf-edit-list): New command to edit the recent | 15944 | * recentf.el (recentf-edit-list): New command to edit the recent |
| 15954 | list which allow the user to remove files. | 15945 | list which allow the user to remove files. |
| @@ -15958,7 +15949,7 @@ | |||
| 15958 | (recentf-make-menu-items): Updated to display a "Edit list..." | 15949 | (recentf-make-menu-items): Updated to display a "Edit list..." |
| 15959 | menu item. Minor code cleanup. | 15950 | menu item. Minor code cleanup. |
| 15960 | 15951 | ||
| 15961 | 1999-03-01 David Ponce <david.ponce@wanadoo.fr> | 15952 | 2000-03-01 David Ponce <david.ponce@wanadoo.fr> |
| 15962 | 15953 | ||
| 15963 | * recentf.el (recentf-open-more-files): New command to open files | 15954 | * recentf.el (recentf-open-more-files): New command to open files |
| 15964 | that are not displayed in the menu. | 15955 | that are not displayed in the menu. |
| @@ -15970,11 +15961,11 @@ | |||
| 15970 | `recentf-open-more-files'. | 15961 | `recentf-open-more-files'. |
| 15971 | (recentf-make-menu-items): Updated to display a "More..." menu item. | 15962 | (recentf-make-menu-items): Updated to display a "More..." menu item. |
| 15972 | 15963 | ||
| 15973 | 1999-03-01 David Ponce <david.ponce@wanadoo.fr> | 15964 | 2000-03-01 David Ponce <david.ponce@wanadoo.fr> |
| 15974 | 15965 | ||
| 15975 | * recentf.el (recentf-menu-action): Doc fixed. | 15966 | * recentf.el (recentf-menu-action): Doc fixed. |
| 15976 | 15967 | ||
| 15977 | 1999-03-01 David Ponce <david.ponce@wanadoo.fr> | 15968 | 2000-03-01 David Ponce <david.ponce@wanadoo.fr> |
| 15978 | 15969 | ||
| 15979 | * recentf.el (recentf-menu-filter): Doc updated. | 15970 | * recentf.el (recentf-menu-filter): Doc updated. |
| 15980 | (recentf-update-menu-hook): Allow menu filters to force menu update. | 15971 | (recentf-update-menu-hook): Allow menu filters to force menu update. |
| @@ -15996,8 +15987,8 @@ | |||
| 15996 | 15987 | ||
| 15997 | 2000-02-29 Kenichi Handa <handa@etl.go.jp> | 15988 | 2000-02-29 Kenichi Handa <handa@etl.go.jp> |
| 15998 | 15989 | ||
| 15999 | * international/mule-diag.el (list-character-sets): Completely | 15990 | * international/mule-diag.el (list-character-sets): |
| 16000 | rewritten. | 15991 | Completely rewritten. |
| 16001 | (sort-listed-character-sets): New function. | 15992 | (sort-listed-character-sets): New function. |
| 16002 | (list-character-sets-1): Completely rewritten. | 15993 | (list-character-sets-1): Completely rewritten. |
| 16003 | (list-character-sets-2): New function. | 15994 | (list-character-sets-2): New function. |
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index 07dee0648ad..4afb71509c7 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el | |||
| @@ -364,24 +364,25 @@ in which case a second argument, length, should be supplied." | |||
| 364 | result)) | 364 | result)) |
| 365 | 365 | ||
| 366 | (defun archive-int-to-mode (mode) | 366 | (defun archive-int-to-mode (mode) |
| 367 | "Turn an integer like 0700 (i.e., 448) into a mode string like -rwx------" | 367 | "Turn an integer like 0700 (i.e., 448) into a mode string like -rwx------." |
| 368 | (let ((str (make-string 10 ?-))) | 368 | ;; FIXME: merge with tar-grind-file-mode. |
| 369 | (or (zerop (logand 16384 mode)) (aset str 0 ?d)) | 369 | (string |
| 370 | (or (zerop (logand 8192 mode)) (aset str 0 ?c)) ; completeness | 370 | (if (zerop (logand 8192 mode)) |
| 371 | (or (zerop (logand 256 mode)) (aset str 1 ?r)) | 371 | (if (zerop (logand 16384 mode)) ?- ?d) |
| 372 | (or (zerop (logand 128 mode)) (aset str 2 ?w)) | 372 | ?c) ; completeness |
| 373 | (or (zerop (logand 64 mode)) (aset str 3 ?x)) | 373 | (if (zerop (logand 256 mode)) ?- ?r) |
| 374 | (or (zerop (logand 32 mode)) (aset str 4 ?r)) | 374 | (if (zerop (logand 128 mode)) ?- ?w) |
| 375 | (or (zerop (logand 16 mode)) (aset str 5 ?w)) | 375 | (if (zerop (logand 64 mode)) |
| 376 | (or (zerop (logand 8 mode)) (aset str 6 ?x)) | 376 | (if (zerop (logand 1024 mode)) ?- ?S) |
| 377 | (or (zerop (logand 4 mode)) (aset str 7 ?r)) | 377 | (if (zerop (logand 1024 mode)) ?x ?s)) |
| 378 | (or (zerop (logand 2 mode)) (aset str 8 ?w)) | 378 | (if (zerop (logand 32 mode)) ?- ?r) |
| 379 | (or (zerop (logand 1 mode)) (aset str 9 ?x)) | 379 | (if (zerop (logand 16 mode)) ?- ?w) |
| 380 | (or (zerop (logand 1024 mode)) (aset str 3 (if (zerop (logand 64 mode)) | 380 | (if (zerop (logand 8 mode)) |
| 381 | ?S ?s))) | 381 | (if (zerop (logand 2048 mode)) ?- ?S) |
| 382 | (or (zerop (logand 2048 mode)) (aset str 6 (if (zerop (logand 8 mode)) | 382 | (if (zerop (logand 2048 mode)) ?x ?s)) |
| 383 | ?S ?s))) | 383 | (if (zerop (logand 4 mode)) ?- ?r) |
| 384 | str)) | 384 | (if (zerop (logand 2 mode)) ?- ?w) |
| 385 | (if (zerop (logand 1 mode)) ?- ?x))) | ||
| 385 | 386 | ||
| 386 | (defun archive-calc-mode (oldmode newmode &optional error) | 387 | (defun archive-calc-mode (oldmode newmode &optional error) |
| 387 | "From the integer OLDMODE and the string NEWMODE calculate a new file mode. | 388 | "From the integer OLDMODE and the string NEWMODE calculate a new file mode. |
| @@ -505,8 +506,7 @@ archive. | |||
| 505 | (funcall default-major-mode) | 506 | (funcall default-major-mode) |
| 506 | (if (and (not force) archive-files) nil | 507 | (if (and (not force) archive-files) nil |
| 507 | (let* ((type (archive-find-type)) | 508 | (let* ((type (archive-find-type)) |
| 508 | (typename (copy-sequence (symbol-name type)))) | 509 | (typename (capitalize (symbol-name type)))) |
| 509 | (aset typename 0 (upcase (aref typename 0))) | ||
| 510 | (kill-all-local-variables) | 510 | (kill-all-local-variables) |
| 511 | (make-local-variable 'archive-subtype) | 511 | (make-local-variable 'archive-subtype) |
| 512 | (setq archive-subtype type) | 512 | (setq archive-subtype type) |
| @@ -769,13 +769,14 @@ This function changes the set of information shown for each files." | |||
| 769 | If FNAME can be uniquely created in DIR, it is returned unaltered. | 769 | If FNAME can be uniquely created in DIR, it is returned unaltered. |
| 770 | If FNAME is something our underlying filesystem can't grok, or if another | 770 | If FNAME is something our underlying filesystem can't grok, or if another |
| 771 | file by that name already exists in DIR, a unique new name is generated | 771 | file by that name already exists in DIR, a unique new name is generated |
| 772 | using `make-temp-name', and the generated name is returned." | 772 | using `make-temp-file', and the generated name is returned." |
| 773 | (let ((fullname (expand-file-name fname dir)) | 773 | (let ((fullname (expand-file-name fname dir)) |
| 774 | (alien (string-match file-name-invalid-regexp fname))) | 774 | (alien (string-match file-name-invalid-regexp fname))) |
| 775 | (if (or alien (file-exists-p fullname)) | 775 | (if (or alien (file-exists-p fullname)) |
| 776 | (make-temp-name | 776 | (make-temp-file |
| 777 | (expand-file-name | 777 | (expand-file-name |
| 778 | (if (and (eq system-type 'ms-dos) (not (msdos-long-file-names))) | 778 | (if (and (fboundp 'msdos-long-file-names) |
| 779 | (not (msdos-long-file-names))) | ||
| 779 | "am" | 780 | "am" |
| 780 | "arc-mode.") | 781 | "arc-mode.") |
| 781 | dir)) | 782 | dir)) |