aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKenichi Handa2010-09-02 11:00:18 +0900
committerKenichi Handa2010-09-02 11:00:18 +0900
commit56524ce00eaf104b1f59288ef219c8edb4ef311d (patch)
treeac35fd89c65a2d2cf1e3ae8b9792e49dbd047b29 /lisp
parentae682ff5aeacc6e99a76d567b487cd2fa0d9a4a9 (diff)
parent2333c84afd9263abd5c71b4503435c5db1292f94 (diff)
downloademacs-56524ce00eaf104b1f59288ef219c8edb4ef311d.tar.gz
emacs-56524ce00eaf104b1f59288ef219c8edb4ef311d.zip
merge changes in emacs-23 branch
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog280
-rw-r--r--lisp/disp-table.el27
-rw-r--r--lisp/international/mule-cmds.el4
-rw-r--r--lisp/net/rcirc.el31
-rw-r--r--lisp/play/cookie1.el2
-rw-r--r--lisp/progmodes/python.el2
-rw-r--r--lisp/simple.el22
7 files changed, 338 insertions, 30 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7ea8d3aa116..cd86f9d20e4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -8,6 +8,17 @@
8 Fix overenthusiastic optimisation. 8 Fix overenthusiastic optimisation.
9 (pcase-u1): Handle the case of a lambda pred. 9 (pcase-u1): Handle the case of a lambda pred.
10 10
112010-08-31 Kenichi Handa <handa@m17n.org>
12
13 * international/mule-cmds.el (standard-display-european-internal):
14 Setup standard-display-table for 8-bit characters by storing 8-bit
15 characters in the element vector.
16
17 * disp-table.el (standard-display-8bit): Setup
18 standard-display-table for 8-bit characters by storing 8-bit
19 characters in the element vector.
20 (standard-display-european): Likewise.
21
112010-08-31 Masatake YAMATO <yamato@redhat.com> 222010-08-31 Masatake YAMATO <yamato@redhat.com>
12 23
13 * textmodes/nroff-mode.el (nroff-view): New command. 24 * textmodes/nroff-mode.el (nroff-view): New command.
@@ -167,6 +178,57 @@
167 178
168 * whitespace.el (whitespace-style): Adjust type declaration. 179 * whitespace.el (whitespace-style): Adjust type declaration.
169 180
1812010-08-26 Magnus Henoch <magnus.henoch@gmail.com>
182
183 * net/tramp-gvfs.el (tramp-gvfs-handle-copy-file): Do not pass
184 empty argument to gvfs-copy.
185
1862010-08-26 Chong Yidong <cyd@stupidchicken.com>
187
188 * net/tramp-compat.el (tramp-compat-delete-file): Rewrite to
189 handle new TRASH arg of `delete-file'.
190
1912010-08-26 Christian Lynbech <christian.lynbech@tieto.com> (tiny change)
192
193 * net/tramp.el (tramp-handle-insert-directory): Don't use
194 `forward-word', its default syntax could be changed.
195
1962010-08-26 Toru TSUNEYOSHI <t_tuneyosi@hotmail.com>
197 Michael Albinus <michael.albinus@gmx.de>
198
199 Implement compression for inline methods.
200
201 * net/tramp.el (tramp-inline-compress-start-size): New defcustom.
202 (tramp-copy-size-limit): Allow also nil.
203 (tramp-inline-compress-commands): New defconst.
204 (tramp-find-inline-compress, tramp-get-inline-compress)
205 (tramp-get-inline-coding): New defuns.
206 (tramp-get-remote-coding, tramp-get-local-coding): Remove,
207 replaced by `tramp-get-inline-coding'.
208 (tramp-handle-file-local-copy, tramp-handle-write-region)
209 (tramp-method-out-of-band-p): Use `tramp-get-inline-coding'.
210
2112010-08-26 Noah Lavine <noah549@gmail.com> (tiny change)
212
213 Detect ssh 'ControlMaster' argument automatically in some cases.
214
215 * net/tramp.el (tramp-detect-ssh-controlmaster): New defun.
216 (tramp-default-method): Use it.
217
2182010-08-26 Karel Klíč <kklic@redhat.com>
219
220 * net/tramp.el (tramp-file-name-for-operation):
221 Add file-selinux-context.
222
2232010-08-26 Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> (tiny change)
224
225 * play/cookie1.el (read-cookie): Fix off-by-one error (bug#6921).
226
2272010-08-26 Chong Yidong <cyd@stupidchicken.com>
228
229 * simple.el (beginning-of-buffer, end-of-buffer): Doc fix
230 (Bug#6907).
231
1702010-08-26 Nathan Weizenbaum <nweiz@cressida.sea.corp.google.com> (tiny change) 2322010-08-26 Nathan Weizenbaum <nweiz@cressida.sea.corp.google.com> (tiny change)
171 233
172 * progmodes/js.el: Make indentation more customizable (Bug#6914). 234 * progmodes/js.el: Make indentation more customizable (Bug#6914).
@@ -190,6 +252,211 @@
190 252
191 Sync with Tramp 2.1.19. 253 Sync with Tramp 2.1.19.
192 254
255 * net/tramp-cmds.el (tramp-cleanup-all-connections)
256 (tramp-reporter-dump-variable, tramp-load-report-modules)
257 (tramp-append-tramp-buffers): Use `tramp-compat-funcall'.
258 (tramp-bug): Recommend setting of `tramp-verbose' to 9.
259
260 * net/tramp-compat.el (top): Do not autoload
261 `tramp-handle-file-remote-p'. Load tramp-util.el and tramp-vc.el
262 only when `start-file-process' is not bound.
263 (byte-compile-not-obsolete-vars): Define if not bound.
264 (tramp-compat-funcall): New defmacro.
265 (tramp-compat-line-beginning-position)
266 (tramp-compat-line-end-position)
267 (tramp-compat-temporary-file-directory)
268 (tramp-compat-make-temp-file, tramp-compat-file-attributes)
269 (tramp-compat-copy-file, tramp-compat-copy-directory)
270 (tramp-compat-delete-file, tramp-compat-delete-directory)
271 (tramp-compat-number-sequence, tramp-compat-process-running-p):
272 Use it.
273 (tramp-advice-file-expand-wildcards): Do not use
274 `tramp-handle-file-remote-p'.
275 (tramp-compat-make-temp-file): Simplify fallback implementation.
276 (tramp-compat-copy-file): Add PRESERVE-SELINUX-CONTEXT.
277 (tramp-compat-copy-tree): Remove function.
278 (tramp-compat-delete-file): New defun.
279 (tramp-compat-delete-directory): Provide implementation for older
280 Emacsen.
281 (tramp-compat-file-attributes): Handle only
282 `wrong-number-of-arguments' error.
283
284 * net/tramp-fish.el (tramp-fish-handle-copy-file): Add
285 PRESERVE_SELINUX_CONTEXT.
286 (tramp-fish-handle-delete-file): Add TRASH arg.
287 (tramp-fish-handle-directory-files-and-attributes):
288 Do not use `tramp-fish-handle-file-attributes.
289 (tramp-fish-handle-file-local-copy)
290 (tramp-fish-handle-insert-file-contents)
291 (tramp-fish-maybe-open-connection): Use `with-progress-reporter'.
292
293 * net/tramp-gvfs.el (top): Require url-util.
294 (tramp-gvfs-mount-point): Remove.
295 (tramp-gvfs-file-name-handler-alist): Add `file-selinux-context'
296 and `set-file-selinux-context'.
297 (tramp-gvfs-stringify-dbus-message, tramp-gvfs-send-command)
298 (tramp-gvfs-handle-file-selinux-context)
299 (tramp-gvfs-handle-set-file-selinux-context): New defuns.
300 (with-tramp-dbus-call-method): Format trace message.
301 (tramp-gvfs-handle-copy-file): Handle PRESERVE-SELINUX-CONTEXT.
302 (tramp-gvfs-handle-copy-file, tramp-gvfs-handle-rename-file):
303 Implement backup call, when operation on local files fails. Use
304 progress reporter. Flush properties of changed files.
305 (tramp-gvfs-handle-delete-file): Add TRASH arg. Use
306 `tramp-compat-delete-file'.
307 (tramp-gvfs-handle-expand-file-name): Expand "~/".
308 (tramp-gvfs-handle-make-directory): Make more traces.
309 (tramp-gvfs-handle-write-region): Protect deleting tmpfile.
310 (tramp-gvfs-url-file-name): Hexify file name in url.
311 (tramp-gvfs-fuse-file-name): Take also prefix (like dav shares)
312 into account for the resulting file name.
313 (tramp-gvfs-handler-askquestion): Preserve current message, in
314 order to let progress reporter continue afterwards. (Bug#6257)
315 Return dummy mountpoint, when the answer is "no". See
316 `tramp-gvfs-maybe-open-connection'.
317 (tramp-gvfs-handler-mounted-unmounted)
318 (tramp-gvfs-connection-mounted-p): Test also for new mountspec
319 attribute "default_location". Set "prefix" property. Handle
320 default-location.
321 (tramp-gvfs-mount-spec): Return both prefix and mountspec.
322 (tramp-gvfs-maybe-open-connection): Test, whether mountpoint
323 exists. Raise an error, if not (due to a corresponding answer
324 "no" in interactive questions, for example). Use
325 `tramp-compat-funcall'.
326
327 * net/tramp-imap.el (top): Autoload `epg-make-context'.
328 (tramp-imap-handle-copy-file): Add PRESERVE-SELINUX-CONTEXT.
329 (tramp-imap-do-copy-or-rename-file)
330 (tramp-imap-handle-insert-file-contents)
331 (tramp-imap-handle-file-local-copy): Use `with-progress-reporter'.
332 (tramp-imap-handle-delete-file): Add TRASH arg.
333
334 * net/tramp-smb.el (tramp-smb-handle-copy-file): Add
335 PRESERVE-SELINUX-CONTEXT.
336 (tramp-smb-handle-copy-file)
337 (tramp-smb-handle-file-local-copy, tramp-smb-handle-rename-file)
338 (tramp-smb-handle-write-region, tramp-smb-maybe-open-connection):
339 Use `with-progress-reporter'.
340 (tramp-smb-handle-delete-file): Add TRASH arg.
341
342 * net/tramp.el (tramp-methods): Move hostname to the end in all
343 ssh `tramp-login-args'. Add `tramp-async-args' attribute where
344 appropriate.
345 (tramp-verbose): Describe verbose level 9.
346 (tramp-completion-function-alist)
347 (tramp-file-name-regexp, tramp-chunksize)
348 (tramp-local-coding-commands, tramp-remote-coding-commands)
349 (with-connection-property, tramp-completion-mode-p)
350 (tramp-action-process-alive, tramp-action-out-of-band)
351 (tramp-check-for-regexp, tramp-file-name-p, tramp-equal-remote)
352 (tramp-exists-file-name-handler): Fix docstring.
353 (tramp-remote-process-environment): Use `format' instead of
354 `concat'. Protect version string by apostroph.
355 (tramp-shell-prompt-pattern): Do not use a shy group in case of
356 XEmacs.
357 (tramp-file-name-regexp-unified)
358 (tramp-completion-file-name-regexp-unified): On W32 systems, do
359 not regard the volume letter as remote filename. (Bug#5447)
360 (tramp-perl-file-attributes)
361 (tramp-perl-directory-files-and-attributes): Don't pass "$3".
362 (tramp-vc-registered-read-file-names): Read input as
363 here-document, otherwise the command could exceed maximum length
364 of command line.
365 (tramp-file-name-handler-alist): Add `file-selinux-context' and
366 `set-file-selinux-context'.
367 (tramp-debug-message): Add `tramp-compat-funcall' to ignored
368 backtrace functions.
369 (tramp-error-with-buffer): Don't show the connection buffer when
370 we are in completion mode.
371 (tramp-progress-reporter-update, tramp-remote-selinux-p)
372 (tramp-handle-file-selinux-context)
373 (tramp-handle-set-file-selinux-context, tramp-process-sentinel)
374 (tramp-connectable-p, tramp-open-shell, tramp-get-remote-trash):
375 New defuns.
376 (with-progress-reporter): New defmacro.
377 (tramp-debug-outline-regexp): New defconst.
378 (top, tramp-rfn-eshadow-setup-minibuffer)
379 (tramp-rfn-eshadow-update-overlay, tramp-handle-set-file-times)
380 (tramp-handle-dired-compress-file, tramp-handle-shell-command)
381 (tramp-completion-mode-p, tramp-check-for-regexp)
382 (tramp-open-connection-setup-interactive-shell)
383 (tramp-compute-multi-hops, tramp-read-passwd, tramp-clear-passwd)
384 (tramp-time-diff, tramp-coding-system-change-eol-conversion)
385 (tramp-set-process-query-on-exit-flag, tramp-unload-tramp):
386 Use `tramp-compat-funcall'.
387 (tramp-handle-make-symbolic-link): Flush file properties.
388 (tramp-handle-load, tramp-handle-file-local-copy)
389 (tramp-handle-insert-file-contents, tramp-handle-write-region)
390 (tramp-handle-vc-registered, tramp-maybe-send-script)
391 (tramp-find-shell): Use `with-progress-reporter'.
392 (tramp-do-file-attributes-with-stat): Add space in format string,
393 in order to work around a bug in pdksh. Reported by Gilles Pion
394 <gpion@lfdj.com>.
395 (tramp-handle-verify-visited-file-modtime): Do not send a command
396 when the connection is not established.
397 (tramp-handle-set-file-times): Simplify the check for utc.
398 (tramp-handle-directory-files-and-attributes)
399 (tramp-get-remote-path): Use `copy-tree'.
400 (tramp-completion-handle-file-name-all-completions): Ensure, that
401 non remote files are still checked. Oops.
402 (tramp-handle-copy-file, tramp-do-copy-or-rename-file): Handle
403 PRESERVE-SELINUX-CONTEXT.
404 (tramp-do-copy-or-rename-file): Add progress reporter.
405 (tramp-do-copy-or-rename-file-directly): Do not use
406 `tramp-handle-file-remote-p'.
407 (tramp-do-copy-or-rename-file-out-of-band):
408 Use `tramp-compat-delete-directory'.
409 (tramp-do-copy-or-rename-file-out-of-band)
410 (tramp-compute-multi-hops, tramp-maybe-open-connection):
411 Use `format-spec-make'.
412 (tramp-handle-delete-file): Add TRASH arg.
413 (tramp-handle-dired-uncache): Flush directory cache, not only file
414 cache.
415 (tramp-handle-expand-file-name)
416 (tramp-completion-handle-file-name-all-completions)
417 (tramp-completion-handle-file-name-completion): Use
418 `tramp-connectable-p'.
419 (tramp-handle-start-file-process): Set connection property "vec".
420 Use it, in order to invalidate file caches. Check only for
421 `remote-tty' process property.
422 Implement tty setting. (Bug#4604, Bug#6360)
423 (tramp-file-name-for-operation): Add `call-process-region' and
424 `set-file-selinux-context'.
425 (tramp-find-foreign-file-name-handler)
426 (tramp-advice-make-auto-save-file-name)
427 (tramp-set-auto-save-file-modes): Remove superfluous check for
428 `stringp'. This is done inside `tramp-tramp-file-p'.
429 (tramp-file-name-handler): Trace 'quit. Catch the error for some
430 operations when we are in completion mode. This gives the user
431 the chance to correct the file name in the minibuffer.
432 (tramp-completion-mode-p): Use `non-essential'.
433 (tramp-handle-file-name-all-completions): Backward/ XEmacs
434 compatibility: Use `completion-ignore-case' if
435 `read-file-name-completion-ignore-case' does not exist.
436 (tramp-get-debug-buffer): Use `tramp-debug-outline-regexp'.
437 (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
438 `tramp-open-shell'.
439 (tramp-action-password): Hide password prompt before next run.
440 (tramp-process-actions): Widen connection buffer for the trace.
441 (tramp-open-connection-setup-interactive-shell): Set `remote-tty'
442 process property. Trace stty settings if `tramp-verbose' >= 9.
443 Apply workaround for IRIX64 bug. Move argument of last
444 `tramp-send-command' where it belongs to.
445 (tramp-maybe-open-connection): Use `async-args' and `gw-args' in
446 front of `login-args'.
447 (tramp-get-ls-command, tramp-get-ls-command-with-dired): Run tests
448 on "/dev/null" instead of "/".
449 (tramp-get-ls-command-with-dired): Make test for "--dired"
450 stronger.
451 (tramp-set-auto-save-file-modes): Adapt version check.
452 (tramp-set-process-query-on-exit-flag): Fix wrong parentheses.
453 (tramp-handle-process-file): Call the program in a subshell, in
454 order to preserve working directory.
455 (tramp-handle-shell-command): Don't use hard-wired "/bin/sh" but
456 `tramp-remote-sh' from `tramp-methods'.
457 (tramp-get-ls-command): Make test for "--color=never" stronger.
458 (tramp-check-for-regexp): Use (forward-line 1).
459
193 * net/trampver.el: Update release number. 460 * net/trampver.el: Update release number.
194 461
1952010-08-26 Chong Yidong <cyd@stupidchicken.com> 4622010-08-26 Chong Yidong <cyd@stupidchicken.com>
@@ -275,6 +542,11 @@
275 * mouse.el (mouse-yank-primary): Avoid setting primary when 542 * mouse.el (mouse-yank-primary): Avoid setting primary when
276 deactivating the mark (Bug#6872). 543 deactivating the mark (Bug#6872).
277 544
5452010-08-23 Chris Foote <chris@foote.com.au> (tiny change)
546
547 * progmodes/python.el (python-block-pairs): Allow use of "finally"
548 with "else" (Bug#3991).
549
2782010-08-23 Michael Albinus <michael.albinus@gmx.de> 5502010-08-23 Michael Albinus <michael.albinus@gmx.de>
279 551
280 * net/dbus.el: Accept UNIX domain sockets as bus address. 552 * net/dbus.el: Accept UNIX domain sockets as bus address.
@@ -301,13 +573,19 @@
301 * startup.el (command-line-1): Issue warning for ignored arguments 573 * startup.el (command-line-1): Issue warning for ignored arguments
302 --unibyte, etc (Bug#6886). 574 --unibyte, etc (Bug#6886).
303 575
5762010-08-22 Leo <sdl.web@gmail.com>
577
578 * net/rcirc.el (rcirc-add-or-remove): Accept a list of elements.
579 (ignore, bright, dim, keyword): Split list of nicknames before
580 passing to rcirc-add-or-remove (Bug#6894).
581
3042010-08-22 Chong Yidong <cyd@stupidchicken.com> 5822010-08-22 Chong Yidong <cyd@stupidchicken.com>
305 583
306 * emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix (Bug#6880). 584 * emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix (Bug#6880).
307 585
3082010-08-22 Leo <sdl.web@gmail.com> 5862010-08-22 Leo <sdl.web@gmail.com>
309 587
310 Fix buffer-list rename&refresh after after killing a buffer in ido. 588 Fix buffer-list rename&refresh after killing a buffer in ido.
311 * lisp/ido.el: Revert Óscar's. 589 * lisp/ido.el: Revert Óscar's.
312 (ido-kill-buffer-at-head): Exit the minibuffer with ido-exit=refresh. 590 (ido-kill-buffer-at-head): Exit the minibuffer with ido-exit=refresh.
313 Remember the buffers at head, rather than their name. 591 Remember the buffers at head, rather than their name.
diff --git a/lisp/disp-table.el b/lisp/disp-table.el
index e0d2d790f6c..e9bdd3d9be3 100644
--- a/lisp/disp-table.el
+++ b/lisp/disp-table.el
@@ -110,11 +110,27 @@ Valid symbols are `truncation', `wrap', `escape', `control',
110 110
111;;;###autoload 111;;;###autoload
112(defun standard-display-8bit (l h) 112(defun standard-display-8bit (l h)
113 "Display characters in the range L to H literally." 113 "Display characters representing raw bytes in the range L to H literally.
114
115On a terminal display, each character in the range is displayed
116by sending the corresponding byte directly to the terminal.
117
118On a graphic display, each character in the range is displayed
119using the default font by a glyph whose code is the corresponding
120byte.
121
122Note that ASCII printable characters (SPC to TILDA) are displayed
123in the default way after this call."
114 (or standard-display-table 124 (or standard-display-table
115 (setq standard-display-table (make-display-table))) 125 (setq standard-display-table (make-display-table)))
126 (if (> h 255)
127 (setq h 255))
116 (while (<= l h) 128 (while (<= l h)
117 (aset standard-display-table l (if (or (< l ?\s) (>= l 127)) (vector l))) 129 (if (< l 128)
130 (aset standard-display-table l
131 (if (or (< l ?\s) (= l 127)) (vector l)))
132 (let ((c (unibyte-char-to-multibyte l)))
133 (aset standard-display-table c (vector c))))
118 (setq l (1+ l)))) 134 (setq l (1+ l))))
119 135
120;;;###autoload 136;;;###autoload
@@ -236,9 +252,12 @@ in `.emacs'."
236 (and (null arg) 252 (and (null arg)
237 (char-table-p standard-display-table) 253 (char-table-p standard-display-table)
238 ;; Test 161, because 160 displays as a space. 254 ;; Test 161, because 160 displays as a space.
239 (equal (aref standard-display-table 161) [161]))) 255 (equal (aref standard-display-table
256 (unibyte-char-to-multibyte 161))
257 (vector (unibyte-char-to-multibyte 161)))))
240 (progn 258 (progn
241 (standard-display-default 160 255) 259 (standard-display-default
260 (unibyte-char-to-multibyte 160) (unibyte-char-to-multibyte 255))
242 (unless (or (memq window-system '(x w32 ns))) 261 (unless (or (memq window-system '(x w32 ns)))
243 (and (terminal-coding-system) 262 (and (terminal-coding-system)
244 (set-terminal-coding-system nil)))) 263 (set-terminal-coding-system nil))))
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 91b4e42807d..a3609c0ccfc 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -1952,7 +1952,7 @@ See `set-language-info-alist' for use in programs."
1952 (> (aref (number-to-string (nth 2 (x-server-version))) 0) 1952 (> (aref (number-to-string (nth 2 (x-server-version))) 0)
1953 ?3)) 1953 ?3))
1954 ;; Make non-line-break space display as a plain space. 1954 ;; Make non-line-break space display as a plain space.
1955 (aset standard-display-table 160 [32])) 1955 (aset standard-display-table (unibyte-char-to-multibyte 160) [32]))
1956 ;; Most Windows programs send out apostrophes as \222. Most X fonts 1956 ;; Most Windows programs send out apostrophes as \222. Most X fonts
1957 ;; don't contain a character at that position. Map it to the ASCII 1957 ;; don't contain a character at that position. Map it to the ASCII
1958 ;; apostrophe. [This is actually RIGHT SINGLE QUOTATION MARK, 1958 ;; apostrophe. [This is actually RIGHT SINGLE QUOTATION MARK,
@@ -1960,7 +1960,7 @@ See `set-language-info-alist' for use in programs."
1960 ;; fonts probably have the appropriate glyph at this position, 1960 ;; fonts probably have the appropriate glyph at this position,
1961 ;; so they could use standard-display-8bit. It's better to use a 1961 ;; so they could use standard-display-8bit. It's better to use a
1962 ;; proper windows-1252 coding system. --fx] 1962 ;; proper windows-1252 coding system. --fx]
1963 (aset standard-display-table 146 [39])))) 1963 (aset standard-display-table (unibyte-char-to-multibyte 146) [39]))))
1964 1964
1965(defun set-language-environment-coding-systems (language-name) 1965(defun set-language-environment-coding-systems (language-name)
1966 "Do various coding system setups for language environment LANGUAGE-NAME." 1966 "Do various coding system setups for language environment LANGUAGE-NAME."
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index b4a7b3118d2..9af6057c20c 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -1085,7 +1085,7 @@ Create the buffer if it doesn't exist."
1085 (goto-char (point-max)) 1085 (goto-char (point-max))
1086 (when (not (equal 0 (- (point) rcirc-prompt-end-marker))) 1086 (when (not (equal 0 (- (point) rcirc-prompt-end-marker)))
1087 ;; delete a trailing newline 1087 ;; delete a trailing newline
1088 (when (bolp) 1088 (when (eq (point) (point-at-bol))
1089 (delete-char -1)) 1089 (delete-char -1))
1090 (let ((input (buffer-substring-no-properties 1090 (let ((input (buffer-substring-no-properties
1091 rcirc-prompt-end-marker (point)))) 1091 rcirc-prompt-end-marker (point))))
@@ -2151,12 +2151,13 @@ With a prefix arg, prompt for new topic."
2151 (rcirc-send-string process (format "PRIVMSG %s :\C-aACTION %s\C-a" 2151 (rcirc-send-string process (format "PRIVMSG %s :\C-aACTION %s\C-a"
2152 target args))) 2152 target args)))
2153 2153
2154(defun rcirc-add-or-remove (set &optional elt) 2154(defun rcirc-add-or-remove (set &rest elements)
2155 (if (and elt (not (string= "" elt))) 2155 (dolist (elt elements)
2156 (if (member-ignore-case elt set) 2156 (if (and elt (not (string= "" elt)))
2157 (delete elt set) 2157 (setq set (if (member-ignore-case elt set)
2158 (cons elt set)) 2158 (delete elt set)
2159 set)) 2159 (cons elt set)))))
2160 set)
2160 2161
2161(defun-rcirc-command ignore (nick) 2162(defun-rcirc-command ignore (nick)
2162 "Manage the ignore list. 2163 "Manage the ignore list.
@@ -2164,7 +2165,9 @@ Ignore NICK, unignore NICK if already ignored, or list ignored
2164nicks when no NICK is given. When listing ignored nicks, the 2165nicks when no NICK is given. When listing ignored nicks, the
2165ones added to the list automatically are marked with an asterisk." 2166ones added to the list automatically are marked with an asterisk."
2166 (interactive "sToggle ignoring of nick: ") 2167 (interactive "sToggle ignoring of nick: ")
2167 (setq rcirc-ignore-list (rcirc-add-or-remove rcirc-ignore-list nick)) 2168 (setq rcirc-ignore-list
2169 (apply #'rcirc-add-or-remove rcirc-ignore-list
2170 (split-string nick nil t)))
2168 (rcirc-print process nil "IGNORE" target 2171 (rcirc-print process nil "IGNORE" target
2169 (mapconcat 2172 (mapconcat
2170 (lambda (nick) 2173 (lambda (nick)
@@ -2176,14 +2179,18 @@ ones added to the list automatically are marked with an asterisk."
2176(defun-rcirc-command bright (nick) 2179(defun-rcirc-command bright (nick)
2177 "Manage the bright nick list." 2180 "Manage the bright nick list."
2178 (interactive "sToggle emphasis of nick: ") 2181 (interactive "sToggle emphasis of nick: ")
2179 (setq rcirc-bright-nicks (rcirc-add-or-remove rcirc-bright-nicks nick)) 2182 (setq rcirc-bright-nicks
2183 (apply #'rcirc-add-or-remove rcirc-bright-nicks
2184 (split-string nick nil t)))
2180 (rcirc-print process nil "BRIGHT" target 2185 (rcirc-print process nil "BRIGHT" target
2181 (mapconcat 'identity rcirc-bright-nicks " "))) 2186 (mapconcat 'identity rcirc-bright-nicks " ")))
2182 2187
2183(defun-rcirc-command dim (nick) 2188(defun-rcirc-command dim (nick)
2184 "Manage the dim nick list." 2189 "Manage the dim nick list."
2185 (interactive "sToggle deemphasis of nick: ") 2190 (interactive "sToggle deemphasis of nick: ")
2186 (setq rcirc-dim-nicks (rcirc-add-or-remove rcirc-dim-nicks nick)) 2191 (setq rcirc-dim-nicks
2192 (apply #'rcirc-add-or-remove rcirc-dim-nicks
2193 (split-string nick nil t)))
2187 (rcirc-print process nil "DIM" target 2194 (rcirc-print process nil "DIM" target
2188 (mapconcat 'identity rcirc-dim-nicks " "))) 2195 (mapconcat 'identity rcirc-dim-nicks " ")))
2189 2196
@@ -2192,7 +2199,9 @@ ones added to the list automatically are marked with an asterisk."
2192Mark KEYWORD, unmark KEYWORD if already marked, or list marked 2199Mark KEYWORD, unmark KEYWORD if already marked, or list marked
2193keywords when no KEYWORD is given." 2200keywords when no KEYWORD is given."
2194 (interactive "sToggle highlighting of keyword: ") 2201 (interactive "sToggle highlighting of keyword: ")
2195 (setq rcirc-keywords (rcirc-add-or-remove rcirc-keywords keyword)) 2202 (setq rcirc-keywords
2203 (apply #'rcirc-add-or-remove rcirc-keywords
2204 (split-string keyword nil t)))
2196 (rcirc-print process nil "KEYWORD" target 2205 (rcirc-print process nil "KEYWORD" target
2197 (mapconcat 'identity rcirc-keywords " "))) 2206 (mapconcat 'identity rcirc-keywords " ")))
2198 2207
diff --git a/lisp/play/cookie1.el b/lisp/play/cookie1.el
index 75c0d9b2b06..e786c6cc5c1 100644
--- a/lisp/play/cookie1.el
+++ b/lisp/play/cookie1.el
@@ -138,7 +138,7 @@ Optional fifth arg REQUIRE-MATCH non-nil forces a matching cookie."
138 (vec (cookie-snarf phrase-file 138 (vec (cookie-snarf phrase-file
139 startmsg endmsg)) 139 startmsg endmsg))
140 (i (length vec))) 140 (i (length vec)))
141 (while (> (setq i (1- i)) 0) 141 (while (>= (setq i (1- i)) 0)
142 (setq alist (cons (list (aref vec i)) alist))) 142 (setq alist (cons (list (aref vec i)) alist)))
143 (put sym 'completion-alist alist)))) 143 (put sym 'completion-alist alist))))
144 nil require-match nil nil)) 144 nil require-match nil nil))
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 2690d399411..2f65ffa1e17 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -782,7 +782,7 @@ Set `python-indent' locally to the value guessed."
782 '(("else" "if" "elif" "while" "for" "try" "except") 782 '(("else" "if" "elif" "while" "for" "try" "except")
783 ("elif" "if" "elif") 783 ("elif" "if" "elif")
784 ("except" "try" "except") 784 ("except" "try" "except")
785 ("finally" "try" "except")) 785 ("finally" "else" "try" "except"))
786 "Alist of keyword matches. 786 "Alist of keyword matches.
787The car of an element is a keyword introducing a statement which 787The car of an element is a keyword introducing a statement which
788can close a block opened by a keyword in the cdr.") 788can close a block opened by a keyword in the cdr.")
diff --git a/lisp/simple.el b/lisp/simple.el
index 610698cc09b..3cdac1e19f0 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -804,15 +804,16 @@ If BACKWARD-ONLY is non-nil, only delete them before point."
804 (constrain-to-field nil orig-pos t))))) 804 (constrain-to-field nil orig-pos t)))))
805 805
806(defun beginning-of-buffer (&optional arg) 806(defun beginning-of-buffer (&optional arg)
807 "Move point to the beginning of the buffer; leave mark at previous position. 807 "Move point to the beginning of the buffer.
808With \\[universal-argument] prefix, do not set mark at previous position.
809With numeric arg N, put point N/10 of the way from the beginning. 808With numeric arg N, put point N/10 of the way from the beginning.
809If the buffer is narrowed, this command uses the beginning of the
810accessible part of the buffer.
810 811
811If the buffer is narrowed, this command uses the beginning and size 812If Transient Mark mode is disabled, leave mark at previous
812of the accessible part of the buffer. 813position, unless a \\[universal-argument] prefix is supplied.
813 814
814Don't use this command in Lisp programs! 815Don't use this command in Lisp programs!
815\(goto-char (point-min)) is faster and avoids clobbering the mark." 816\(goto-char (point-min)) is faster."
816 (interactive "^P") 817 (interactive "^P")
817 (or (consp arg) 818 (or (consp arg)
818 (region-active-p) 819 (region-active-p)
@@ -829,15 +830,16 @@ Don't use this command in Lisp programs!
829 (if (and arg (not (consp arg))) (forward-line 1))) 830 (if (and arg (not (consp arg))) (forward-line 1)))
830 831
831(defun end-of-buffer (&optional arg) 832(defun end-of-buffer (&optional arg)
832 "Move point to the end of the buffer; leave mark at previous position. 833 "Move point to the end of the buffer.
833With \\[universal-argument] prefix, do not set mark at previous position.
834With numeric arg N, put point N/10 of the way from the end. 834With numeric arg N, put point N/10 of the way from the end.
835If the buffer is narrowed, this command uses the end of the
836accessible part of the buffer.
835 837
836If the buffer is narrowed, this command uses the beginning and size 838If Transient Mark mode is disabled, leave mark at previous
837of the accessible part of the buffer. 839position, unless a \\[universal-argument] prefix is supplied.
838 840
839Don't use this command in Lisp programs! 841Don't use this command in Lisp programs!
840\(goto-char (point-max)) is faster and avoids clobbering the mark." 842\(goto-char (point-max)) is faster."
841 (interactive "^P") 843 (interactive "^P")
842 (or (consp arg) (region-active-p) (push-mark)) 844 (or (consp arg) (region-active-p) (push-mark))
843 (let ((size (- (point-max) (point-min)))) 845 (let ((size (- (point-max) (point-min))))