diff options
| author | Kenichi Handa | 2011-02-22 09:22:09 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2011-02-22 09:22:09 +0900 |
| commit | 2e15a2cf4ddfbda0bbf972036c11d464f7ba6226 (patch) | |
| tree | 98bb8620d5f3b2cf8637bf1ae747330fcd02f7fa /lisp | |
| parent | 1f459fa46cbd419bc55f8be03bce617d96af4da5 (diff) | |
| parent | 47301027bbbbd1babcfedf1ef38b2c776b33c462 (diff) | |
| download | emacs-2e15a2cf4ddfbda0bbf972036c11d464f7ba6226.tar.gz emacs-2e15a2cf4ddfbda0bbf972036c11d464f7ba6226.zip | |
merge emacs-23
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 28 | ||||
| -rw-r--r-- | lisp/files.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/gnus/gnus.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/nnfolder.el | 4 | ||||
| -rw-r--r-- | lisp/image-mode.el | 5 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 25 | ||||
| -rw-r--r-- | lisp/log-edit.el | 20 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 2 | ||||
| -rw-r--r-- | lisp/mail/rmailmm.el | 16 | ||||
| -rw-r--r-- | lisp/simple.el | 5 |
11 files changed, 95 insertions, 24 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 65b4ec8d400..dd29de7e783 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -3,6 +3,34 @@ | |||
| 3 | * mail/rmail.el (rmail-start-mail): Decode "encoded-words" of | 3 | * mail/rmail.el (rmail-start-mail): Decode "encoded-words" of |
| 4 | header components. | 4 | header components. |
| 5 | 5 | ||
| 6 | 2011-02-19 Kenichi Handa <handa@m17n.org> | ||
| 7 | |||
| 8 | * mail/rmailmm.el (rmail-mime-find-header-encoding): Be sure to | ||
| 9 | get the header copy into the temporary buffer. | ||
| 10 | (rmail-mime-insert-decoded-text): Ignore us-ascii. | ||
| 11 | (rmail-show-mime): When rmail-mime-coding-system is nil, set | ||
| 12 | buffer-file-coding-system to undecided. | ||
| 13 | |||
| 14 | 2011-02-18 Eli Zaretskii <eliz@gnu.org> | ||
| 15 | |||
| 16 | * image-mode.el (image-toggle-display-image): Disable | ||
| 17 | require-final-newline in buffers visiting binary image files. | ||
| 18 | (Bug#8047) | ||
| 19 | |||
| 20 | * international/mule-cmds.el (read-char-by-name, ucs-insert): | ||
| 21 | Document completion with asterisk and a substring. | ||
| 22 | |||
| 23 | 2011-02-18 Glenn Morris <rgm@gnu.org> | ||
| 24 | |||
| 25 | * files.el (find-file-literally): Doc fix. | ||
| 26 | |||
| 27 | 2011-02-17 Glenn Morris <rgm@gnu.org> | ||
| 28 | |||
| 29 | * simple.el (rfc822-goto-eoh): Give it a doc-string. | ||
| 30 | |||
| 31 | * log-edit.el (log-edit-insert-changelog): | ||
| 32 | Fix `log-edit-strip-single-file-name' functionality. (Bug#8057) | ||
| 33 | |||
| 6 | 2011-02-14 Chong Yidong <cyd@stupidchicken.com> | 34 | 2011-02-14 Chong Yidong <cyd@stupidchicken.com> |
| 7 | 35 | ||
| 8 | * pgg-gpg.el (pgg-gpg-process-region): Bind | 36 | * pgg-gpg.el (pgg-gpg-process-region): Bind |
diff --git a/lisp/files.el b/lisp/files.el index b026bf3352f..88063aed2b9 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2008,7 +2008,8 @@ Don't call it from programs! Use `insert-file-contents-literally' instead. | |||
| 2008 | 2008 | ||
| 2009 | (defvar find-file-literally nil | 2009 | (defvar find-file-literally nil |
| 2010 | "Non-nil if this buffer was made by `find-file-literally' or equivalent. | 2010 | "Non-nil if this buffer was made by `find-file-literally' or equivalent. |
| 2011 | This is a permanent local.") | 2011 | This has the `permanent-local' property, which takes effect if you |
| 2012 | make the variable buffer-local.") | ||
| 2012 | (put 'find-file-literally 'permanent-local t) | 2013 | (put 'find-file-literally 'permanent-local t) |
| 2013 | 2014 | ||
| 2014 | (defun find-file-literally (filename) | 2015 | (defun find-file-literally (filename) |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index eecbe978c29..1b2ef3e167e 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2011-02-18 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * gnus.el (gnus-meta): Doc fix. | ||
| 4 | |||
| 5 | 2011-02-17 Chong Yidong <cyd@stupidchicken.com> | ||
| 6 | |||
| 7 | * nnfolder.el (nnfolder-save-buffer): Don't let-bind copyright-update, | ||
| 8 | in case it's not yet loaded. | ||
| 9 | |||
| 1 | 2011-01-13 Chong Yidong <cyd@stupidchicken.com> | 10 | 2011-01-13 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 11 | ||
| 3 | * message.el (message-bury): Add special-case handling for Rmail. | 12 | * message.el (message-bury): Add special-case handling for Rmail. |
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el index a5140542fcc..5180673386c 100644 --- a/lisp/gnus/gnus.el +++ b/lisp/gnus/gnus.el | |||
| @@ -275,7 +275,7 @@ | |||
| 275 | 275 | ||
| 276 | (defgroup gnus-meta nil | 276 | (defgroup gnus-meta nil |
| 277 | "Meta variables controlling major portions of Gnus. | 277 | "Meta variables controlling major portions of Gnus. |
| 278 | In general, modifying these variables does not take affect until Gnus | 278 | In general, modifying these variables does not take effect until Gnus |
| 279 | is restarted, and sometimes reloaded." | 279 | is restarted, and sometimes reloaded." |
| 280 | :group 'gnus) | 280 | :group 'gnus) |
| 281 | 281 | ||
diff --git a/lisp/gnus/nnfolder.el b/lisp/gnus/nnfolder.el index a93f0913e42..d90e836e246 100644 --- a/lisp/gnus/nnfolder.el +++ b/lisp/gnus/nnfolder.el | |||
| @@ -1099,8 +1099,8 @@ This command does not work if you use short group names." | |||
| 1099 | (gnus-make-directory (file-name-directory (buffer-file-name))) | 1099 | (gnus-make-directory (file-name-directory (buffer-file-name))) |
| 1100 | (let ((coding-system-for-write | 1100 | (let ((coding-system-for-write |
| 1101 | (or nnfolder-file-coding-system-for-write | 1101 | (or nnfolder-file-coding-system-for-write |
| 1102 | nnfolder-file-coding-system)) | 1102 | nnfolder-file-coding-system))) |
| 1103 | (copyright-update nil)) | 1103 | (set (make-local-variable 'copyright-update) nil) |
| 1104 | (save-buffer))) | 1104 | (save-buffer))) |
| 1105 | (unless (or gnus-nov-is-evil nnfolder-nov-is-evil) | 1105 | (unless (or gnus-nov-is-evil nnfolder-nov-is-evil) |
| 1106 | (nnfolder-save-nov))) | 1106 | (nnfolder-save-nov))) |
diff --git a/lisp/image-mode.el b/lisp/image-mode.el index b30a43080d6..191e347330d 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el | |||
| @@ -507,6 +507,11 @@ was inserted." | |||
| 507 | ;; This just makes the arrow displayed in the right fringe | 507 | ;; This just makes the arrow displayed in the right fringe |
| 508 | ;; area look correct when the image is wider than the window. | 508 | ;; area look correct when the image is wider than the window. |
| 509 | (setq truncate-lines t) | 509 | (setq truncate-lines t) |
| 510 | ;; Disable adding a newline at the end of the image file when it | ||
| 511 | ;; is written with, e.g., C-x C-w. | ||
| 512 | (if (coding-system-equal (coding-system-base buffer-file-coding-system) | ||
| 513 | 'no-conversion) | ||
| 514 | (set (make-local-variable 'require-final-newline) nil)) | ||
| 510 | ;; Allow navigation of large images | 515 | ;; Allow navigation of large images |
| 511 | (set (make-local-variable 'auto-hscroll-mode) nil) | 516 | (set (make-local-variable 'auto-hscroll-mode) nil) |
| 512 | (setq image-type type) | 517 | (setq image-type type) |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index fed7e6ec9b1..0ca4a740586 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -2934,11 +2934,19 @@ on encoding." | |||
| 2934 | (defun read-char-by-name (prompt) | 2934 | (defun read-char-by-name (prompt) |
| 2935 | "Read a character by its Unicode name or hex number string. | 2935 | "Read a character by its Unicode name or hex number string. |
| 2936 | Display PROMPT and read a string that represents a character by its | 2936 | Display PROMPT and read a string that represents a character by its |
| 2937 | Unicode property `name' or `old-name'. You can type a few of first | 2937 | Unicode property `name' or `old-name'. |
| 2938 | letters of the Unicode name and use completion. This function also | 2938 | |
| 2939 | accepts a hexadecimal number of Unicode code point or a number in | 2939 | This function returns the character as a number. |
| 2940 | hash notation, e.g. #o21430 for octal, #x2318 for hex, or #10r8984 | 2940 | |
| 2941 | for decimal. Returns a character as a number." | 2941 | You can type a few of the first letters of the Unicode name and |
| 2942 | use completion. If you type a substring of the Unicode name | ||
| 2943 | preceded by an asterisk `*' and use completion, it will show all | ||
| 2944 | the characters whose names include that substring, not necessarily | ||
| 2945 | at the beginning of the name. | ||
| 2946 | |||
| 2947 | This function also accepts a hexadecimal number of Unicode code | ||
| 2948 | point or a number in hash notation, e.g. #o21430 for octal, | ||
| 2949 | #x2318 for hex, or #10r8984 for decimal." | ||
| 2942 | (let* ((completion-ignore-case t) | 2950 | (let* ((completion-ignore-case t) |
| 2943 | (input (completing-read prompt ucs-completions))) | 2951 | (input (completing-read prompt ucs-completions))) |
| 2944 | (cond | 2952 | (cond |
| @@ -2953,6 +2961,13 @@ for decimal. Returns a character as a number." | |||
| 2953 | "Insert COUNT copies of CHARACTER of the given Unicode code point. | 2961 | "Insert COUNT copies of CHARACTER of the given Unicode code point. |
| 2954 | Interactively, prompts for a Unicode character name or a hex number | 2962 | Interactively, prompts for a Unicode character name or a hex number |
| 2955 | using `read-char-by-name'. | 2963 | using `read-char-by-name'. |
| 2964 | |||
| 2965 | You can type a few of the first letters of the Unicode name and | ||
| 2966 | use completion. If you type a substring of the Unicode name | ||
| 2967 | preceded by an asterisk `*' and use completion, it will show all | ||
| 2968 | the characters whose names include that substring, not necessarily | ||
| 2969 | at the beginning of the name. | ||
| 2970 | |||
| 2956 | The optional third arg INHERIT (non-nil when called interactively), | 2971 | The optional third arg INHERIT (non-nil when called interactively), |
| 2957 | says to inherit text properties from adjoining text, if those | 2972 | says to inherit text properties from adjoining text, if those |
| 2958 | properties are sticky." | 2973 | properties are sticky." |
diff --git a/lisp/log-edit.el b/lisp/log-edit.el index 865b1f31818..373cc31e0cd 100644 --- a/lisp/log-edit.el +++ b/lisp/log-edit.el | |||
| @@ -621,14 +621,18 @@ regardless of user name or time." | |||
| 621 | (delete-region start end) | 621 | (delete-region start end) |
| 622 | (rfc822-goto-eoh) | 622 | (rfc822-goto-eoh) |
| 623 | (insert "Fixes: " fixes "\n" (if (looking-at "\n") "" "\n"))))) | 623 | (insert "Fixes: " fixes "\n" (if (looking-at "\n") "" "\n"))))) |
| 624 | (goto-char (point-min)) | 624 | (and log-edit-strip-single-file-name |
| 625 | (when (and log-edit-strip-single-file-name (looking-at "\\*\\s-+")) | 625 | (progn (rfc822-goto-eoh) |
| 626 | (forward-line 1) | 626 | (if (looking-at "\n") (forward-char 1)) |
| 627 | (when (not (re-search-forward "^\\*\\s-+" nil t)) | 627 | (looking-at "\\*\\s-+")) |
| 628 | (goto-char (point-min)) | 628 | (let ((start (point))) |
| 629 | (skip-chars-forward "^():") | 629 | (forward-line 1) |
| 630 | (skip-chars-forward ": ") | 630 | (when (not (re-search-forward "^\\*\\s-+" nil t)) |
| 631 | (delete-region (point-min) (point)))))) | 631 | (goto-char start) |
| 632 | (skip-chars-forward "^():") | ||
| 633 | (skip-chars-forward ": ") | ||
| 634 | (delete-region start (point))))) | ||
| 635 | (goto-char (point-min)))) | ||
| 632 | 636 | ||
| 633 | ;;;; | 637 | ;;;; |
| 634 | ;;;; functions for getting commit message from ChangeLog a file... | 638 | ;;;; functions for getting commit message from ChangeLog a file... |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 94f5ce45054..5e9baed1c2e 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -4297,7 +4297,7 @@ With prefix argument N moves forward N messages with these labels. | |||
| 4297 | 4297 | ||
| 4298 | ;;;*** | 4298 | ;;;*** |
| 4299 | 4299 | ||
| 4300 | ;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "7f6ad821b4543a18139fee9250beea5c") | 4300 | ;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "9c0902449733cabd5c7e7d17092a7c69") |
| 4301 | ;;; Generated autoloads from rmailmm.el | 4301 | ;;; Generated autoloads from rmailmm.el |
| 4302 | 4302 | ||
| 4303 | (autoload 'rmail-mime "rmailmm" "\ | 4303 | (autoload 'rmail-mime "rmailmm" "\ |
diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el index d6af925d461..e44dd877e4f 100644 --- a/lisp/mail/rmailmm.el +++ b/lisp/mail/rmailmm.el | |||
| @@ -471,10 +471,11 @@ See `rmail-mime-entity' for the detail." | |||
| 471 | HEADER is a header component of a MIME-entity object (see | 471 | HEADER is a header component of a MIME-entity object (see |
| 472 | `rmail-mime-entity')." | 472 | `rmail-mime-entity')." |
| 473 | (with-temp-buffer | 473 | (with-temp-buffer |
| 474 | (let ((last-coding-system-used nil)) | 474 | (let ((buf (current-buffer))) |
| 475 | (with-current-buffer rmail-mime-mbox-buffer | 475 | (with-current-buffer rmail-mime-mbox-buffer |
| 476 | (let ((rmail-buffer rmail-mime-mbox-buffer) | 476 | (let ((last-coding-system-used nil) |
| 477 | (rmail-view-buffer rmail-mime-view-buffer)) | 477 | (rmail-buffer rmail-mime-mbox-buffer) |
| 478 | (rmail-view-buffer buf)) | ||
| 478 | (save-excursion | 479 | (save-excursion |
| 479 | (goto-char (aref header 0)) | 480 | (goto-char (aref header 0)) |
| 480 | (rmail-copy-headers (point) (aref header 1))))) | 481 | (rmail-copy-headers (point) (aref header 1))))) |
| @@ -513,7 +514,9 @@ HEADER is a header component of a MIME-entity object (see | |||
| 513 | ((string= transfer-encoding "quoted-printable") | 514 | ((string= transfer-encoding "quoted-printable") |
| 514 | (quoted-printable-decode-region pos (point)))))) | 515 | (quoted-printable-decode-region pos (point)))))) |
| 515 | (decode-coding-region pos (point) coding-system) | 516 | (decode-coding-region pos (point) coding-system) |
| 516 | (if (or (not rmail-mime-coding-system) (consp rmail-mime-coding-system)) | 517 | (if (and |
| 518 | (or (not rmail-mime-coding-system) (consp rmail-mime-coding-system)) | ||
| 519 | (not (eq (coding-system-base coding-system) 'us-ascii))) | ||
| 517 | (setq rmail-mime-coding-system coding-system)) | 520 | (setq rmail-mime-coding-system coding-system)) |
| 518 | (or (bolp) (insert "\n")))) | 521 | (or (bolp) (insert "\n")))) |
| 519 | 522 | ||
| @@ -1301,7 +1304,10 @@ attachments as specfied by `rmail-mime-attachment-dirs-alist'." | |||
| 1301 | (rmail-mime-find-header-encoding | 1304 | (rmail-mime-find-header-encoding |
| 1302 | (rmail-mime-entity-header entity))))) | 1305 | (rmail-mime-entity-header entity))))) |
| 1303 | (set-buffer-file-coding-system | 1306 | (set-buffer-file-coding-system |
| 1304 | (coding-system-base rmail-mime-coding-system) t t)) | 1307 | (if rmail-mime-coding-system |
| 1308 | (coding-system-base rmail-mime-coding-system) | ||
| 1309 | 'undecided) | ||
| 1310 | t t)) | ||
| 1305 | ;; Decoding failed. ENTITY is an error message. Insert the | 1311 | ;; Decoding failed. ENTITY is an error message. Insert the |
| 1306 | ;; original message body as is, and show warning. | 1312 | ;; original message body as is, and show warning. |
| 1307 | (let ((region (with-current-buffer rmail-mime-mbox-buffer | 1313 | (let ((region (with-current-buffer rmail-mime-mbox-buffer |
diff --git a/lisp/simple.el b/lisp/simple.el index 6e26e334372..8f37c8e5f0b 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -5585,7 +5585,10 @@ appears to have customizations applying to the old default, | |||
| 5585 | 'mail-send-and-exit) | 5585 | 'mail-send-and-exit) |
| 5586 | 5586 | ||
| 5587 | (defun rfc822-goto-eoh () | 5587 | (defun rfc822-goto-eoh () |
| 5588 | ;; Go to header delimiter line in a mail message, following RFC822 rules | 5588 | "If the buffer starts with a mail header, move point to the header's end. |
| 5589 | Otherwise, moves to `point-min'. | ||
| 5590 | The end of the header is the start of the next line, if there is one, | ||
| 5591 | else the end of the last line. This function obeys RFC822." | ||
| 5589 | (goto-char (point-min)) | 5592 | (goto-char (point-min)) |
| 5590 | (when (re-search-forward | 5593 | (when (re-search-forward |
| 5591 | "^\\([:\n]\\|[^: \t\n]+[ \t\n]\\)" nil 'move) | 5594 | "^\\([:\n]\\|[^: \t\n]+[ \t\n]\\)" nil 'move) |