aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2012-05-08 20:06:08 -0700
committerGlenn Morris2012-05-08 20:06:08 -0700
commit666b903b912ca0aa2b1a034859b752b04f03141a (patch)
treeadd3234ca1ed7c2d5b18422b3f6982b34388d65b /lisp
parent8f6b6da8ecdcd37ecbb83778d35baa02d68621a3 (diff)
parent0a454caf059b4cc050984a41decc2344cd9a083f (diff)
downloademacs-666b903b912ca0aa2b1a034859b752b04f03141a.tar.gz
emacs-666b903b912ca0aa2b1a034859b752b04f03141a.zip
Merge from emacs-24; up to 2012-04-21T14:12:27Z!sdl.web@gmail.com
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog34
-rw-r--r--lisp/ansi-color.el8
-rw-r--r--lisp/emacs-lisp/package.el9
-rw-r--r--lisp/files.el28
-rw-r--r--lisp/shell.el9
5 files changed, 67 insertions, 21 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e2bc5619419..e9d849691fd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,37 @@
12012-05-09 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * shell.el (shell-completion-vars): Fix last change (bug#11348).
4
52012-05-09 Chong Yidong <cyd@gnu.org>
6
7 * ansi-color.el (ansi-color-process-output): Check for validity of
8 comint-last-output-start before using it. This avoids a bad
9 interaction with gdb-mi's input/output buffer.
10
112012-05-09 Glenn Morris <rgm@gnu.org>
12
13 * files.el (dir-locals-read-from-file):
14 Mention dir-locals in any error message.
15
162012-05-09 Chong Yidong <cyd@gnu.org>
17
18 * emacs-lisp/package.el (package-built-in-p): Handle the `emacs'
19 package (Bug#11410).
20
21 * emacs-lisp/package.el (package-buffer-info): Avoid putting local
22 variables into description.
23
242012-05-09 Stefan Monnier <monnier@iro.umontreal.ca>
25
26 * shell.el (shell-completion-vars): Set pcomplete-arg-quote-list like
27 shell-delimiter-argument-list (bug#11348).
28 (shell-parse-pcomplete-arguments): Obey pcomplete-arg-quote-list.
29
302012-05-09 Chong Yidong <cyd@gnu.org>
31
32 * select.el (xselect--encode-string): Always use utf-8 for TEXT on
33 Nextstep.
34
12012-05-09 Juanma Barranquero <lekktu@gmail.com> 352012-05-09 Juanma Barranquero <lekktu@gmail.com>
2 36
3 * textmodes/rst.el: Silence byte-compiler warnings. 37 * textmodes/rst.el: Silence byte-compiler warnings.
diff --git a/lisp/ansi-color.el b/lisp/ansi-color.el
index 15a543e9591..6a82f176676 100644
--- a/lisp/ansi-color.el
+++ b/lisp/ansi-color.el
@@ -217,8 +217,12 @@ The comint output is assumed to lie between the marker
217`comint-last-output-start' and the process-mark. 217`comint-last-output-start' and the process-mark.
218 218
219This is a good function to put in `comint-output-filter-functions'." 219This is a good function to put in `comint-output-filter-functions'."
220 (let ((start-marker (or comint-last-output-start 220 (let ((start-marker (if (and (markerp comint-last-output-start)
221 (point-min-marker))) 221 (eq (marker-buffer comint-last-output-start)
222 (current-buffer))
223 (marker-position comint-last-output-start))
224 comint-last-output-start
225 (point-min-marker)))
222 (end-marker (process-mark (get-buffer-process (current-buffer))))) 226 (end-marker (process-mark (get-buffer-process (current-buffer)))))
223 (cond ((eq ansi-color-for-comint-mode nil)) 227 (cond ((eq ansi-color-for-comint-mode nil))
224 ((eq ansi-color-for-comint-mode 'filter) 228 ((eq ansi-color-for-comint-mode 'filter)
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 4b868f72899..66370c643bf 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -469,8 +469,11 @@ NAME and VERSION are both strings."
469Optional arg MIN-VERSION, if non-nil, should be a version list 469Optional arg MIN-VERSION, if non-nil, should be a version list
470specifying the minimum acceptable version." 470specifying the minimum acceptable version."
471 (require 'finder-inf nil t) ; For `package--builtins'. 471 (require 'finder-inf nil t) ; For `package--builtins'.
472 (let ((elt (assq package package--builtins))) 472 (if (eq package 'emacs)
473 (and elt (version-list-<= min-version (package-desc-vers (cdr elt)))))) 473 (version-list-<= min-version (version-to-list emacs-version))
474 (let ((elt (assq package package--builtins)))
475 (and elt (version-list-<= min-version
476 (package-desc-vers (cdr elt)))))))
474 477
475;; This function goes ahead and activates a newer version of a package 478;; This function goes ahead and activates a newer version of a package
476;; if an older one was already activated. This is not ideal; we'd at 479;; if an older one was already activated. This is not ideal; we'd at
@@ -943,7 +946,7 @@ If the buffer does not contain a conforming package, signal an
943error. If there is a package, narrow the buffer to the file's 946error. If there is a package, narrow the buffer to the file's
944boundaries." 947boundaries."
945 (goto-char (point-min)) 948 (goto-char (point-min))
946 (unless (re-search-forward "^;;; \\([^ ]*\\)\\.el --- \\(.*\\)$" nil t) 949 (unless (re-search-forward "^;;; \\([^ ]*\\)\\.el ---[ \t]*\\(.*?\\)[ \t]*\\(-\\*-.*-\\*-[ \t]*\\)?$" nil t)
947 (error "Packages lacks a file header")) 950 (error "Packages lacks a file header"))
948 (let ((file-name (match-string-no-properties 1)) 951 (let ((file-name (match-string-no-properties 1))
949 (desc (match-string-no-properties 2)) 952 (desc (match-string-no-properties 2))
diff --git a/lisp/files.el b/lisp/files.el
index 7ee0707d7b7..2870fedf967 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3629,19 +3629,21 @@ FILE is the name of the file holding the variables to apply.
3629The new class name is the same as the directory in which FILE 3629The new class name is the same as the directory in which FILE
3630is found. Returns the new class name." 3630is found. Returns the new class name."
3631 (with-temp-buffer 3631 (with-temp-buffer
3632 ;; Errors reading the file are not very informative. 3632 ;; This is with-demoted-errors, but we want to mention dir-locals
3633 ;; Eg just "Error: (end-of-file)" does not give any clue that the 3633 ;; in any error message.
3634 ;; problem is related to dir-locals. 3634 (let (err)
3635 (with-demoted-errors 3635 (condition-case err
3636 (insert-file-contents file) 3636 (progn
3637 (let* ((dir-name (file-name-directory file)) 3637 (insert-file-contents file)
3638 (class-name (intern dir-name)) 3638 (let* ((dir-name (file-name-directory file))
3639 (variables (let ((read-circle nil)) 3639 (class-name (intern dir-name))
3640 (read (current-buffer))))) 3640 (variables (let ((read-circle nil))
3641 (dir-locals-set-class-variables class-name variables) 3641 (read (current-buffer)))))
3642 (dir-locals-set-directory-class dir-name class-name 3642 (dir-locals-set-class-variables class-name variables)
3643 (nth 5 (file-attributes file))) 3643 (dir-locals-set-directory-class dir-name class-name
3644 class-name)))) 3644 (nth 5 (file-attributes file)))
3645 class-name))
3646 (error (message "Error reading dir-locals: %S" err) nil)))))
3645 3647
3646(defun hack-dir-local-variables () 3648(defun hack-dir-local-variables ()
3647 "Read per-directory local variables for the current buffer. 3649 "Read per-directory local variables for the current buffer.
diff --git a/lisp/shell.el b/lisp/shell.el
index 7c5ce49a967..f7a530102ff 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -393,8 +393,11 @@ Thus, this does not include the shell's current directory.")
393 (goto-char (match-end 0)) 393 (goto-char (match-end 0))
394 (cond 394 (cond
395 ((match-beginning 3) ;Backslash escape. 395 ((match-beginning 3) ;Backslash escape.
396 (push (if (= (match-beginning 3) (match-end 3)) 396 (push (cond
397 "\\" (match-string 3)) 397 ((null pcomplete-arg-quote-list)
398 (goto-char (match-beginning 3)) "\\")
399 ((= (match-beginning 3) (match-end 3)) "\\")
400 (t (match-string 3)))
398 arg)) 401 arg))
399 ((match-beginning 2) ;Double quote. 402 ((match-beginning 2) ;Double quote.
400 (push (replace-regexp-in-string 403 (push (replace-regexp-in-string
@@ -429,7 +432,7 @@ Shell buffers. It implements `shell-completion-execonly' for
429 (set (make-local-variable 'pcomplete-parse-arguments-function) 432 (set (make-local-variable 'pcomplete-parse-arguments-function)
430 #'shell-parse-pcomplete-arguments) 433 #'shell-parse-pcomplete-arguments)
431 (set (make-local-variable 'pcomplete-arg-quote-list) 434 (set (make-local-variable 'pcomplete-arg-quote-list)
432 (append "\\ \t\n\r\"'`$|&;(){}[]<>#" nil)) 435 comint-file-name-quote-list)
433 (set (make-local-variable 'pcomplete-termination-string) 436 (set (make-local-variable 'pcomplete-termination-string)
434 (cond ((not comint-completion-addsuffix) "") 437 (cond ((not comint-completion-addsuffix) "")
435 ((stringp comint-completion-addsuffix) 438 ((stringp comint-completion-addsuffix)