aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJoakim Verona2013-02-27 00:03:49 +0100
committerJoakim Verona2013-02-27 00:03:49 +0100
commit96fd57d9873b5c150e2632e5a1f60a78fac65aa8 (patch)
tree48261677f3fd1ca8b442918ba7237c4991d944fc /lisp
parent6f75e5103f0b1d6395fb5b0fea2a4a9c9f4601f7 (diff)
parent3b166f0908a04456bd91a42274a42d401b79c24d (diff)
downloademacs-96fd57d9873b5c150e2632e5a1f60a78fac65aa8.tar.gz
emacs-96fd57d9873b5c150e2632e5a1f60a78fac65aa8.zip
auto upstream
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog28
-rw-r--r--lisp/emacs-lisp/bytecomp.el6
-rw-r--r--lisp/emacs-lisp/easy-mmode.el37
-rw-r--r--lisp/net/tramp-sh.el6
4 files changed, 38 insertions, 39 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d6de9baa118..c5a902d6442 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,19 @@
12013-02-26 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-sh.el (tramp-sh-handle-insert-directory): Add
4 "2>/dev/null" to the ls command, in case "en_US.utf8" is not
5 defined. POSIX environments fall back to the "C" locale then and
6 emit a warning, which shall be suppressed.
7
82013-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
9
10 * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Tweak logic.
11 (easy-mmode-set-keymap-parents): Use make-composed-keymap.
12
132013-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14
15 * emacs-lisp/bytecomp.el (byte-compile-file): Use let.
16
12013-02-25 Juri Linkov <juri@jurta.org> 172013-02-25 Juri Linkov <juri@jurta.org>
2 18
3 * replace.el (read-regexp): Let-bind `default' to the first 19 * replace.el (read-regexp): Let-bind `default' to the first
@@ -57,8 +73,8 @@
57 (tramp-default-method): Adapt check for 73 (tramp-default-method): Adapt check for
58 `tramp-ssh-controlmaster-options'. 74 `tramp-ssh-controlmaster-options'.
59 75
60 * net/tramp-sh.el (tramp-methods): Replace 76 * net/tramp-sh.el (tramp-methods):
61 `tramp-ssh-controlmaster-template' by "%c". 77 Replace `tramp-ssh-controlmaster-template' by "%c".
62 (tramp-do-copy-or-rename-file-out-of-band) 78 (tramp-do-copy-or-rename-file-out-of-band)
63 (tramp-maybe-open-connection): Use it in format spec. Ensure, 79 (tramp-maybe-open-connection): Use it in format spec. Ensure,
64 that it is applied for the first hop only. 80 that it is applied for the first hop only.
@@ -80,8 +96,8 @@
80 96
81 * net/tramp.el (tramp-tramp-file-p): Fix docstring. 97 * net/tramp.el (tramp-tramp-file-p): Fix docstring.
82 98
83 * net/tramp-sh.el (tramp-sh-handle-insert-directory): Handle 99 * net/tramp-sh.el (tramp-sh-handle-insert-directory):
84 multibyte file names. 100 Handle multibyte file names.
85 101
862013-02-22 Glenn Morris <rgm@gnu.org> 1022013-02-22 Glenn Morris <rgm@gnu.org>
87 103
@@ -104,8 +120,8 @@
104 120
1052013-02-21 Fabián Ezequiel Gallina <fgallina@cuca> 1212013-02-21 Fabián Ezequiel Gallina <fgallina@cuca>
106 122
107 * progmodes/python.el (python-info-current-defun): Enhance 123 * progmodes/python.el (python-info-current-defun):
108 match-data cluttering prevention. 124 Enhance match-data cluttering prevention.
109 125
1102013-02-21 Glenn Morris <rgm@gnu.org> 1262013-02-21 Glenn Morris <rgm@gnu.org>
111 127
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index e0837033c74..5db1793a407 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1781,15 +1781,13 @@ The value is non-nil if there were no errors, nil if errors."
1781 (when byte-compile-verbose 1781 (when byte-compile-verbose
1782 (message "Compiling %s..." filename)) 1782 (message "Compiling %s..." filename))
1783 (setq byte-compiler-error-flag nil) 1783 (setq byte-compiler-error-flag nil)
1784 (setq byte-compile-level (1+ byte-compile-level))
1785 ;; It is important that input-buffer not be current at this call, 1784 ;; It is important that input-buffer not be current at this call,
1786 ;; so that the value of point set in input-buffer 1785 ;; so that the value of point set in input-buffer
1787 ;; within byte-compile-from-buffer lingers in that buffer. 1786 ;; within byte-compile-from-buffer lingers in that buffer.
1788 (setq output-buffer 1787 (setq output-buffer
1789 (save-current-buffer 1788 (save-current-buffer
1790 (unwind-protect 1789 (let ((byte-compile-level (1+ byte-compile-level)))
1791 (byte-compile-from-buffer input-buffer) 1790 (byte-compile-from-buffer input-buffer))))
1792 (setq byte-compile-level (1- byte-compile-level)))))
1793 (if byte-compiler-error-flag 1791 (if byte-compiler-error-flag
1794 nil 1792 nil
1795 (when byte-compile-verbose 1793 (when byte-compile-verbose
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index 2088e690228..abe7b1ea741 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -359,10 +359,8 @@ on if the hook has explicitly disabled it."
359 (MODE-check-buffers 359 (MODE-check-buffers
360 (intern (concat global-mode-name "-check-buffers"))) 360 (intern (concat global-mode-name "-check-buffers")))
361 (MODE-cmhh (intern (concat global-mode-name "-cmhh"))) 361 (MODE-cmhh (intern (concat global-mode-name "-cmhh")))
362 (MODE-disable-in-buffer
363 (intern (concat global-mode-name "-disable-in-buffer")))
364 (minor-MODE-hook (intern (concat mode-name "-hook"))) 362 (minor-MODE-hook (intern (concat mode-name "-hook")))
365 (disable-MODE (intern (concat "disable-" mode-name))) 363 (MODE-set-explicitly (intern (concat mode-name "-set-explicitly")))
366 (MODE-major-mode (intern (concat (symbol-name mode) "-major-mode"))) 364 (MODE-major-mode (intern (concat (symbol-name mode) "-major-mode")))
367 keyw) 365 keyw)
368 366
@@ -409,8 +407,6 @@ See `%s' for more information on %s."
409 (add-hook 'find-file-hook ',MODE-check-buffers) 407 (add-hook 'find-file-hook ',MODE-check-buffers)
410 (add-hook 'change-major-mode-hook ',MODE-cmhh)) 408 (add-hook 'change-major-mode-hook ',MODE-cmhh))
411 (remove-hook 'after-change-major-mode-hook ',MODE-enable-in-buffers) 409 (remove-hook 'after-change-major-mode-hook ',MODE-enable-in-buffers)
412 (remove-hook 'change-major-mode-after-body-hook
413 ',MODE-enable-in-buffers)
414 (remove-hook 'find-file-hook ',MODE-check-buffers) 410 (remove-hook 'find-file-hook ',MODE-check-buffers)
415 (remove-hook 'change-major-mode-hook ',MODE-cmhh)) 411 (remove-hook 'change-major-mode-hook ',MODE-cmhh))
416 412
@@ -425,7 +421,7 @@ See `%s' for more information on %s."
425 421
426 ;; A function which checks whether MODE has been disabled in the major 422 ;; A function which checks whether MODE has been disabled in the major
427 ;; mode hook which has just been run. 423 ;; mode hook which has just been run.
428 (add-hook ',minor-MODE-hook ',MODE-disable-in-buffer) 424 (add-hook ',minor-MODE-hook ',MODE-set-explicitly)
429 425
430 ;; List of buffers left to process. 426 ;; List of buffers left to process.
431 (defvar ,MODE-buffers nil) 427 (defvar ,MODE-buffers nil)
@@ -435,8 +431,7 @@ See `%s' for more information on %s."
435 (dolist (buf ,MODE-buffers) 431 (dolist (buf ,MODE-buffers)
436 (when (buffer-live-p buf) 432 (when (buffer-live-p buf)
437 (with-current-buffer buf 433 (with-current-buffer buf
438 (if ,disable-MODE 434 (unless ,MODE-set-explicitly
439 (if ,mode (,mode -1))
440 (unless (eq ,MODE-major-mode major-mode) 435 (unless (eq ,MODE-major-mode major-mode)
441 (if ,mode 436 (if ,mode
442 (progn 437 (progn
@@ -457,30 +452,20 @@ See `%s' for more information on %s."
457 (add-to-list ',MODE-buffers (current-buffer)) 452 (add-to-list ',MODE-buffers (current-buffer))
458 (add-hook 'post-command-hook ',MODE-check-buffers)) 453 (add-hook 'post-command-hook ',MODE-check-buffers))
459 (put ',MODE-cmhh 'definition-name ',global-mode) 454 (put ',MODE-cmhh 'definition-name ',global-mode)
460 ;; disable-MODE is set in MODE-disable-in-buffer and cleared by 455 ;; MODE-set-explicitly is set in MODE-set-explicitly and cleared by
461 ;; kill-all-local-variables. 456 ;; kill-all-local-variables.
462 (defvar-local ,disable-MODE nil) 457 (defvar-local ,MODE-set-explicitly nil)
463 (defun ,MODE-disable-in-buffer () 458 (defun ,MODE-set-explicitly ()
464 (unless ,mode 459 (setq ,MODE-set-explicitly t))
465 (setq ,disable-MODE t))) 460 (put ',MODE-set-explicitly 'definition-name ',global-mode))))
466 (put ',MODE-disable-in-buffer 'definition-name ',global-mode))))
467 461
468;;; 462;;;
469;;; easy-mmode-defmap 463;;; easy-mmode-defmap
470;;; 464;;;
471 465
472(eval-and-compile 466(defun easy-mmode-set-keymap-parents (m parents)
473 (if (fboundp 'set-keymap-parents) 467 (set-keymap-parent
474 (defalias 'easy-mmode-set-keymap-parents 'set-keymap-parents) 468 m (if (cdr parents) (make-composed-keymap parents) (car parents))))
475 (defun easy-mmode-set-keymap-parents (m parents)
476 (set-keymap-parent
477 m
478 (cond
479 ((not (consp parents)) parents)
480 ((not (cdr parents)) (car parents))
481 (t (let ((m (copy-keymap (pop parents))))
482 (easy-mmode-set-keymap-parents m parents)
483 m)))))))
484 469
485;;;###autoload 470;;;###autoload
486(defun easy-mmode-define-keymap (bs &optional name m args) 471(defun easy-mmode-define-keymap (bs &optional name m args)
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index e63acb6b40e..e2aaafb38dd 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -2593,12 +2593,12 @@ This is like `dired-recursive-delete-directory' for Tramp files."
2593 ;; If `full-directory-p', we just say `ls -l FILENAME'. 2593 ;; If `full-directory-p', we just say `ls -l FILENAME'.
2594 ;; Else we chdir to the parent directory, then say `ls -ld BASENAME'. 2594 ;; Else we chdir to the parent directory, then say `ls -ld BASENAME'.
2595 ;; "--dired" returns byte positions. Therefore, the file names 2595 ;; "--dired" returns byte positions. Therefore, the file names
2596 ;; must be encoded, which is guaranteed by "LC_ALL=en_US.UTF8 2596 ;; must be encoded, which is guaranteed by "LC_ALL=en_US.utf8
2597 ;; LC_CTYPE=''". 2597 ;; LC_CTYPE=''".
2598 (if full-directory-p 2598 (if full-directory-p
2599 (tramp-send-command 2599 (tramp-send-command
2600 v 2600 v
2601 (format "env LC_ALL=en_US.UTF8 LC_CTYPE='' %s %s %s 2>/dev/null" 2601 (format "env LC_ALL=en_US.utf8 LC_CTYPE='' %s %s %s 2>/dev/null"
2602 (tramp-get-ls-command v) 2602 (tramp-get-ls-command v)
2603 switches 2603 switches
2604 (if wildcard 2604 (if wildcard
@@ -2614,7 +2614,7 @@ This is like `dired-recursive-delete-directory' for Tramp files."
2614 (tramp-run-real-handler 'file-name-directory (list localname)))) 2614 (tramp-run-real-handler 'file-name-directory (list localname))))
2615 (tramp-send-command 2615 (tramp-send-command
2616 v 2616 v
2617 (format "env LC_ALL=en_US.UTF8 LC_CTYPE='' %s %s %s" 2617 (format "env LC_ALL=en_US.utf8 LC_CTYPE='' %s %s %s 2>/dev/null"
2618 (tramp-get-ls-command v) 2618 (tramp-get-ls-command v)
2619 switches 2619 switches
2620 (if (or wildcard 2620 (if (or wildcard