aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog22
-rw-r--r--lisp/files.el3
-rw-r--r--lisp/gnus/ChangeLog9
-rw-r--r--lisp/gnus/gnus.el2
-rw-r--r--lisp/gnus/nnfolder.el4
-rw-r--r--lisp/international/mule-cmds.el25
-rw-r--r--lisp/mail/rmail.el2
-rw-r--r--lisp/mail/rmailmm.el16
-rw-r--r--lisp/simple.el5
-rw-r--r--lisp/vc/log-edit.el20
10 files changed, 84 insertions, 24 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0f2fa15d678..840f96bfcf1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,25 @@
12011-02-19 Kenichi Handa <handa@m17n.org>
2
3 * mail/rmailmm.el (rmail-mime-find-header-encoding): Be sure to
4 get the header copy into the temporary buffer.
5 (rmail-mime-insert-decoded-text): Ignore us-ascii.
6 (rmail-show-mime): When rmail-mime-coding-system is nil, set
7 buffer-file-coding-system to undecided.
8
92011-02-19 Eli Zaretskii <eliz@gnu.org>
10
11 * international/mule-cmds.el (read-char-by-name, ucs-insert):
12 Document completion with asterisk and a substring.
13
142011-02-19 Glenn Morris <rgm@gnu.org>
15
16 * files.el (find-file-literally): Doc fix.
17
18 * simple.el (rfc822-goto-eoh): Give it a doc-string.
19
20 * log-edit.el (log-edit-insert-changelog):
21 Fix `log-edit-strip-single-file-name' functionality. (Bug#8057)
22
12011-02-19 Glenn Morris <rgm@gnu.org> 232011-02-19 Glenn Morris <rgm@gnu.org>
2 24
3 * dired-x.el (dired-read-shell-command): Merge into dired-aux's version. 25 * dired-x.el (dired-read-shell-command): Merge into dired-aux's version.
diff --git a/lisp/files.el b/lisp/files.el
index fdbfe13b671..014469ed8fc 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2072,7 +2072,8 @@ Don't call it from programs! Use `insert-file-contents-literally' instead.
2072 2072
2073(defvar find-file-literally nil 2073(defvar find-file-literally nil
2074 "Non-nil if this buffer was made by `find-file-literally' or equivalent. 2074 "Non-nil if this buffer was made by `find-file-literally' or equivalent.
2075This is a permanent local.") 2075This has the `permanent-local' property, which takes effect if you
2076make the variable buffer-local.")
2076(put 'find-file-literally 'permanent-local t) 2077(put 'find-file-literally 'permanent-local t)
2077 2078
2078(defun find-file-literally (filename) 2079(defun find-file-literally (filename)
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 576cec2ca82..52c72ec8606 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,12 @@
12011-02-19 Glenn Morris <rgm@gnu.org>
2
3 * gnus.el (gnus-meta): Doc fix.
4
52011-02-19 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
12011-02-19 Lars Ingebrigtsen <larsi@gnus.org> 102011-02-19 Lars Ingebrigtsen <larsi@gnus.org>
2 11
3 * nnimap.el (nnimap-parse-copied-articles): Allow for "<foo> OK" 12 * nnimap.el (nnimap-parse-copied-articles): Allow for "<foo> OK"
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index 4cbdee53ab4..42acb65ff9f 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.
278In general, modifying these variables does not take affect until Gnus 278In general, modifying these variables does not take effect until Gnus
279is restarted, and sometimes reloaded." 279is 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 dd11ff71dd3..c6b4c0825e3 100644
--- a/lisp/gnus/nnfolder.el
+++ b/lisp/gnus/nnfolder.el
@@ -1090,8 +1090,8 @@ This command does not work if you use short group names."
1090 (gnus-make-directory (file-name-directory (buffer-file-name))) 1090 (gnus-make-directory (file-name-directory (buffer-file-name)))
1091 (let ((coding-system-for-write 1091 (let ((coding-system-for-write
1092 (or nnfolder-file-coding-system-for-write 1092 (or nnfolder-file-coding-system-for-write
1093 nnfolder-file-coding-system)) 1093 nnfolder-file-coding-system)))
1094 (copyright-update nil)) 1094 (set (make-local-variable 'copyright-update) nil)
1095 (save-buffer))) 1095 (save-buffer)))
1096 (unless (or gnus-nov-is-evil nnfolder-nov-is-evil) 1096 (unless (or gnus-nov-is-evil nnfolder-nov-is-evil)
1097 (nnfolder-save-nov))) 1097 (nnfolder-save-nov)))
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index d610da0aab6..8672fca3a85 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -2938,11 +2938,19 @@ on encoding."
2938(defun read-char-by-name (prompt) 2938(defun read-char-by-name (prompt)
2939 "Read a character by its Unicode name or hex number string. 2939 "Read a character by its Unicode name or hex number string.
2940Display PROMPT and read a string that represents a character by its 2940Display PROMPT and read a string that represents a character by its
2941Unicode property `name' or `old-name'. You can type a few of first 2941Unicode property `name' or `old-name'.
2942letters of the Unicode name and use completion. This function also 2942
2943accepts a hexadecimal number of Unicode code point or a number in 2943This function returns the character as a number.
2944hash notation, e.g. #o21430 for octal, #x2318 for hex, or #10r8984 2944
2945for decimal. Returns a character as a number." 2945You can type a few of the first letters of the Unicode name and
2946use completion. If you type a substring of the Unicode name
2947preceded by an asterisk `*' and use completion, it will show all
2948the characters whose names include that substring, not necessarily
2949at the beginning of the name.
2950
2951This function also accepts a hexadecimal number of Unicode code
2952point or a number in hash notation, e.g. #o21430 for octal,
2953#x2318 for hex, or #10r8984 for decimal."
2946 (let* ((completion-ignore-case t) 2954 (let* ((completion-ignore-case t)
2947 (input (completing-read prompt ucs-completions))) 2955 (input (completing-read prompt ucs-completions)))
2948 (cond 2956 (cond
@@ -2957,6 +2965,13 @@ for decimal. Returns a character as a number."
2957 "Insert COUNT copies of CHARACTER of the given Unicode code point. 2965 "Insert COUNT copies of CHARACTER of the given Unicode code point.
2958Interactively, prompts for a Unicode character name or a hex number 2966Interactively, prompts for a Unicode character name or a hex number
2959using `read-char-by-name'. 2967using `read-char-by-name'.
2968
2969You can type a few of the first letters of the Unicode name and
2970use completion. If you type a substring of the Unicode name
2971preceded by an asterisk `*' and use completion, it will show all
2972the characters whose names include that substring, not necessarily
2973at the beginning of the name.
2974
2960The optional third arg INHERIT (non-nil when called interactively), 2975The optional third arg INHERIT (non-nil when called interactively),
2961says to inherit text properties from adjoining text, if those 2976says to inherit text properties from adjoining text, if those
2962properties are sticky." 2977properties are sticky."
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 07f6920a128..4c8c8214195 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -4306,7 +4306,7 @@ With prefix argument N moves forward N messages with these labels.
4306 4306
4307;;;*** 4307;;;***
4308 4308
4309;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "3e235bdf4c2e54da06abcdd72e7f7649") 4309;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "9c0902449733cabd5c7e7d17092a7c69")
4310;;; Generated autoloads from rmailmm.el 4310;;; Generated autoloads from rmailmm.el
4311 4311
4312(autoload 'rmail-mime "rmailmm" "\ 4312(autoload 'rmail-mime "rmailmm" "\
diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el
index 127fd8ac350..0bfeb121ca4 100644
--- a/lisp/mail/rmailmm.el
+++ b/lisp/mail/rmailmm.el
@@ -472,10 +472,11 @@ See `rmail-mime-entity' for the detail."
472HEADER is a header component of a MIME-entity object (see 472HEADER is a header component of a MIME-entity object (see
473`rmail-mime-entity')." 473`rmail-mime-entity')."
474 (with-temp-buffer 474 (with-temp-buffer
475 (let ((last-coding-system-used nil)) 475 (let ((buf (current-buffer)))
476 (with-current-buffer rmail-mime-mbox-buffer 476 (with-current-buffer rmail-mime-mbox-buffer
477 (let ((rmail-buffer rmail-mime-mbox-buffer) 477 (let ((last-coding-system-used nil)
478 (rmail-view-buffer rmail-mime-view-buffer)) 478 (rmail-buffer rmail-mime-mbox-buffer)
479 (rmail-view-buffer buf))
479 (save-excursion 480 (save-excursion
480 (goto-char (aref header 0)) 481 (goto-char (aref header 0))
481 (rmail-copy-headers (point) (aref header 1))))) 482 (rmail-copy-headers (point) (aref header 1)))))
@@ -514,7 +515,9 @@ HEADER is a header component of a MIME-entity object (see
514 ((string= transfer-encoding "quoted-printable") 515 ((string= transfer-encoding "quoted-printable")
515 (quoted-printable-decode-region pos (point)))))) 516 (quoted-printable-decode-region pos (point))))))
516 (decode-coding-region pos (point) coding-system) 517 (decode-coding-region pos (point) coding-system)
517 (if (or (not rmail-mime-coding-system) (consp rmail-mime-coding-system)) 518 (if (and
519 (or (not rmail-mime-coding-system) (consp rmail-mime-coding-system))
520 (not (eq (coding-system-base coding-system) 'us-ascii)))
518 (setq rmail-mime-coding-system coding-system)) 521 (setq rmail-mime-coding-system coding-system))
519 (or (bolp) (insert "\n")))) 522 (or (bolp) (insert "\n"))))
520 523
@@ -1302,7 +1305,10 @@ attachments as specfied by `rmail-mime-attachment-dirs-alist'."
1302 (rmail-mime-find-header-encoding 1305 (rmail-mime-find-header-encoding
1303 (rmail-mime-entity-header entity))))) 1306 (rmail-mime-entity-header entity)))))
1304 (set-buffer-file-coding-system 1307 (set-buffer-file-coding-system
1305 (coding-system-base rmail-mime-coding-system) t t)) 1308 (if rmail-mime-coding-system
1309 (coding-system-base rmail-mime-coding-system)
1310 'undecided)
1311 t t))
1306 ;; Decoding failed. ENTITY is an error message. Insert the 1312 ;; Decoding failed. ENTITY is an error message. Insert the
1307 ;; original message body as is, and show warning. 1313 ;; original message body as is, and show warning.
1308 (let ((region (with-current-buffer rmail-mime-mbox-buffer 1314 (let ((region (with-current-buffer rmail-mime-mbox-buffer
diff --git a/lisp/simple.el b/lisp/simple.el
index 531c9212e34..a2dda5f04d2 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5723,7 +5723,10 @@ appears to have customizations applying to the old default,
5723 :group 'mail) 5723 :group 'mail)
5724 5724
5725(defun rfc822-goto-eoh () 5725(defun rfc822-goto-eoh ()
5726 ;; Go to header delimiter line in a mail message, following RFC822 rules 5726 "If the buffer starts with a mail header, move point to the header's end.
5727Otherwise, moves to `point-min'.
5728The end of the header is the start of the next line, if there is one,
5729else the end of the last line. This function obeys RFC822."
5727 (goto-char (point-min)) 5730 (goto-char (point-min))
5728 (when (re-search-forward 5731 (when (re-search-forward
5729 "^\\([:\n]\\|[^: \t\n]+[ \t\n]\\)" nil 'move) 5732 "^\\([:\n]\\|[^: \t\n]+[ \t\n]\\)" nil 'move)
diff --git a/lisp/vc/log-edit.el b/lisp/vc/log-edit.el
index 9ec3e970b5e..192ab1f78d2 100644
--- a/lisp/vc/log-edit.el
+++ b/lisp/vc/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...