aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2010-10-20 09:46:21 +0900
committerKenichi Handa2010-10-20 09:46:21 +0900
commitcf5314c93a722b73cbf0f3607bea152d79c3df7b (patch)
tree0722bb3e26bbf3dbfec1b8d240ea1e1bf16989f2
parent52ce289046a06a2ed342a796dbf3050e51dcb615 (diff)
parent7c3f6228fffbbd96f7a85e1617c9d99d178d605b (diff)
downloademacs-cf5314c93a722b73cbf0f3607bea152d79c3df7b.tar.gz
emacs-cf5314c93a722b73cbf0f3607bea152d79c3df7b.zip
merge emacs-23
-rw-r--r--lisp/ChangeLog33
-rw-r--r--lisp/emacs-lisp/regexp-opt.el13
-rw-r--r--lisp/emacs-lisp/unsafep.el8
-rw-r--r--lisp/minibuffer.el9
-rw-r--r--lisp/net/tramp.el17
-rw-r--r--lisp/ps-print.el2
-rw-r--r--lisp/repeat.el2
-rw-r--r--src/ChangeLog4
-rw-r--r--src/s/cygwin.h3
9 files changed, 65 insertions, 26 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b8192344354..358c674639e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -3,6 +3,36 @@
3 * face-remap.el (text-scale-adjust): Call read-event with a proper 3 * face-remap.el (text-scale-adjust): Call read-event with a proper
4 prompt. 4 prompt.
5 5
62010-10-19 Michael Albinus <michael.albinus@gmx.de>
7
8 * net/tramp.el (tramp-do-file-attributes-with-stat)
9 (tramp-do-directory-files-and-attributes-with-stat): Use "e0" in
10 order to make stat results a float. Patch by Andreas Schwab
11 <schwab@linux-m68k.org>.
12
132010-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
14
15 * repeat.el (repeat): Use read-key (bug#6256).
16
172010-10-18 Chong Yidong <cyd@stupidchicken.com>
18
19 * emacs-lisp/unsafep.el: Don't mark functions that display
20 messages as safe. Suggested by Johan Bockgård.
21
222010-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23
24 * emacs-lisp/regexp-opt.el (regexp-opt-group, regexp-opt-charset):
25 Turn comments into docstrings.
26
27 * minibuffer.el (completion--replace): Move point where it belongs
28 when there's a common suffix (bug#7215).
29
302010-10-15 Michael Albinus <michael.albinus@gmx.de>
31
32 * net/tramp.el (tramp-open-connection-setup-interactive-shell):
33 Suppress expansion of tabs to spaces. Reported by Dale Sedivec
34 <dale@codefu.org>.
35
62010-10-15 Kenichi Handa <handa@m17n.org> 362010-10-15 Kenichi Handa <handa@m17n.org>
7 37
8 * international/characters.el: Add category '|' (word breakable) 38 * international/characters.el: Add category '|' (word breakable)
@@ -13,8 +43,7 @@
13 * mail/rmail.el (rmail-show-message-1): Catch an error of 43 * mail/rmail.el (rmail-show-message-1): Catch an error of
14 base64-decode-region and just show an error message (bug#7165). 44 base64-decode-region and just show an error message (bug#7165).
15 45
16 * ps-mule.el (ps-mule-font-spec-list): Delete it. Not used 46 * ps-mule.el (ps-mule-font-spec-list): Delete it. Not used anymore.
17 anymore.
18 (ps-mule-begin-job): Fix for the case that only ENCODING is set in 47 (ps-mule-begin-job): Fix for the case that only ENCODING is set in
19 a font-spec (bug#7197). 48 a font-spec (bug#7197).
20 49
diff --git a/lisp/emacs-lisp/regexp-opt.el b/lisp/emacs-lisp/regexp-opt.el
index 78eba19a253..f70ad4047a7 100644
--- a/lisp/emacs-lisp/regexp-opt.el
+++ b/lisp/emacs-lisp/regexp-opt.el
@@ -136,11 +136,10 @@ This means the number of non-shy regexp grouping constructs
136 (require 'cl)) 136 (require 'cl))
137 137
138(defun regexp-opt-group (strings &optional paren lax) 138(defun regexp-opt-group (strings &optional paren lax)
139 ;; Return a regexp to match a string in the sorted list STRINGS. 139 "Return a regexp to match a string in the sorted list STRINGS.
140 ;; If PAREN non-nil, output regexp parentheses around returned regexp. 140If PAREN non-nil, output regexp parentheses around returned regexp.
141 ;; If LAX non-nil, don't output parentheses if it doesn't require them. 141If LAX non-nil, don't output parentheses if it doesn't require them.
142 ;; Merges keywords to avoid backtracking in Emacs' regexp matcher. 142Merges keywords to avoid backtracking in Emacs' regexp matcher."
143
144 ;; The basic idea is to find the shortest common prefix or suffix, remove it 143 ;; The basic idea is to find the shortest common prefix or suffix, remove it
145 ;; and recurse. If there is no prefix, we divide the list into two so that 144 ;; and recurse. If there is no prefix, we divide the list into two so that
146 ;; \(at least) one half will have at least a one-character common prefix. 145 ;; \(at least) one half will have at least a one-character common prefix.
@@ -234,9 +233,7 @@ This means the number of non-shy regexp grouping constructs
234 233
235 234
236(defun regexp-opt-charset (chars) 235(defun regexp-opt-charset (chars)
237 ;; 236 "Return a regexp to match a character in CHARS."
238 ;; Return a regexp to match a character in CHARS.
239 ;;
240 ;; The basic idea is to find character ranges. Also we take care in the 237 ;; The basic idea is to find character ranges. Also we take care in the
241 ;; position of character set meta characters in the character set regexp. 238 ;; position of character set meta characters in the character set regexp.
242 ;; 239 ;;
diff --git a/lisp/emacs-lisp/unsafep.el b/lisp/emacs-lisp/unsafep.el
index 851a1f7652b..a62f8de4010 100644
--- a/lisp/emacs-lisp/unsafep.el
+++ b/lisp/emacs-lisp/unsafep.el
@@ -101,15 +101,13 @@ in the parse.")
101(dolist (x '(;;Special forms 101(dolist (x '(;;Special forms
102 and catch if or prog1 prog2 progn while unwind-protect 102 and catch if or prog1 prog2 progn while unwind-protect
103 ;;Safe subrs that have some side-effects 103 ;;Safe subrs that have some side-effects
104 ding error message minibuffer-message random read-minibuffer 104 ding error random signal sleep-for string-match throw
105 signal sleep-for string-match throw y-or-n-p yes-or-no-p
106 ;;Defsubst functions from subr.el 105 ;;Defsubst functions from subr.el
107 caar cadr cdar cddr 106 caar cadr cdar cddr
108 ;;Macros from subr.el 107 ;;Macros from subr.el
109 save-match-data unless when with-temp-message 108 save-match-data unless when
110 ;;Functions from subr.el that have side effects 109 ;;Functions from subr.el that have side effects
111 read-passwd split-string replace-regexp-in-string 110 split-string replace-regexp-in-string play-sound-file))
112 play-sound-file))
113 (put x 'safe-function t)) 111 (put x 'safe-function t))
114 112
115;;;###autoload 113;;;###autoload
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index a4ab5261f7c..bc5a1d2e807 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -498,10 +498,11 @@ Moves point to the end of the new text."
498 (setq suffix-len (1+ suffix-len))) 498 (setq suffix-len (1+ suffix-len)))
499 (unless (zerop suffix-len) 499 (unless (zerop suffix-len)
500 (setq end (- end suffix-len)) 500 (setq end (- end suffix-len))
501 (setq newtext (substring newtext 0 (- suffix-len))))) 501 (setq newtext (substring newtext 0 (- suffix-len))))
502 (goto-char beg) 502 (goto-char beg)
503 (insert newtext) 503 (insert newtext)
504 (delete-region (point) (+ (point) (- end beg)))) 504 (delete-region (point) (+ (point) (- end beg)))
505 (forward-char suffix-len)))
505 506
506(defun completion--do-completion (&optional try-completion-function) 507(defun completion--do-completion (&optional try-completion-function)
507 "Do the completion and return a summary of what happened. 508 "Do the completion and return a summary of what happened.
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index d5d1606c617..3ee5509276e 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -2922,7 +2922,7 @@ target of the symlink differ."
2922 (format 2922 (format
2923 ;; On Opsware, pdksh (which is the true name of ksh there) doesn't 2923 ;; On Opsware, pdksh (which is the true name of ksh there) doesn't
2924 ;; parse correctly the sequence "((". Therefore, we add a space. 2924 ;; parse correctly the sequence "((". Therefore, we add a space.
2925 "( (%s %s || %s -h %s) && %s -c '( (\"%%N\") %%h %s %s %%X.0 %%Y.0 %%Z.0 %%s.0 \"%%A\" t %%i.0 -1)' %s || echo nil)" 2925 "( (%s %s || %s -h %s) && %s -c '( (\"%%N\") %%h %s %s %%Xe0 %%Ye0 %%Ze0 %%se0 \"%%A\" t %%ie0 -1)' %s || echo nil)"
2926 (tramp-get-file-exists-command vec) 2926 (tramp-get-file-exists-command vec)
2927 (tramp-shell-quote-argument localname) 2927 (tramp-shell-quote-argument localname)
2928 (tramp-get-test-command vec) 2928 (tramp-get-test-command vec)
@@ -3378,7 +3378,7 @@ value of `default-file-modes', without execute permissions."
3378 ;; but it does not work on all remote systems. Therefore, we 3378 ;; but it does not work on all remote systems. Therefore, we
3379 ;; quote the filenames via sed. 3379 ;; quote the filenames via sed.
3380 "cd %s; echo \"(\"; (%s -a | sed -e s/\\$/\\\"/g -e s/^/\\\"/g | xargs " 3380 "cd %s; echo \"(\"; (%s -a | sed -e s/\\$/\\\"/g -e s/^/\\\"/g | xargs "
3381 "%s -c '(\"%%n\" (\"%%N\") %%h %s %s %%X.0 %%Y.0 %%Z.0 %%s.0 \"%%A\" t %%i.0 -1)'); " 3381 "%s -c '(\"%%n\" (\"%%N\") %%h %s %s %%Xe0 %%Ye0 %%Ze0 %%se0 \"%%A\" t %%ie0 -1)'); "
3382 "echo \")\"") 3382 "echo \")\"")
3383 (tramp-shell-quote-argument localname) 3383 (tramp-shell-quote-argument localname)
3384 (tramp-get-ls-command vec) 3384 (tramp-get-ls-command vec)
@@ -7013,9 +7013,7 @@ process to set up. VEC specifies the connection."
7013 ;; because we're running on a non-MULE Emacs. Let's try 7013 ;; because we're running on a non-MULE Emacs. Let's try
7014 ;; stty, instead. 7014 ;; stty, instead.
7015 (tramp-send-command vec "stty -onlcr" t)))) 7015 (tramp-send-command vec "stty -onlcr" t))))
7016 ;; Dump stty settings in the traces. 7016
7017 (when (>= tramp-verbose 9)
7018 (tramp-send-command vec "stty -a" t))
7019 (tramp-send-command vec "set +o vi +o emacs" t) 7017 (tramp-send-command vec "set +o vi +o emacs" t)
7020 7018
7021 ;; Check whether the output of "uname -sr" has been changed. If 7019 ;; Check whether the output of "uname -sr" has been changed. If
@@ -7086,11 +7084,20 @@ process to set up. VEC specifies the connection."
7086 (when (string-match "^IRIX64" (tramp-get-connection-property vec "uname" "")) 7084 (when (string-match "^IRIX64" (tramp-get-connection-property vec "uname" ""))
7087 (tramp-send-command vec "set +H" t)) 7085 (tramp-send-command vec "set +H" t))
7088 7086
7087 ;; On BSD-like systems, ?\t is expanded to spaces. Suppress this.
7088 (when (string-match "BSD\\|Darwin"
7089 (tramp-get-connection-property vec "uname" ""))
7090 (tramp-send-command vec "stty -oxtabs" t))
7091
7089 ;; Set `remote-tty' process property. 7092 ;; Set `remote-tty' process property.
7090 (ignore-errors 7093 (ignore-errors
7091 (let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\""))) 7094 (let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\"")))
7092 (unless (zerop (length tty)) (process-put proc 'remote-tty tty)))) 7095 (unless (zerop (length tty)) (process-put proc 'remote-tty tty))))
7093 7096
7097 ;; Dump stty settings in the traces.
7098 (when (>= tramp-verbose 9)
7099 (tramp-send-command vec "stty -a" t))
7100
7094 ;; Set the environment. 7101 ;; Set the environment.
7095 (tramp-message vec 5 "Setting default environment") 7102 (tramp-message vec 5 "Setting default environment")
7096 7103
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 0efac03f7d5..69b32e5d52d 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -6656,7 +6656,7 @@ If FACE is not a valid face name, use default face."
6656;; But autoload them here to make the separation invisible. 6656;; But autoload them here to make the separation invisible.
6657 6657
6658;;;### (autoloads (ps-mule-end-job ps-mule-begin-job ps-mule-initialize 6658;;;### (autoloads (ps-mule-end-job ps-mule-begin-job ps-mule-initialize
6659;;;;;; ps-multibyte-buffer) "ps-mule" "ps-mule.el" "9187df3473401876e0df4937c311fbaf") 6659;;;;;; ps-multibyte-buffer) "ps-mule" "ps-mule.el" "18a8bc30e8755ff27de7267f4bce3d99")
6660;;; Generated autoloads from ps-mule.el 6660;;; Generated autoloads from ps-mule.el
6661 6661
6662(defvar ps-multibyte-buffer nil "\ 6662(defvar ps-multibyte-buffer nil "\
diff --git a/lisp/repeat.el b/lisp/repeat.el
index 9abe15c7253..b82522ef855 100644
--- a/lisp/repeat.el
+++ b/lisp/repeat.el
@@ -335,7 +335,7 @@ recently executed command not bound to an input event\"."
335 (setq real-last-command 'repeat) 335 (setq real-last-command 'repeat)
336 (setq repeat-undo-count 1) 336 (setq repeat-undo-count 1)
337 (unwind-protect 337 (unwind-protect
338 (while (let ((evt (read-event))) ;FIXME: read-key maybe? 338 (while (let ((evt (read-key)))
339 ;; For clicks, we need to strip the meta-data to 339 ;; For clicks, we need to strip the meta-data to
340 ;; check the underlying event name. 340 ;; check the underlying event name.
341 (eq (or (car-safe evt) evt) 341 (eq (or (car-safe evt) evt)
diff --git a/src/ChangeLog b/src/ChangeLog
index 46913c8a8b0..d33f9dd4f0b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12010-10-18 Ken Brown <kbrown@cornell.edu>
2
3 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
4
12010-10-15 Kenichi Handa <handa@m17n.org> 52010-10-15 Kenichi Handa <handa@m17n.org>
2 6
3 Fix incorrect font metrics when the same font is opened with 7 Fix incorrect font metrics when the same font is opened with
diff --git a/src/s/cygwin.h b/src/s/cygwin.h
index 9ca5c67ce37..dcab55a91e1 100644
--- a/src/s/cygwin.h
+++ b/src/s/cygwin.h
@@ -132,6 +132,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
132 returns ENOSYS. A workaround is to set G_SLICE=always-malloc. */ 132 returns ENOSYS. A workaround is to set G_SLICE=always-malloc. */
133#define G_SLICE_ALWAYS_MALLOC 133#define G_SLICE_ALWAYS_MALLOC
134 134
135/* Send signals to subprocesses by "typing" special chars at them. */
136#define SIGNALS_VIA_CHARACTERS
137
135/* the end */ 138/* the end */
136 139
137/* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b 140/* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b