bpt/emacs.git
14 years agoFix typos in comments.
Juanma Barranquero [Mon, 26 Oct 2009 15:18:03 +0000 (15:18 +0000)]
Fix typos in comments.

* minibuf.c (Fall_completions): Fix typo in docstring.

14 years ago* simple.el (transpose-subr): Give clearer error when the mark is not set.
Juanma Barranquero [Mon, 26 Oct 2009 14:59:12 +0000 (14:59 +0000)]
* simple.el (transpose-subr): Give clearer error when the mark is not set.
  (Bug#4807)

14 years ago(PURESIZE_RATIO): Increase back to 10/6.
Andreas Schwab [Mon, 26 Oct 2009 10:39:41 +0000 (10:39 +0000)]
(PURESIZE_RATIO): Increase back to 10/6.

14 years ago* window.c (grow_mini_window): Comment out "delta >= 0" assertion.
Juanma Barranquero [Mon, 26 Oct 2009 10:04:37 +0000 (10:04 +0000)]
* window.c (grow_mini_window): Comment out "delta >= 0" assertion.
  For delta < 0, skip check that only makes sense when the mini-window
  is going to be enlarged.  (Bug#4534)

14 years ago* net/tramp.el (tramp-perl-file-truename): New defconst. Perl
Michael Albinus [Mon, 26 Oct 2009 09:29:12 +0000 (09:29 +0000)]
* net/tramp.el (tramp-perl-file-truename): New defconst.  Perl
code contributed by yary <not.com@gmail.com> (tiny change).
(tramp-handle-file-truename, tramp-get-remote-perl): Use it.
Check also for "perl-file-spec" and "perl-cwd-realpath"
properties.
(tramp-handle-write-region): In case of APPEND, reuse the tmpfile
name.

* net/tramp.el (tramp-perl-file-name-all-completions): New
defconst.
(tramp-get-remote-readlink): New defun.
(tramp-handle-file-truename): Use it.
(tramp-handle-file-exists-p): Check file-attributes cache, assume
file exists if cache value present.
(tramp-check-cached-permissions) New defun.
(tramp-handle-file-readable-p): Use it.
(tramp-handle-file-writable-p): Likewise.
(tramp-handle-file-executable-p): Likewise.
(tramp-handle-file-name-all-completions): Try using Perl to get
partial completions.  When perl not available, combine `cd' and
`ls' into single remote operation and use shell expansion to get
partial remote directory contents.  Set `file-exists-p' cache for
directory and any files returned by ls.  Change cache handling to
support partial directory contents.  Use error message emitted by
remote `cd' or Perl code for local tramp-error.
(tramp-do-copy-or-rename-file-directly): Avoid separate
tramp-send-command-and-check call.
(tramp-handle-process-file): Merge three remote ops into one.  Do
not flush all caches when `process-file-side-effects' is set.
(tramp-handle-write-region): Avoid tramp-set-file-uid-gid if
file-attributes shows uid/gid to be set already.

14 years ago* net/tramp-imap.el (tramp-imap-file-name-handler-alist): Ignore
Michael Albinus [Mon, 26 Oct 2009 09:05:09 +0000 (09:05 +0000)]
* net/tramp-imap.el (tramp-imap-file-name-handler-alist): Ignore
`dired-call-process'.
(tramp-imap-make-iht): Use `user' and `ssl' with `imap-hash-make'.

14 years ago* textmodes/tex-mode.el (tex-dvi-view-command)
Dan Nicolaescu [Mon, 26 Oct 2009 06:43:36 +0000 (06:43 +0000)]
* textmodes/tex-mode.el (tex-dvi-view-command)
(tex-show-queue-command, tex-open-quote):
* progmodes/ruby-mode.el (auto-mode-alist)
(interpreter-mode-alist): Purecopy strings.

* emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): Purecopy item names.

* emacs-lisp/derived.el (define-derived-mode): Purecopy the doc
string for the hook, keymap and abbrev table.

* emacs-lisp/byte-run.el (make-obsolete): Purecopy the current name.

* x-dnd.el (x-dnd-xdnd-to-action):
* startup.el (fancy-startup-text, fancy-about-text): Change to
defconst from defvar.

* ps-print.el (ps-page-dimensions-database): Purecopy initial value.

* mouse.el (mouse-buffer-menu-mode-groups, x-fixed-font-alist):
Purecopy initialization strings.

* mail/sendmail.el (mail-header-separator)
(mail-personal-alias-file):
* mail/rmail.el (rmail-default-dont-reply-to-names)
(rmail-ignored-headers, rmail-retry-ignored-headers)
(rmail-highlighted-headers, rmail-secondary-file-directory)
(rmail-secondary-file-regexp):
* files.el (null-device, file-name-invalid-regexp)
(locate-dominating-stop-dir-regexp)
(inhibit-first-line-modes-regexps): Purecopy initialization
strings.
(interpreter-mode-alist): Use mapcar instead of mapc.

* buff-menu.el (Buffer-menu-mode-map): Purecopy name.

* bindings.el (mode-line-major-mode-keymap): Purecopy name.
(completion-ignored-extensions):
(debug-ignored-errors): Purecopy strings.

14 years ago(pcomplete-std-complete): Obey pcomplete-use-paring.
Stefan Monnier [Mon, 26 Oct 2009 04:06:01 +0000 (04:06 +0000)]
(pcomplete-std-complete): Obey pcomplete-use-paring.
(pcomplete, pcomplete-parse-buffer-arguments, pcomplete-opt)
(pcomplete--here): Use push.

14 years ago(all-completions): Declare the 4th arg obsolete.
Stefan Monnier [Mon, 26 Oct 2009 03:39:15 +0000 (03:39 +0000)]
(all-completions): Declare the 4th arg obsolete.

14 years ago(pcomplete-unquote-argument-function): New var.
Stefan Monnier [Sun, 25 Oct 2009 20:38:06 +0000 (20:38 +0000)]
(pcomplete-unquote-argument-function): New var.
(pcomplete-unquote-argument): New function.
(pcomplete--common-suffix): Always pay attention to case.
(pcomplete--table-subvert): Quote and unquote the text.
(pcomplete--common-quoted-suffix): New function.
(pcomplete-std-complete): Use it and pcomplete-begin.

14 years ago(bookmark-bmenu-list): Don't use switch-to-buffer if
Stefan Monnier [Sun, 25 Oct 2009 18:09:57 +0000 (18:09 +0000)]
(bookmark-bmenu-list): Don't use switch-to-buffer if
we're inside a dedicated or minibuffer window.

14 years ago* cedet/semantic/fw.el (semantic-alias-obsolete)
Stefan Monnier [Sun, 25 Oct 2009 02:55:27 +0000 (02:55 +0000)]
* cedet/semantic/fw.el (semantic-alias-obsolete)
(semantic-varalias-obsolete): Make the `when' arg mandatory.
(define-mode-overload-implementation):
* cedet/semantic/decorate/mode.el (semantic-decorate-pending-decoration-hooks):
* cedet/semantic/wisent.el (wisent-lex-make-token-table):
* cedet/semantic/util.el (semantic-file-token-stream)
(semantic-something-to-stream):
* cedet/semantic/tag.el (semantic-tag-make-assoc-list)
(semantic-expand-nonterminal):
* cedet/semantic/tag-file.el (semantic-find-nonterminal)
(semantic-find-dependency, semantic-find-nonterminal)
(semantic-find-dependency):
* cedet/semantic/lex.el (semantic-flex-start, semantic-flex-end)
(semantic-flex-text, semantic-flex-make-keyword-table)
(semantic-flex-keyword-p, semantic-flex-keyword-put)
(semantic-flex-keyword-get, semantic-flex-map-keywords)
(semantic-flex-keywords, semantic-flex-buffer, semantic-flex-list):
* cedet/semantic/java.el (semantic-java-prototype-nonterminal):
* cedet/semantic/idle.el (semantic-before-idle-scheduler-reparse-hooks)
(semantic-after-idle-scheduler-reparse-hooks):
* cedet/semantic/edit.el (semantic-edits-incremental-reparse-failed-hooks):
* cedet/semantic/db-mode.el (semanticdb-mode-hooks):
* cedet/semantic.el (semantic-toplevel-bovine-table)
(semantic-toplevel-bovine-cache)
(semantic-before-toplevel-bovination-hook, semantic-init-hooks)
(semantic-init-mode-hooks, semantic-init-db-hooks)
(semantic-bovination-working-type): Provide the `when' arg.

14 years ago* bookmark.el: Update documentation, especially documentation
Karl Fogel [Sun, 25 Oct 2009 02:07:45 +0000 (02:07 +0000)]
* bookmark.el: Update documentation, especially documentation
  of `bookmark-alist' and of the bookmark file format.
  Patch by Drew Adams, with minor tweaks from me.  (Bug#4195)

14 years ago* keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
Chong Yidong [Sun, 25 Oct 2009 00:40:13 +0000 (00:40 +0000)]
* keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
string in menu maps (Bug#4471).

14 years ago* mail/emacsbug.el (report-emacs-bug): Clarify that the
Chong Yidong [Sat, 24 Oct 2009 22:09:08 +0000 (22:09 +0000)]
* mail/emacsbug.el (report-emacs-bug): Clarify that the
keybindings apply to the mail buffer (Bug#4003).  Shrink help
window to buffer.

14 years ago* whitespace.el (whitespace-mode, whitespace-newline-mode)
Chong Yidong [Sat, 24 Oct 2009 21:51:03 +0000 (21:51 +0000)]
* whitespace.el (whitespace-mode, whitespace-newline-mode)
(global-whitespace-mode, global-whitespace-newline-mode)
(whitespace-toggle-options, global-whitespace-toggle-options): Doc
fix (Bug#3660).

14 years ago* nxml/nxml-mode.el (nxml-balanced-close-start-tag): Use the value
Chong Yidong [Sat, 24 Oct 2009 21:32:19 +0000 (21:32 +0000)]
* nxml/nxml-mode.el (nxml-balanced-close-start-tag): Use the value
of xmltok-start before the end tag was inserted (Bug#2840).

14 years agoAdd arch tagline
Miles Bader [Sat, 24 Oct 2009 21:31:16 +0000 (21:31 +0000)]
Add arch tagline

14 years ago* progmodes/sh-script.el (sh-font-lock-paren): Handle case
Chong Yidong [Sat, 24 Oct 2009 21:15:39 +0000 (21:15 +0000)]
* progmodes/sh-script.el (sh-font-lock-paren): Handle case
patterns that are preceded by an open-paren (Bug#1320).

14 years ago* files.el (delete-directory): Delete symlinks to directories with
Chong Yidong [Sat, 24 Oct 2009 20:30:44 +0000 (20:30 +0000)]
* files.el (delete-directory): Delete symlinks to directories with
delete-file (Bug#4739).

14 years ago* nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
Chong Yidong [Sat, 24 Oct 2009 18:58:50 +0000 (18:58 +0000)]
* nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
FRAME_NS_VIEW on terminal frames (Bug#4765).

14 years ago* cedet/semantic/util.el (semantic-recursive-find-nonterminal-by-name):
Chong Yidong [Sat, 24 Oct 2009 18:02:47 +0000 (18:02 +0000)]
* cedet/semantic/util.el (semantic-recursive-find-nonterminal-by-name):
* cedet/semantic/tag.el (semantic-token-type-parent): Add WHEN
argument to make-obsolete.

* cedet/semantic/fw.el (semantic-alias-obsolete)
(semantic-varalias-obsolete): Add optional WHEN argument.

14 years ago(xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
Andreas Schwab [Sat, 24 Oct 2009 16:45:25 +0000 (16:45 +0000)]
(xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
DBUS_TYPE_UINTnn separately to get proper sign extension.

14 years ago(Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
Andreas Schwab [Sat, 24 Oct 2009 16:34:52 +0000 (16:34 +0000)]
(Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
can properly handle unsigned types.
(make_uid, make_gid): Removed.

14 years ago(FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
Andreas Schwab [Sat, 24 Oct 2009 16:32:06 +0000 (16:32 +0000)]
(FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
types again.

14 years ago(procfs_ttyname): Fix sprintf format to match argument
Andreas Schwab [Sat, 24 Oct 2009 14:01:03 +0000 (14:01 +0000)]
(procfs_ttyname): Fix sprintf format to match argument
type.
(system_process_attributes): Likewise.

14 years ago(vc-backend-for-registration): Rename from
Dan Nicolaescu [Sat, 24 Oct 2009 06:34:26 +0000 (06:34 +0000)]
(vc-backend-for-registration): Rename from
vc-get-backend-for-registration.  Update callers.

14 years ago* keymap.c (Fmake_sparse_keymap): Purecopy the name.
Dan Nicolaescu [Sat, 24 Oct 2009 06:32:03 +0000 (06:32 +0000)]
* keymap.c (Fmake_sparse_keymap): Purecopy the name.

* eval.c (Fautoload): Purecopy the filename.  Simplify.

* category.c (Fdefine_category): Purecopy docstring.

* international/mule-cmds.el (set-language-info-alist): Purecopy lang-env.
(leim-list-header, leim-list-entry-regexp): Change defvars to defconst.
(charset): Purecopy the name.
(define-char-code-property): Purecopy string arguments.

* emacs-lisp/byte-run.el (make-obsolete, make-obsolete-variable):
Purecopy string arguments.

* emacs-lisp/lisp-mode.el (emacs-lisp-mode-map):
* ediff-hook.el (menu-bar-ediff-menu):
* buff-menu.el (Buffer-menu-mode-map): Purecopy names and tooltips.
* bookmark.el (menu-bar-bookmark-map): Add :help and purecopy the name.

14 years ago(pcomplete-erc-all-nicks): Autoload it, to silence compiler.
Glenn Morris [Sat, 24 Oct 2009 03:54:58 +0000 (03:54 +0000)]
(pcomplete-erc-all-nicks): Autoload it, to silence compiler.

14 years ago(pcomplete-erc-all-nicks): Autoload it, to silence compiler.
Glenn Morris [Sat, 24 Oct 2009 03:54:50 +0000 (03:54 +0000)]
(pcomplete-erc-all-nicks):  Autoload it, to silence compiler.
(pcomplete/erc-mode/DCC): Replace cl-function remove-duplicates with
erc-delete-dups.

14 years ago(file-cache-completions-keymap): Bind mouse-2 to
Glenn Morris [Sat, 24 Oct 2009 03:51:51 +0000 (03:51 +0000)]
(file-cache-completions-keymap): Bind mouse-2 to
file-cache-choose-completion.
(file-cache-choose-completion): Handle an optional event argument.
(file-cache-mouse-choose-completion): Make it an obsolete alias.

14 years ago(comint-dynamic-list-completions): Use choose-completion rather than
Glenn Morris [Sat, 24 Oct 2009 03:50:20 +0000 (03:50 +0000)]
(comint-dynamic-list-completions): Use choose-completion rather than
obsolete alias mouse-choose-completion.

14 years ago(term-dynamic-list-completions): Use choose-completion rather than
Glenn Morris [Sat, 24 Oct 2009 03:49:44 +0000 (03:49 +0000)]
(term-dynamic-list-completions): Use choose-completion rather than
obsolete alias mouse-choose-completion.

14 years ago(octave-complete-symbol): Use choose-completion if
Glenn Morris [Sat, 24 Oct 2009 03:48:37 +0000 (03:48 +0000)]
(octave-complete-symbol): Use choose-completion if
mouse-choose-completion is ever removed.

14 years ago(sgml-looking-back-at): Move definition before use.
Glenn Morris [Sat, 24 Oct 2009 03:45:50 +0000 (03:45 +0000)]
(sgml-looking-back-at): Move definition before use.

14 years ago(generate-autoload-cookie): Define for compiler.
Glenn Morris [Sat, 24 Oct 2009 03:44:42 +0000 (03:44 +0000)]
(generate-autoload-cookie): Define for compiler.

14 years agoConvert comment about autoload into autoload comment.
Glenn Morris [Sat, 24 Oct 2009 03:43:47 +0000 (03:43 +0000)]
Convert comment about autoload into autoload comment.
(vc-responsible-backend): Fix declaration.

14 years ago(help-xref-stack-item): Define for compiler.
Glenn Morris [Sat, 24 Oct 2009 03:42:18 +0000 (03:42 +0000)]
(help-xref-stack-item): Define for compiler.

14 years ago(completion--embedded-envvar-table): Fix last change.
Stefan Monnier [Sat, 24 Oct 2009 00:46:17 +0000 (00:46 +0000)]
(completion--embedded-envvar-table): Fix last change.
Ignore `pred' now that we receive one.  Handle test-completion specially.

14 years ago(FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
Andreas Schwab [Fri, 23 Oct 2009 20:56:30 +0000 (20:56 +0000)]
(FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.

14 years agoFix typo.
Chong Yidong [Fri, 23 Oct 2009 18:39:48 +0000 (18:39 +0000)]
Fix typo.

14 years ago(vc-responsible-backend): Throw an error if not backend is
Dan Nicolaescu [Fri, 23 Oct 2009 18:07:38 +0000 (18:07 +0000)]
(vc-responsible-backend): Throw an error if not backend is
found.  Remove the REGISTER argument. Move the code dealing with
REGISTER ...
(vc-get-backend-for-registration): ... here.  New function.
(vc-deduce-fileset): Call vc-get-backend-for-registration instead
of vc-responsible-backend, pass the file name instead of the
directory name.

14 years ago(PURESIZE_RATIO): Decrease to 11/7.
Andreas Schwab [Fri, 23 Oct 2009 17:56:06 +0000 (17:56 +0000)]
(PURESIZE_RATIO): Decrease to 11/7.

14 years ago* window.c (Fwindow_edges, Fwindow_pixel_edges)
Chong Yidong [Fri, 23 Oct 2009 17:52:56 +0000 (17:52 +0000)]
* window.c (Fwindow_edges, Fwindow_pixel_edges)
(Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
(Bug#4775).

14 years ago(pcomplete-common-suffix, pcomplete-table-subvert): New funs.
Stefan Monnier [Fri, 23 Oct 2009 17:37:09 +0000 (17:37 +0000)]
(pcomplete-common-suffix, pcomplete-table-subvert): New funs.
(pcomplete-std-complete): Use them.  Obey pcomplete-termination-string.
(pcomplete-comint-setup): Don't modify a global var via
accidental side-effects.
(pcomplete-shell-setup): Adjust call accordingly.
(pcomplete-parse-comint-arguments): Use push.

14 years ago* fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
Stefan Monnier [Fri, 23 Oct 2009 17:33:52 +0000 (17:33 +0000)]
* fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
(init_fileio_once):
* lisp.h (init_fileio_once): Remove.
* emacs.c (main): Don't call init_fileio_once.

14 years ago* emacs-lisp/checkdoc.el (checkdoc-proper-noun-region-engine):
Chong Yidong [Fri, 23 Oct 2009 17:26:06 +0000 (17:26 +0000)]
* emacs-lisp/checkdoc.el (checkdoc-proper-noun-region-engine):
Allow uncapitalized info node names (Bug#3921).

14 years ago* configure.in: Invoke $CPP with -P when creating Makefile and
Chong Yidong [Fri, 23 Oct 2009 16:19:37 +0000 (16:19 +0000)]
* configure.in: Invoke $CPP with -P when creating Makefile and
src/Makefile.  Without this, gcc 4.4.2 converts each
backslash-newline pair in the input to a bare newline, yielding
invalid Makefiles.

* configure: Regenerate.

14 years ago* mail/emacsbug.el (report-emacs-bug): Tweak the sentence pointing
Chong Yidong [Fri, 23 Oct 2009 16:17:17 +0000 (16:17 +0000)]
* mail/emacsbug.el (report-emacs-bug): Tweak the sentence pointing
to the DEBUG file (Bug#3781).

14 years ago* textmodes/ispell.el (ispell-dictionary-base-alist): Add finnish
Chong Yidong [Fri, 23 Oct 2009 16:01:19 +0000 (16:01 +0000)]
* textmodes/ispell.el (ispell-dictionary-base-alist): Add finnish
dictionary entry (Bug#4579).

14 years ago* tramp.texi (External methods): Temporary files are kept for
Michael Albinus [Fri, 23 Oct 2009 15:10:31 +0000 (15:10 +0000)]
* tramp.texi (External methods): Temporary files are kept for
`rsync' and `rsyncc' methods.

14 years ago* net/tramp.el (top): Remove `tramp-rfn-eshadow-update-overlay'
Michael Albinus [Fri, 23 Oct 2009 15:04:27 +0000 (15:04 +0000)]
* net/tramp.el (top): Remove `tramp-rfn-eshadow-update-overlay'
from `rfn-eshadow-update-overlay-hook' when unloading.
(tramp-methods): Add `tramp-copy-keep-tmpfile' for "rsync" and
"rsyncc".  Adjust doc string.
(tramp-temp-buffer-file-name) New buffer-local defvar.
(tramp-handle-insert-file-contents, tramp-handle-write-region):
Keep temporary file when indicated by method ("rsync" and
"rsyncc").
(tramp-handle-write-region): Handle APPEND.
(tramp-delete-temp-file-function): New defun.  Added to
`kill-buffer-hook'.

14 years ago* menu-bar.el (cua-enable-cua-keys): Declare for the byte-compiler.
Juanma Barranquero [Fri, 23 Oct 2009 08:20:11 +0000 (08:20 +0000)]
* menu-bar.el (cua-enable-cua-keys): Declare for the byte-compiler.

14 years ago* bindings.el (propertized-buffer-identification): Undo previous change.
Dan Nicolaescu [Fri, 23 Oct 2009 07:29:21 +0000 (07:29 +0000)]
* bindings.el (propertized-buffer-identification): Undo previous change.

14 years ago* puresize.h (BASE_PURESIZE): Increase to 1430000.
Dan Nicolaescu [Fri, 23 Oct 2009 05:15:26 +0000 (05:15 +0000)]
* puresize.h (BASE_PURESIZE): Increase to 1430000.

* term/tty-colors.el (msdos-color-values): Remove declaration, unused.
(color-name-rgb-alist, tty-standard-colors)
(tty-color-mode-alist): Change to defconst.

* simple.el (mark-inactive): Purecopy message.

* menu-bar.el (menu-bar-make-mm-toggle, menu-bar-make-toggle): Fix macro.
(global-map, yank-menu):
* textmodes/ispell.el (ispell-menu-map):
* net/eudc.el (eudc-tools-menu):
* international/mule-cmds.el (describe-language-environment-map)
(setup-language-environment-map, set-coding-system-map)
(mule-menu-keymap):
* vc-hooks.el (vc-menu-entry, vc-menu-map):
* replace.el (occur-mode-map):
* pcvs-defs.el (cvs-global-menu): Purecopy names and tooltips.

* bindings.el (propertized-buffer-identification): Purecopy
tooltip text.

14 years ago(math-read-number, math-read-number-simple): Use `save-match-data'.
Jay Belanger [Fri, 23 Oct 2009 01:40:13 +0000 (01:40 +0000)]
(math-read-number, math-read-number-simple): Use `save-match-data'.

14 years ago* simple.el (normal-erase-is-backspace-mode): Use input-decode-map
Stefan Monnier [Thu, 22 Oct 2009 19:31:43 +0000 (19:31 +0000)]
* simple.el (normal-erase-is-backspace-mode): Use input-decode-map
rather than fiddling with global-map bindings, since it should only
affect per-terminal settings.
See http://bugs.gentoo.org/show_bug.cgi?id=289709.

14 years ago(completion-table-with-terminator): Allow to specify the terminator-regexp.
Stefan Monnier [Thu, 22 Oct 2009 16:14:49 +0000 (16:14 +0000)]
(completion-table-with-terminator): Allow to specify the terminator-regexp.

14 years ago(switch-to-completions): Look for *Completions* in other frames as well.
Stefan Monnier [Thu, 22 Oct 2009 15:27:17 +0000 (15:27 +0000)]
(switch-to-completions): Look for *Completions* in other frames as well.

14 years agoAllow the use of completion-tables.
Stefan Monnier [Thu, 22 Oct 2009 15:17:48 +0000 (15:17 +0000)]
Allow the use of completion-tables.
(pcomplete-std-complete): New command.
(pcomplete-dirs-or-entries): Use a single call to pcomplete-entries.
(pcomplete--here): Use a function for `form' rather than an expression,
so it can be byte-compiled.
(pcomplete-here, pcomplete-here*): Adjust accordingly.
Add edebug declaration.
(pcomplete-show-completions): Remove unused var `curbuf'.
(pcomplete-do-complete, pcomplete-stub):
Don't assume `completions' is a list of strings any more.

14 years agoAdd missing bug references.
Juanma Barranquero [Thu, 22 Oct 2009 09:42:22 +0000 (09:42 +0000)]
Add missing bug references.

14 years agoAdd missing entry.
Juanma Barranquero [Thu, 22 Oct 2009 09:40:54 +0000 (09:40 +0000)]
Add missing entry.

14 years ago* find-dired.el (find-name-arg): Fix typo in docstring.
Juanma Barranquero [Thu, 22 Oct 2009 07:43:19 +0000 (07:43 +0000)]
* find-dired.el (find-name-arg): Fix typo in docstring.

14 years ago(pcomplete/kill): Don't abuse pcomplete-entries.
Stefan Monnier [Thu, 22 Oct 2009 03:35:11 +0000 (03:35 +0000)]
(pcomplete/kill): Don't abuse pcomplete-entries.
(pcmpl-linux-fs-types): Same, and update to new modules layout.

14 years ago(pcmpl-gnu-makefile-names): Use a single call to pcomplete-entries.
Stefan Monnier [Thu, 22 Oct 2009 03:25:54 +0000 (03:25 +0000)]
(pcmpl-gnu-makefile-names): Use a single call to pcomplete-entries.

14 years ago(comint-read-input-ring, comint-write-input-ring)
Stefan Monnier [Thu, 22 Oct 2009 03:24:31 +0000 (03:24 +0000)]
(comint-read-input-ring, comint-write-input-ring)
(comint-substitute-in-file-name)
(comint-dynamic-complete-as-filename)
(comint-dynamic-simple-complete)
(comint-dynamic-list-filename-completions)
(comint-dynamic-list-completions)
(comint-redirect-results-list-from-process): Minor simplifications.

14 years ago* net/dns.el: Add "Keywords: comm", as per net/net-utils.el.
Kevin Ryde [Wed, 21 Oct 2009 22:58:58 +0000 (22:58 +0000)]
* net/dns.el: Add "Keywords: comm", as per net/net-utils.el.

14 years ago* emacs-lisp/checkdoc.el (checkdoc-file-comments-engine): When
Kevin Ryde [Wed, 21 Oct 2009 22:06:40 +0000 (22:06 +0000)]
* emacs-lisp/checkdoc.el (checkdoc-file-comments-engine): When
inserting ";;; Code" put it before any ";;;###autoload" cookie on
the first form.  And insert a blank line after ";;; Code" since
that's usual style.  (My Bug#4612.)

14 years ago(checkdoc-file-comments-engine): When
Kevin Ryde [Wed, 21 Oct 2009 22:05:34 +0000 (22:05 +0000)]
(checkdoc-file-comments-engine): When
inserting ";;; Code" put it before any ";;;###autoload" cookie on
the first form.  And insert a blank line after ";;; Code" since
that's usual style.  (My Bug#4612.)

14 years ago(doprnt): Fix overflow check.
Andreas Schwab [Wed, 21 Oct 2009 21:28:59 +0000 (21:28 +0000)]
(doprnt): Fix overflow check.

14 years ago* minibuffer.el (completion-table-with-terminator): Properly implement
Stefan Monnier [Wed, 21 Oct 2009 20:03:57 +0000 (20:03 +0000)]
* minibuffer.el (completion-table-with-terminator): Properly implement
boundaries, in case `terminator' appears in the suffix.
(completion--embedded-envvar-table): Don't return boundaries if
there's no valid completion.  Simplify.
(completion-file-name-table): New completion table extracted from
completion--file-name-table.
(completion--file-name-table): Use it.
(read-file-name-predicate): Declare obsolete.
(read-file-name): Use the pred arg i.s.o read-file-name-predicate.
* vc-bzr.el (vc-bzr-revision-completion-table): Use the new
completion-file-name-table, and use the `pred' argument.
* files.el (locate-file-completion-table): Use the `pred' arg rather
than read-file-name-predicate.
(abbreviate-file-name): Use \` rather than ^ for BOS.

14 years ago* xterm.c (x_term_init): Remove XSynchronize call done for debugging.
Jan Djärv [Wed, 21 Oct 2009 19:15:57 +0000 (19:15 +0000)]
* xterm.c (x_term_init): Remove XSynchronize call done for debugging.

14 years ago(vc-deduce-fileset): Undo previous change, do not tell
Dan Nicolaescu [Wed, 21 Oct 2009 19:03:32 +0000 (19:03 +0000)]
(vc-deduce-fileset): Undo previous change, do not tell
vc-responsible-backend to register, it causes problems.

14 years agoDon't require help-mode (to avoid bootstrap issues).
Stefan Monnier [Wed, 21 Oct 2009 18:54:55 +0000 (18:54 +0000)]
Don't require help-mode (to avoid bootstrap issues).

14 years agoFix resize due to font change on a maximized/xmonad-controlled frame.
Jan Djärv [Wed, 21 Oct 2009 18:29:46 +0000 (18:29 +0000)]
Fix resize due to font change on a maximized/xmonad-controlled frame.

* xterm.h (x_wait_for_event): Declare it.

* xterm.c (pending_event_wait): New variable.
(handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
see pending_event_wait.eventtype.
(handle_one_xevent): Don't change gravity when parent changes.
(x_new_font): Call change_frame_size with new rows/columns before we try
to resize the frame.
(x_wait_for_event): New function.
(x_set_window_size_1): Don't change gravity unless change_gravity is set.
Call XResizeWindow with FRAME_OUTER_WINDOW.  If we are visible,
don't change frame size, instead wait for the ConfigureNotify.
(x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
(x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
(x_initialize): Initialize pending_event_wait.

* xmenu.c (set_frame_menubar): Add internal border width to menu bar
size.

* widget.c (EmacsFrameSetValues): Add comment.
(EmacsFrameSetCharSize): Just call x_set_window_size.

* gtkutil.c (xg_frame_set_char_size): Flush events and call
x_wait_for_event.
(flush_and_sync): Removed again.
(xg_get_font_name): Suggest monospace if no previous font is known.

14 years ago* cedet/semantic/bovine/c.el (semantic-c-debug-mode-init)
Chong Yidong [Wed, 21 Oct 2009 14:04:00 +0000 (14:04 +0000)]
* cedet/semantic/bovine/c.el (semantic-c-debug-mode-init)
(semantic-c-debug-mode-init-pch): New functions.
(semantic-c-debug-mode-init-last-mode): New var.
(semantic-c-parse-lexical-token): Use them.

* cedet/semantic/lex-spp.el (semantic-lex-spp-anlyzer-do-replace):
When extracting the argument list, limit only by point-max.

14 years ago* net/tramp-smb.el (tramp-smb-get-stat-capability): New defun.
Michael Albinus [Wed, 21 Oct 2009 11:27:59 +0000 (11:27 +0000)]
* net/tramp-smb.el (tramp-smb-get-stat-capability): New defun.
(tramp-smb-handle-file-attributes): Use it.
(tramp-smb-do-file-attributes-with-stat): Don't raise an error.
(tramp-smb-handle-insert-directory): Use `mapc' rather than
`mapcar'.  Use `tramp-smb-get-stat-capability'.  Add
`dired-filename' text properties.
(tramp-smb-get-cifs-capabilities): Apply `save-match-data'.
(tramp-smb-maybe-open-connection): Simplify check for smbclient
version.

14 years agoFix typo.
Juanma Barranquero [Tue, 20 Oct 2009 14:03:48 +0000 (14:03 +0000)]
Fix typo.

14 years ago(char_resolve_modifier_mask): Don't resolve meta to the
Stefan Monnier [Tue, 20 Oct 2009 13:48:37 +0000 (13:48 +0000)]
(char_resolve_modifier_mask): Don't resolve meta to the
8th bit, since that only made since in the ASCII world (bug#4751).

14 years agoAdd Bug#.
YAMAMOTO Mitsuharu [Tue, 20 Oct 2009 10:21:25 +0000 (10:21 +0000)]
Add Bug#.

14 years ago(XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
YAMAMOTO Mitsuharu [Tue, 20 Oct 2009 10:03:46 +0000 (10:03 +0000)]
(XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
processing pending events when event is filtered for input method.

14 years agoFix typo.
Juanma Barranquero [Tue, 20 Oct 2009 08:06:02 +0000 (08:06 +0000)]
Fix typo.

14 years ago* fns.c: Add #endif accidentally removed in previous change.
Juanma Barranquero [Tue, 20 Oct 2009 07:59:57 +0000 (07:59 +0000)]
* fns.c: Add #endif accidentally removed in previous change.

14 years ago(gnus-remove-overlays): eval-and-compile.
Katsumi Yamaoka [Tue, 20 Oct 2009 05:12:15 +0000 (05:12 +0000)]
(gnus-remove-overlays): eval-and-compile.

14 years ago(read-key-delay): Reduce to 0.01.
Stefan Monnier [Tue, 20 Oct 2009 01:29:17 +0000 (01:29 +0000)]
(read-key-delay): Reduce to 0.01.
(read-key): Use read-key-sequence-vector to avoid turning M-t into 244
(bug#4751).

14 years agoSynch with Gnus trunk:
Katsumi Yamaoka [Mon, 19 Oct 2009 23:21:04 +0000 (23:21 +0000)]
Synch with Gnus trunk:
2009-10-19  Katsumi Yamaoka  <yamaoka@jpl.org>

 * gnus-sum.el (gnus-summary-show-thread): Remove useless goto-char.
 (gnus-summary-show-thread, gnus-summary-hide-thread): Indent.

2009-10-16  Katsumi Yamaoka  <yamaoka@jpl.org>

 * gnus.el (gnus-overlay-get): New alias to overlay-get.
 (gnus-overlays-in): New alias to overlays-in.

 * gnus-sum.el (gnus-remove-overlays): Use gnus-overlays-in,
 gnus-overlay-get, and gnus-delete-overlay.
 (gnus-summary-show-thread): Make it work as well for systems in which
 next-single-char-property-change is not available.
 (gnus-summary-hide-thread): Use gnus-make-overlay and gnus-overlay-put.

2009-10-14  Reiner Steib  <Reiner.Steib@gmx.de>

 * gnus-sum.el (gnus-remove-overlays): Add doc string and alias.

2009-10-14  Dan Nicolaescu  <dann@ics.uci.edu>

 * gnus-sum.el (gnus-remove-overlays): Compatibility code for Emacs 21
 and XEmacs that don't have `remove-overlays'.

2009-10-14  Stefan Monnier  <monnier@iro.umontreal.ca>

 * gnus-sum.el (gnus-summary-mode, gnus-summary-show-all-threads)
 (gnus-summary-show-thread, gnus-summary-hide-thread): Get rid of
 selective display.  Use overlays instead.

14 years ago(vac-dec-vms): Remove, not supported anymore.
Dan Nicolaescu [Mon, 19 Oct 2009 22:48:52 +0000 (22:48 +0000)]
(vac-dec-vms): Remove, not supported anymore.

14 years ago* fns.c: Remove code for unsupported system: MAC_OS.
Dan Nicolaescu [Mon, 19 Oct 2009 22:33:42 +0000 (22:33 +0000)]
* fns.c: Remove code for unsupported system: MAC_OS.
* image.c: Likewise.  Include setjmp.h.

14 years ago(x_create_toolkit_scroll_bar): Don't allocate color for
Jan Djärv [Mon, 19 Oct 2009 18:08:53 +0000 (18:08 +0000)]
(x_create_toolkit_scroll_bar): Don't allocate color for
pixel -1 (bug #4742).

14 years ago* nsterm.m:
Dan Nicolaescu [Mon, 19 Oct 2009 16:58:18 +0000 (16:58 +0000)]
* nsterm.m:
* nsselect.m:
* nsmenu.m:
* nsimage.m:
* nsfont.m:
* nsfns.m: Include setjmp.h.  (Bug#4643)

14 years ago(function-key-map): Map C-@ to C-SPC if C-@ is unbound.
Stefan Monnier [Mon, 19 Oct 2009 15:03:24 +0000 (15:03 +0000)]
(function-key-map): Map C-@ to C-SPC if C-@ is unbound.

14 years ago* info.el (Info-complete-menu-item): Handle `boundaries' explicitly.
Stefan Monnier [Mon, 19 Oct 2009 13:47:10 +0000 (13:47 +0000)]
* info.el (Info-complete-menu-item): Handle `boundaries' explicitly.
(Info-menu): Remove unused vars `last' and `completions'.
(Info-index-nodes): Remove unused var `node'.

14 years ago(Info-complete-menu-item): Use complete-with-action.
Stefan Monnier [Mon, 19 Oct 2009 13:29:34 +0000 (13:29 +0000)]
(Info-complete-menu-item): Use complete-with-action.

14 years ago* process.c (create_pty): Remove conditionals for no longer
Dan Nicolaescu [Mon, 19 Oct 2009 05:13:31 +0000 (05:13 +0000)]
* process.c (create_pty): Remove conditionals for no longer
supported systems: UNIPLUS and RTU.

14 years ago* xterm.c:
Dan Nicolaescu [Mon, 19 Oct 2009 05:11:07 +0000 (05:11 +0000)]
* xterm.c:
* xfns.c: Remove always true condition: XtSpecificationRelease >= 5.

14 years agoMake vc-annotate work through copies and renames.
Dan Nicolaescu [Mon, 19 Oct 2009 05:04:22 +0000 (05:04 +0000)]
Make vc-annotate work through copies and renames.
* vc-annotate.el (vc-annotate-extract-revision-at-line): Return
the file name too.
(vc-annotate-revision-at-line)
(vc-annotate-find-revision-at-line)
(vc-annotate-revision-previous-to-line)
(vc-annotate-show-log-revision-at-line): Update to get the file
name from vc-annotate-extract-revision-at-line.
(vc-annotate-show-diff-revision-at-line-internal): Change the
argument to mean whether to show a file diff or not.  Get the file
name from vc-annotate-extract-revision-at-line.
(vc-annotate-show-diff-revision-at-line): Update
vc-annotate-show-diff-revision-at-line call.
(vc-annotate-warp-revision): Add an optional file argument.

* vc-git.el (vc-git-annotate-command): Pass -C -C to the blame command.
(vc-git-annotate-extract-revision-at-line): Also return the file
name if found.

* vc-hg.el (vc-hg-annotate-command): Pass --follow to the annotate
command.  Remove unused code.
(vc-hg-annotate-re): Update to match --follow output.
(vc-hg-annotate-extract-revision-at-line): Also return the file
name if found.

* vc.el: Update annotate-extract-revision-at-line documentation.

14 years ago* alloc.c: Do not define struct catchtag.
Dan Nicolaescu [Mon, 19 Oct 2009 04:27:09 +0000 (04:27 +0000)]
* alloc.c: Do not define struct catchtag.
* eval.c: Move struct catchtag definition ...
* lisp.h: ... here.

* image.c: Move png.h #include earlier to avoid warnings.

* xterm.c:
* xsmfns.c:
* xselect.c:
* xrdb.c:
* xmenu.c:
* xftfont.c:
* xfont.c:
* xfns.c:
* xfaces.c:
* xdisp.c:
* window.c:
* widget.c:
* w32xfns.c:
* w32uniscribe.c:
* w32term.c:
* w32select.c:
* w32reg.c:
* w32proc.c:
* w32menu.c:
* w32inevt.c:
* w32heap.c:
* w32font.c:
* w32fns.c:
* w32console.c:
* w32.c:
* w16select.c:
* vm-limit.c:
* unexsol.c:
* unexec.c:
* unexcw.c:
* unexaix.c:
* undo.c:
* tparam.c:
* textprop.c:
* terminfo.c:
* terminal.c:
* termcap.c:
* term.c:
* syntax.c:
* sound.c:
* sheap.c:
* search.c:
* scroll.c:
* region-cache.c:
* regex.c:
* ralloc.c:
* process.c:
* print.c:
* msdos.c:
* minibuf.c:
* menu.c:
* marker.c:
* macros.c:
* keymap.c:
* keyboard.c:
* intervals.c:
* insdel.c:
* indent.c:
* gtkutil.c:
* ftxfont.c:
* ftfont.c:
* fringe.c:
* frame.c:
* fontset.c:
* font.c:
* fns.c:
* floatfns.c:
* filelock.c:
* fileio.c:
* emacs.c:
* editfns.c:
* dosfns.c:
* doprnt.c:
* doc.c:
* dispnew.c:
* dired.c:
* dbusbind.c:
* data.c:
* composite.c:
* coding.c:
* cmds.c:
* cm.c:
* chartab.c:
* charset.c:
* character.c:
* ccl.c:
* category.c:
* casetab.c:
* casefiddle.c:
* callproc.c:
* callint.c:
* bytecode.c:
* buffer.c:
* atimer.c: Include setjmp.h.  (Bug#4643)

* xlwmenu.c:
* lwlib.c:
* lwlib-utils.c:
* lwlib-Xm.c:
* lwlib-Xlw.c:
* lwlib-Xaw.c: Include setjmp.h.

14 years ago* net/browse-url.el (browse-url): Identify alist with "consp and
Kevin Ryde [Sun, 18 Oct 2009 23:56:07 +0000 (23:56 +0000)]
* net/browse-url.el (browse-url): Identify alist with "consp and
not functionp" and let all other things go down the `apply' leg,
as suggested by Stefan.  (Further to bug#4531.)

14 years ago(browse-url): Identify alist with "consp and
Kevin Ryde [Sun, 18 Oct 2009 23:55:16 +0000 (23:55 +0000)]
(browse-url): Identify alist with "consp and
not functionp" and let all other things go down the `apply' leg,
as suggested by Stefan.  (Further to bug#4531.)

14 years ago* ibuffer.el (ibuffer-confirm-operation-on): Correction to error
Kevin Ryde [Sun, 18 Oct 2009 23:12:02 +0000 (23:12 +0000)]
* ibuffer.el (ibuffer-confirm-operation-on): Correction to error
re-throw, `err' is a pair not a list so can't use apply (Bug#4740).