1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-04 20:27:45 +00:00

94126 Commits

Author SHA1 Message Date
Kenichi Handa
f2b38ae6dd quail/japanese.el (quail-japanese-update-translation): Fix handling of invalid key. 2010-08-28 15:03:00 +09:00
Michael Albinus
217876c9b0 Sync with Tramp 2.1.19.
* tramp.texi (Inline methods, Default Method): Mention
`tramp-inline-compress-start-size'.  Remove "kludgy" phrase.  Remove
remark about doubled "-t" argument.
(Auto-save and Backup): Remove reference to Emacs 21.
(Filename Syntax): Describe port numbers.
(Frequently Asked Questions): Adapt supported (X)Emacs versions.  Adapt
supported MS Windows versions.  Remove obsolete URL.  Recommend "sshx"
and "scpx" for echoing shells.  Use the $() syntax, texi2dvi reports
errors with the backquotes.
(External packages): File attributes cache flushing for asynchronous
processes.
(Traces and Profiles): Describe verbose level 9.

* trampver.texi: Update release number.
2010-08-26 21:40:13 +02:00
Michael Albinus
20b8ac83f3 Sync with Tramp 2.1.19.
* net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-reporter-dump-variable, tramp-load-report-modules)
(tramp-append-tramp-buffers): Use `tramp-compat-funcall'.
(tramp-bug): Recommend setting of `tramp-verbose' to 9.

* net/tramp-compat.el (top): Do not autoload
`tramp-handle-file-remote-p'.  Load tramp-util.el and tramp-vc.el
only when `start-file-process' is not bound.
(byte-compile-not-obsolete-vars): Define if not bound.
(tramp-compat-funcall): New defmacro.
(tramp-compat-line-beginning-position)
(tramp-compat-line-end-position)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-file-attributes)
(tramp-compat-copy-file, tramp-compat-copy-directory)
(tramp-compat-delete-file, tramp-compat-delete-directory)
(tramp-compat-number-sequence, tramp-compat-process-running-p):
Use it.
(tramp-advice-file-expand-wildcards): Do not use
`tramp-handle-file-remote-p'.
(tramp-compat-make-temp-file): Simplify fallback implementation.
(tramp-compat-copy-file): Add PRESERVE-SELINUX-CONTEXT.
(tramp-compat-copy-tree): Remove function.
(tramp-compat-delete-file): New defun.
(tramp-compat-delete-directory): Provide implementation for older
Emacsen.
(tramp-compat-file-attributes): Handle only
`wrong-number-of-arguments' error.

* net/tramp-fish.el (tramp-fish-handle-copy-file): Add
PRESERVE_SELINUX_CONTEXT.
(tramp-fish-handle-delete-file): Add TRASH arg.
(tramp-fish-handle-directory-files-and-attributes):
Do not use `tramp-fish-handle-file-attributes.
(tramp-fish-handle-file-local-copy)
(tramp-fish-handle-insert-file-contents)
(tramp-fish-maybe-open-connection): Use `with-progress-reporter'.

* net/tramp-gvfs.el (top): Require url-util.
(tramp-gvfs-mount-point): Remove.
(tramp-gvfs-file-name-handler-alist): Add `file-selinux-context'
and `set-file-selinux-context'.
(tramp-gvfs-stringify-dbus-message, tramp-gvfs-send-command)
(tramp-gvfs-handle-file-selinux-context)
(tramp-gvfs-handle-set-file-selinux-context): New defuns.
(with-tramp-dbus-call-method): Format trace message.
(tramp-gvfs-handle-copy-file): Handle PRESERVE-SELINUX-CONTEXT.
(tramp-gvfs-handle-copy-file, tramp-gvfs-handle-rename-file):
Implement backup call, when operation on local files fails.  Use
progress reporter.  Flush properties of changed files.
(tramp-gvfs-handle-delete-file): Add TRASH arg.  Use
`tramp-compat-delete-file'.
(tramp-gvfs-handle-expand-file-name): Expand "~/".
(tramp-gvfs-handle-make-directory): Make more traces.
(tramp-gvfs-handle-write-region): Protect deleting tmpfile.
(tramp-gvfs-url-file-name): Hexify file name in url.
(tramp-gvfs-fuse-file-name): Take also prefix (like dav shares)
into account for the resulting file name.
(tramp-gvfs-handler-askquestion): Preserve current message, in
order to let progress reporter continue afterwards.  (Bug#6257)
Return dummy mountpoint, when the answer is "no".  See
`tramp-gvfs-maybe-open-connection'.
(tramp-gvfs-handler-mounted-unmounted)
(tramp-gvfs-connection-mounted-p): Test also for new mountspec
attribute "default_location".  Set "prefix" property.  Handle
default-location.
(tramp-gvfs-mount-spec): Return both prefix and mountspec.
(tramp-gvfs-maybe-open-connection): Test, whether mountpoint
exists.  Raise an error, if not (due to a corresponding answer
"no" in interactive questions, for example). Use
`tramp-compat-funcall'.

* net/tramp-imap.el (top): Autoload `epg-make-context'.
(tramp-imap-handle-copy-file): Add PRESERVE-SELINUX-CONTEXT.
(tramp-imap-do-copy-or-rename-file)
(tramp-imap-handle-insert-file-contents)
(tramp-imap-handle-file-local-copy): Use `with-progress-reporter'.
(tramp-imap-handle-delete-file): Add TRASH arg.

* net/tramp-smb.el (tramp-smb-handle-copy-file): Add
PRESERVE-SELINUX-CONTEXT.
(tramp-smb-handle-copy-file)
(tramp-smb-handle-file-local-copy, tramp-smb-handle-rename-file)
(tramp-smb-handle-write-region, tramp-smb-maybe-open-connection):
Use `with-progress-reporter'.
(tramp-smb-handle-delete-file): Add TRASH arg.

* net/tramp.el (tramp-methods): Move hostname to the end in all
ssh `tramp-login-args'.  Add `tramp-async-args' attribute where
appropriate.
(tramp-verbose): Describe verbose level 9.
(tramp-completion-function-alist)
(tramp-file-name-regexp, tramp-chunksize)
(tramp-local-coding-commands, tramp-remote-coding-commands)
(with-connection-property, tramp-completion-mode-p)
(tramp-action-process-alive, tramp-action-out-of-band)
(tramp-check-for-regexp, tramp-file-name-p, tramp-equal-remote)
(tramp-exists-file-name-handler): Fix docstring.
(tramp-remote-process-environment): Use `format' instead of
`concat'.  Protect version string by apostroph.
(tramp-shell-prompt-pattern): Do not use a shy group in case of
XEmacs.
(tramp-file-name-regexp-unified)
(tramp-completion-file-name-regexp-unified): On W32 systems, do
not regard the volume letter as remote filename.  (Bug#5447)
(tramp-perl-file-attributes)
(tramp-perl-directory-files-and-attributes): Don't pass "$3".
(tramp-vc-registered-read-file-names): Read input as
here-document, otherwise the command could exceed maximum length
of command line.
(tramp-file-name-handler-alist): Add `file-selinux-context' and
`set-file-selinux-context'.
(tramp-debug-message): Add `tramp-compat-funcall' to ignored
backtrace functions.
(tramp-error-with-buffer): Don't show the connection buffer when
we are in completion mode.
(tramp-progress-reporter-update, tramp-remote-selinux-p)
(tramp-handle-file-selinux-context)
(tramp-handle-set-file-selinux-context, tramp-process-sentinel)
(tramp-connectable-p, tramp-open-shell, tramp-get-remote-trash):
New defuns.
(with-progress-reporter): New defmacro.
(tramp-debug-outline-regexp): New defconst.
(top, tramp-rfn-eshadow-setup-minibuffer)
(tramp-rfn-eshadow-update-overlay, tramp-handle-set-file-times)
(tramp-handle-dired-compress-file, tramp-handle-shell-command)
(tramp-completion-mode-p, tramp-check-for-regexp)
(tramp-open-connection-setup-interactive-shell)
(tramp-compute-multi-hops, tramp-read-passwd, tramp-clear-passwd)
(tramp-time-diff, tramp-coding-system-change-eol-conversion)
(tramp-set-process-query-on-exit-flag, tramp-unload-tramp):
Use `tramp-compat-funcall'.
(tramp-handle-make-symbolic-link): Flush file properties.
(tramp-handle-load, tramp-handle-file-local-copy)
(tramp-handle-insert-file-contents, tramp-handle-write-region)
(tramp-handle-vc-registered, tramp-maybe-send-script)
(tramp-find-shell): Use `with-progress-reporter'.
(tramp-do-file-attributes-with-stat): Add space in format string,
in order to work around a bug in pdksh.  Reported by Gilles Pion
<gpion@lfdj.com>.
(tramp-handle-verify-visited-file-modtime): Do not send a command
when the connection is not established.
(tramp-handle-set-file-times): Simplify the check for utc.
(tramp-handle-directory-files-and-attributes)
(tramp-get-remote-path): Use `copy-tree'.
(tramp-completion-handle-file-name-all-completions): Ensure, that
non remote files are still checked.  Oops.
(tramp-handle-copy-file, tramp-do-copy-or-rename-file): Handle
PRESERVE-SELINUX-CONTEXT.
(tramp-do-copy-or-rename-file): Add progress reporter.
(tramp-do-copy-or-rename-file-directly): Do not use
`tramp-handle-file-remote-p'.
(tramp-do-copy-or-rename-file-out-of-band):
Use `tramp-compat-delete-directory'.
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-compute-multi-hops, tramp-maybe-open-connection):
Use `format-spec-make'.
(tramp-handle-delete-file): Add TRASH arg.
(tramp-handle-dired-uncache): Flush directory cache, not only file
cache.
(tramp-handle-expand-file-name)
(tramp-completion-handle-file-name-all-completions)
(tramp-completion-handle-file-name-completion): Use
`tramp-connectable-p'.
(tramp-handle-start-file-process): Set connection property "vec".
Use it, in order to invalidate file caches.  Check only for
`remote-tty' process property.
Implement tty setting.  (Bug#4604, Bug#6360)
(tramp-file-name-for-operation): Add `call-process-region' and
`set-file-selinux-context'.
(tramp-find-foreign-file-name-handler)
(tramp-advice-make-auto-save-file-name)
(tramp-set-auto-save-file-modes): Remove superfluous check for
`stringp'.  This is done inside `tramp-tramp-file-p'.
(tramp-file-name-handler): Trace 'quit.  Catch the error for some
operations when we are in completion mode.  This gives the user
the chance to correct the file name in the minibuffer.
(tramp-completion-mode-p): Use `non-essential'.
(tramp-handle-file-name-all-completions): Backward/ XEmacs
compatibility: Use `completion-ignore-case' if
`read-file-name-completion-ignore-case' does not exist.
(tramp-get-debug-buffer): Use `tramp-debug-outline-regexp'.
(tramp-find-shell, tramp-open-connection-setup-interactive-shell):
`tramp-open-shell'.
(tramp-action-password): Hide password prompt before next run.
(tramp-process-actions): Widen connection buffer for the trace.
(tramp-open-connection-setup-interactive-shell): Set `remote-tty'
process property.  Trace stty settings if `tramp-verbose' >= 9.
Apply workaround for IRIX64 bug.  Move argument of last
`tramp-send-command' where it belongs to.
(tramp-maybe-open-connection): Use `async-args' and `gw-args' in
front of `login-args'.
(tramp-get-ls-command, tramp-get-ls-command-with-dired): Run tests
on "/dev/null" instead of "/".
(tramp-get-ls-command-with-dired): Make test for "--dired"
stronger.
(tramp-set-auto-save-file-modes): Adapt version check.
(tramp-set-process-query-on-exit-flag): Fix wrong parentheses.
(tramp-handle-process-file): Call the program in a subshell, in
order to preserve working directory.
(tramp-handle-shell-command): Don't use hard-wired "/bin/sh" but
`tramp-remote-sh' from `tramp-methods'.
(tramp-get-ls-command): Make test for "--color=never" stronger.
(tramp-check-for-regexp): Use (forward-line 1).

* net/trampver.el: Update release number.

* net/tramp-gvfs.el (tramp-gvfs-handle-copy-file): Do not pass
empty argument to gvfs-copy.

* net/tramp-compat.el (tramp-compat-delete-file): Rewrite to
handle new TRASH arg of `delete-file'.

* net/tramp.el (tramp-handle-insert-directory): Don't use
`forward-word', its default syntax could be changed.

Implement compression for inline methods.

* net/tramp.el (tramp-inline-compress-start-size): New defcustom.
(tramp-copy-size-limit): Allow also nil.
(tramp-inline-compress-commands): New defconst.
(tramp-find-inline-compress, tramp-get-inline-compress)
(tramp-get-inline-coding): New defuns.
(tramp-get-remote-coding, tramp-get-local-coding): Remove,
replaced by `tramp-get-inline-coding'.
(tramp-handle-file-local-copy, tramp-handle-write-region)
(tramp-method-out-of-band-p): Use `tramp-get-inline-coding'.

Detect ssh 'ControlMaster' argument automatically in some cases.

* net/tramp.el (tramp-detect-ssh-controlmaster): New defun.
(tramp-default-method): Use it.

* net/tramp.el (tramp-file-name-for-operation):
Add file-selinux-context.
2010-08-26 21:23:02 +02:00
Łukasz Stelmach
d5720b4c5a play/cookie1.el (read-cookie): Fix off-by-one error (bug#6921). 2010-08-26 17:33:52 +02:00
Chong Yidong
4f55829755 * emacs.1: Mention "maximized" value for the "fullscreen" X resource. 2010-08-26 11:14:55 -04:00
Chong Yidong
8d9f429164 * simple.el (beginning-of-buffer, end-of-buffer): Doc fix (Bug#6907). 2010-08-26 11:09:45 -04:00
Chris Foote
9027027d08 * progmodes/python.el (python-block-pairs): Allow use of "finally" with "else" (Bug#3991). 2010-08-22 20:44:55 -04:00
Alex Harsanyi
d8f0aff6cd * emacs3.py: Import imp module and use it (Bug#5756). 2010-08-22 19:50:38 -04:00
Leo Liu
c00725d796 Handle multiple entries in some RCIRC commands (Bug#6894).
* lisp/net/rcirc.el (rcirc-add-or-remove): Accept a list of elements.
(ignore, bright, dim, keyword): Split list of nicknames before
passing to rcirc-add-or-remove.
2010-08-22 18:44:55 -04:00
Chong Yidong
bc7d7ea63b Doc fix for define-minor-mode (Bug#6880).
* doc/lispref/modes.texi (Defining Minor Modes): Doc fix (Bug#6880).

* emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix (Bug#6880).
2010-08-22 15:30:26 -04:00
Chong Yidong
41a20de9f4 merge whitespace.el change from trunk 2010-08-22 00:12:25 -04:00
Leo Liu
e014333552 Fix buffer-list rename&refresh after after killing a buffer in ido.
* lisp/ido.el: Revert Óscar's.
(ido-kill-buffer-at-head): Exit the minibuffer with ido-exit=refresh.
Remember the buffers at head, rather than their name.
* lisp/iswitchb.el (iswitchb-kill-buffer): Re-make the list.
2010-08-21 15:35:27 +02:00
Stefan Monnier
8f081e96de * progmodes/make-mode.el (makefile-fill-paragraph): Account for the
extra backslash added to each line.

Fixes: debbugs:6890
2010-08-21 11:19:38 +02:00
Stefan Monnier
3ff7862473 * subr.el (read-key): Don't echo keystrokes.
Fixes: debbugs:6883
2010-08-21 10:56:54 +02:00
Glenn Morris
50dd7bc6b7 * doc/emacs/misc.texi (Amusements): Mention bubbles and animate. 2010-08-20 19:14:07 -07:00
Glenn Morris
635f7282c4 * lisp/menu-bar.el (menu-bar-games-menu): Add landmark. 2010-08-20 19:11:34 -07:00
Glenn Morris
9130a2d65e Minor align-regexp fix.
* lisp/align.el (align-regexp): Make group and spacing arguments use
the interactive defaults when non-interactive.  (Bug#6698)
2010-08-20 00:33:06 -07:00
Glenn Morris
fb89a65490 Fix rmail-forward with non-sendmail sending function.
* lisp/mail/rmail.el (rmail-forward): Replace mail-text-start with its
expansion, so as not to need sendmail.
(mail-text-start): Remove declaration.
(rmail-retry-failure): Require sendmail.
2010-08-20 00:11:35 -07:00
Chong Yidong
96b1842de8 * objects.texi (Bool-Vector Type): Minor definition tweak (Bug#6878). 2010-08-19 19:23:13 -04:00
Stefan Monnier
186e86dbac * lisp/subr.el (read-key): Don't hide the menu-bar entries.
Fixes: debbugs:6881
2010-08-19 16:37:31 +02:00
Juanma Barranquero
9b3d6a42ef lisp/ChangeLog: Remove merge markers. 2010-08-19 01:32:39 +02:00
Michael Albinus
a67e6f1334 * progmodes/flymake.el (flymake-start-syntax-check-process): Use
`start-file-process' in order to let it run also on remote hosts.
2010-08-18 20:24:52 +02:00
Kenichi Handa
f3cc64f808 files.el: Add word-wrap as safe local variable. 2010-08-18 17:07:58 +09:00
Glenn Morris
bb25c8d7a1 * lisp/woman.el (woman-translate): Case matters. (Bug#6849) 2010-08-17 19:33:13 -07:00
Andreas Schwab
b72e07172e * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
instead of SAFE_ALLOCA.
2010-08-17 23:07:50 +02:00
Chong Yidong
3a7a912990 Avoid stack overflow in let, eval, and apply (Bug#6214).
* eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA (Bug#6214).
2010-08-17 12:34:28 -04:00
Andreas Schwab
05a9766a14 * quail/vntelex.el ("vietnamese-telex"): Doc fix. 2010-08-15 11:36:19 +02:00
Andreas Schwab
b514a395cc * quail/georgian.el: Remove extra backslashes. 2010-08-15 11:34:53 +02:00
Chong Yidong
a4aae1a532 * simple.el (kill-region): Doc fix (Bug#6787). 2010-08-14 19:21:40 -04:00
Andreas Schwab
e099e659e1 Avoid mismatching parens
* quail/arabic.el: Quote [ and ].
* quail/latin-ltx.el: Likewise.
2010-08-14 10:20:08 +02:00
Andreas Schwab
086852797e * quail/greek.el ("greek", "greek-postfix"): Change string to
character.
2010-08-14 10:00:34 +02:00
Jan D
983b830220 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S. 2010-08-14 08:42:09 +02:00
Glenn Morris
ec1339fbce * lisp/calendar/diary-lib.el: Bump custom :version for previous change. 2010-08-13 19:23:56 -07:00
Glenn Morris
721dce172b Minor diary-lib.el fix.
* lisp/calendar/diary-lib.el (diary-header-line-format):
Fit it to the window, not the frame.
2010-08-13 18:56:35 -07:00
Jan D
7d1b9df355 * doc.c (Fsnarf_documentation): Initialize skip_file before build-files test. 2010-08-13 12:32:37 +02:00
Kenichi Handa
e9752b3992 merge emacs-23 2010-08-13 15:35:36 +09:00
Kenichi Handa
ac14bd09e3 quail/greek.el ("greek-postfix"): Add rules for Greek style quotes. 2010-08-13 15:26:27 +09:00
Andreas Schwab
7467d0a812 * subr.el (ignore-errors): Add debug declaration. 2010-08-11 15:43:49 +02:00
Peter O'Gorman
2294b255d8 * src/s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK): New
definitions.
(HAVE_TERMIO): Remove.
2010-08-09 08:51:28 -07:00
Kenichi Handa
fd71e94970 merge emacs-23 2010-08-09 11:31:21 +09:00
Kenichi Handa
4360344208 quail/greek.el ("greek"): Add rules for Greek style quotes. 2010-08-09 11:28:25 +09:00
Geoff Gole
1fcf76afe7 * whitespace.el (whitespace-color-off): Remove post-command-hook locally. 2010-08-08 22:23:35 -04:00
Johan Bockgård
e54a107503 Fix query-replace-regexp incomplete highlighting (Bug#6808).
* replace.el (replace-highlight): Bind isearch-forward and
isearch-error, ensuring that highlighting is updated if the user
switches the search direction (Bug#6808).

* isearch.el (isearch-lazy-highlight-forward): New var.
(isearch-lazy-highlight-new-loop, isearch-lazy-highlight-search):
(isearch-lazy-highlight-update): Use it.
2010-08-08 16:55:52 -04:00
Kenichi Handa
f21a9669a4 merge trunk 2010-08-06 17:15:12 +09:00
Kenichi Handa
7a84eee5b7 Improve the encoding by compound-text-with-extensions. 2010-08-06 17:11:19 +09:00
Kenichi Handa
faa28da9b7 merge trunk 2010-08-06 12:54:13 +09:00
Juanma Barranquero
f6b55526bd * emulation/pc-select.el: Fix typos in docstrings. 2010-08-05 23:31:03 +02:00
Stefan Monnier
c613687be4 * lisp/simple.el (exchange-dot-and-mark): Mark obsolete, finally. 2010-08-04 20:04:29 +02:00
Kenichi Handa
6b4d96c2f0 Modify the coding system compound-text-with-extensions to conform to the spec of Compound Text. 2010-08-04 17:06:52 +09:00
Juanma Barranquero
9ebc731b45 which-func.el (which-func-format): Split help-echo text into lines. 2010-08-03 18:39:37 +02:00