Juri Linkov [Sat, 22 Nov 2008 20:40:28 +0000 (20:40 +0000)]
(dired-isearch-filenames): Add new context-dependent
option `dwim'. Change non-dwim option from `dired-filename' to `t'.
Doc fix.
(dired-isearch-filenames-setup): Run filename Isearch only when
dired-isearch-filenames is t or dired-isearch-filenames is `dwim'
and the text property `dired-filename' at point is non-nil.
In this case also set isearch-message-prefix-add to "filename ".
(dired-isearch-filenames-end): Set isearch-message-prefix-add to nil.
(dired-isearch-filenames, dired-isearch-filenames-regexp):
Don't let-bind isearch-message-prefix-add since this is done now
in dired-isearch-filenames-setup.
Juri Linkov [Sat, 22 Nov 2008 19:08:03 +0000 (19:08 +0000)]
(Directory Variables): Rename ".dir-settings.el" to
".dir-locals.el". Rename `define-project-bindings' to
`dir-locals-set-class-variables'. Rename `set-directory-project' to
`dir-locals-set-directory-class'.
Juri Linkov [Sat, 22 Nov 2008 19:06:02 +0000 (19:06 +0000)]
Rename .dir-settings.el to .dir-locals.
Rename set-directory-project to dir-locals-set-directory-class.
Rename define-project-bindings to dir-locals-set-class-variables.
Juri Linkov [Sat, 22 Nov 2008 19:02:47 +0000 (19:02 +0000)]
(hack-local-variables-confirm): Rename arg `project' to
`dir-name'. Move `(or dir-name name)' to let-binding of `name'.
(hack-local-variables-filter): Rename arg `project' to `dir-name'.
(hack-local-variables): Rename call of `hack-project-variables' to
`hack-dir-local-variables'. Change error text to "Directory-local
variables error".
(dir-locals-class-alist): Rename from `project-class-alist'.
(dir-locals-directory-alist): Rename from `project-directory-alist'.
(dir-locals-get-class-variables): Rename from `project-get-alist'.
(dir-locals-collect-mode-variables): Rename from
`project-collect-bindings-from-alist'. Rename arg `mode-alist' to
`mode-variables', and arg `settings' to `variables'.
(dir-locals-collect-variables): Rename from
`project-collect-binding-list'. Rename arg `binding-list' to
`class-variables', and arg `settings' to `variables'.
(dir-locals-set-directory-class): Rename from `set-directory-project'.
(dir-locals-set-class-variables): Rename from `define-project-bindings'.
Rename arg `settings' to `variables'.
(dir-locals-file): New defconst.
(dir-locals-find-file): Rename from `project-find-settings-file'.
Use `dir-locals-file'. Rename let-bound `settings' to `locals-file',
and `pda' to `dir-elt'.
(dir-locals-read-from-file): Rename from
`project-define-from-project-file'. Rename arg `settings-file'
to `file'. Rename let-bound `list' to `variables'.
(hack-dir-local-variables): Rename from `hack-project-variables'.
Rename let-bound `settings' to `variables-file', `root-dir'
to `dir-name', and `bindings' to `variables'.
Eli Zaretskii [Sat, 22 Nov 2008 18:22:36 +0000 (18:22 +0000)]
(Character Codes, Character Sets)
(Scanning Charsets, Translation of Characters): Update for Emacs 23.
(Chars and Bytes, Splitting Characters): Sections removed.
Lute Kamstra [Sat, 22 Nov 2008 17:35:55 +0000 (17:35 +0000)]
* buffers.texi (Select Buffer): Index goto-line.
* basic.texi (Moving Point): Mention the use of a numeric prefix
argument with goto-line and refer to Select Buffer for the use of a
plain prefix argument.
Martin Rudalics [Sat, 22 Nov 2008 11:42:00 +0000 (11:42 +0000)]
(switch-to-buffer-other-window, switch-to-buffer-other-frame):
Rename buffer argument to buffer-or-name. Reword and mention new
option confirm-nonexistent-file-or-buffer in doc-string.
Glenn Morris [Sat, 22 Nov 2008 03:34:55 +0000 (03:34 +0000)]
(vc-mtn-diff-switches): New option.
(vc-mtn-program): Rename from vc-mtn-command, for
consistency with other backends. Keep old name as alias.
Update callers. Make it a defcustom.
(vc-mtn-diff): Give it a doc string. Apply diff switches.
Glenn Morris [Sat, 22 Nov 2008 03:30:22 +0000 (03:30 +0000)]
(vc-arch-program): Rename from vc-arch-command, for
consistency with other backends. Make it a defcustom.
(vc-arch-command, vc-arch-trim-revlib): Adapt for above change.
Glenn Morris [Sat, 22 Nov 2008 03:27:18 +0000 (03:27 +0000)]
Remove leading `*' from defcustom doc-strings.
(vc-svn-program): Move defcustom to start.
(vc-svn-create-repo, vc-svn-modify-change-comment):
Use vc-svn-program rather than hard-coded "svn".
Stefan Monnier [Fri, 21 Nov 2008 22:26:54 +0000 (22:26 +0000)]
(message-send-mail): Just set the buffer to unibyte
rather than use mm-with-unibyte-current-buffer which does a lot more.
(message-send-mail-partially): Don't bother with
mm-with-unibyte-current-buffer since it's already been made unibyte by
message-send-mail.
Stefan Monnier [Fri, 21 Nov 2008 20:40:08 +0000 (20:40 +0000)]
(quail-indent-to): New function.
(quail-completion-1, quail-completion-list-translations)
(quail-insert-decode-map): Use it to improve alignment.
(quail-build-decode-map): Don't ignore latin-1 chars.
(quail-help): Increase the max decode-map size so that even the TeX map
gets printed.
Stefan Monnier [Fri, 21 Nov 2008 19:29:16 +0000 (19:29 +0000)]
(bookmark-get-bookmark): Add `noerror' arg.
Signal error for invalid bookmark.
(bookmark-get-bookmark-record): Undo last change.
(bookmark-store, bookmark-delete): Use new arg `noerror'.
Chong Yidong [Fri, 21 Nov 2008 18:51:48 +0000 (18:51 +0000)]
(byte-compile-butlast): Move up in file.
(byte-optimize-plus): Don't call
byte-optimize-delay-constants-math (bug#1334). Use
byte-optimize-predicate to optimize constants.
(byte-optimize-minus): Don't call
byte-optimize-delay-constants-math. Remove zero arguments first
if possible. Call byte-optimize-predicate to optimize constants.
(byte-optimize-multiply): Remove optimizations for arguments of 0
and 2, which may be inaccurate. Optimize (* x -1) to (- x). Call
byte-optimize-predicate.
(byte-optimize-divide): Leave runtime errors unchanged.
Optimize (/ x 1) to (+ x 0). Remove optimizations for arguments of
0 and 2.0, which may be inaccurate. Call byte-optimize-predicate.
Chong Yidong [Fri, 21 Nov 2008 18:51:19 +0000 (18:51 +0000)]
* byte-opt.el (byte-compile-butlast): Move up in file.
(byte-optimize-plus): Don't call
byte-optimize-delay-constants-math (bug#1334). Use
byte-optimize-predicate to optimize constants.
(byte-optimize-minus): Don't call
byte-optimize-delay-constants-math. Remove zero arguments first
if possible. Call byte-optimize-predicate to optimize constants.
(byte-optimize-multiply): Remove optimizations for arguments of 0
and 2, which may be inaccurate. Optimize (* x -1) to (- x). Call
byte-optimize-predicate.
(byte-optimize-divide): Leave runtime errors unchanged.
Optimize (/ x 1) to (+ x 0). Remove optimizations for arguments of
0 and 2.0, which may be inaccurate. Call byte-optimize-predicate.
Kenichi Handa [Fri, 21 Nov 2008 02:24:40 +0000 (02:24 +0000)]
(detect_coding_iso_2022): Reject invalid composition
sequence.
(DECODE_COMPOSITION_START): If the current source is the last
block, and the current composition doesn't end, regard this
sequence as invalid.
(decode_coding_iso_2022): Handle invalid composition sequence.
Stefan Monnier [Thu, 20 Nov 2008 15:35:30 +0000 (15:35 +0000)]
(Buffer-menu-short-ellipsis): New constant.
(Buffer-menu-buffer+size): Use it, fix last change, and simplify.
(list-buffers-noselect): Don't need to pad.
Martin Rudalics [Thu, 20 Nov 2008 10:13:40 +0000 (10:13 +0000)]
(coordinates_in_window): Don't return
ON_VERTICAL_BORDER for the rightmost position of a mode/header
line when the window is not the rightmost one. (Bug#1372)
* server.el (server-temp-file-p): Use `string-match-p'.
(server-socket-dir): Set to nil if local sockets are unsupported.
(server-start): Don't try to delete local socket if unsupported.
(server-kill-new-buffers): Reflow docstring.
(server-delete-client, server-handle-delete-frame)
(server-save-buffers-kill-terminal): Doc fixes.
(server-send-string): Fix typo in docstring.