aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPaul Eggert2011-08-26 09:13:07 -0700
committerPaul Eggert2011-08-26 09:13:07 -0700
commit5fc295a42feaef453b57010b826e589b9b9cb7dd (patch)
tree8a965da92c7ebc7d78c04d2dbc220a6bbe40e094 /lisp
parentfcbc5f60ee9c1ed2fb8b8b4f36b8a0658250a1bd (diff)
parent7254299e4d19b0acdfc5dd7580c24be817731488 (diff)
downloademacs-5fc295a42feaef453b57010b826e589b9b9cb7dd.tar.gz
emacs-5fc295a42feaef453b57010b826e589b9b9cb7dd.zip
Merge from trunk.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/emacs-lisp/cl-loaddefs.el2
-rw-r--r--lisp/emacs-lisp/cl-macs.el10
-rw-r--r--lisp/emacs-lisp/package.el26
-rw-r--r--lisp/gnus/ChangeLog2
-rw-r--r--lisp/gnus/mailcap.el2
6 files changed, 33 insertions, 18 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b922e21681f..e3fe51454e5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12011-08-26 Chong Yidong <cyd@stupidchicken.com>
2
3 * emacs-lisp/package.el (package-install): Call package-initialize
4 if called interactively.
5
62011-08-26 Leo Liu <sdl.web@gmail.com>
7
8 * emacs-lisp/cl-macs.el (defstruct): Fix format. (Bug#9357)
9
12011-08-25 Juri Linkov <juri@jurta.org> 102011-08-25 Juri Linkov <juri@jurta.org>
2 11
3 * isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to 12 * isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to
diff --git a/lisp/emacs-lisp/cl-loaddefs.el b/lisp/emacs-lisp/cl-loaddefs.el
index 7beb4d4b4cc..d6512306ad1 100644
--- a/lisp/emacs-lisp/cl-loaddefs.el
+++ b/lisp/emacs-lisp/cl-loaddefs.el
@@ -282,7 +282,7 @@ Not documented
282;;;;;; flet progv psetq do-all-symbols do-symbols dotimes dolist 282;;;;;; flet progv psetq do-all-symbols do-symbols dotimes dolist
283;;;;;; do* do loop return-from return block etypecase typecase ecase 283;;;;;; do* do loop return-from return block etypecase typecase ecase
284;;;;;; case load-time-value eval-when destructuring-bind function* 284;;;;;; case load-time-value eval-when destructuring-bind function*
285;;;;;; defmacro* defun* gentemp gensym) "cl-macs" "cl-macs.el" "0907093f7720996444ededb4edfe8072") 285;;;;;; defmacro* defun* gentemp gensym) "cl-macs" "cl-macs.el" "cc8cbd8c86e2facbe61986e992e6c508")
286;;; Generated autoloads from cl-macs.el 286;;; Generated autoloads from cl-macs.el
287 287
288(autoload 'gensym "cl-macs" "\ 288(autoload 'gensym "cl-macs" "\
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index fb19115287c..d9531cc5261 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -2416,9 +2416,8 @@ value, that slot cannot be set via `setf'.
2416 (append 2416 (append
2417 (and pred-check 2417 (and pred-check
2418 (list (list 'or pred-check 2418 (list (list 'or pred-check
2419 (list 'error 2419 `(error "%s accessing a non-%s"
2420 (format "%s accessing a non-%s" 2420 ',accessor ',name))))
2421 accessor name)))))
2422 (list (if (eq type 'vector) (list 'aref 'cl-x pos) 2421 (list (if (eq type 'vector) (list 'aref 'cl-x pos)
2423 (if (= pos 0) '(car cl-x) 2422 (if (= pos 0) '(car cl-x)
2424 (list 'nth pos 'cl-x)))))) forms) 2423 (list 'nth pos 'cl-x)))))) forms)
@@ -2426,9 +2425,8 @@ value, that slot cannot be set via `setf'.
2426 (push (list 'define-setf-method accessor '(cl-x) 2425 (push (list 'define-setf-method accessor '(cl-x)
2427 (if (cadr (memq :read-only (cddr desc))) 2426 (if (cadr (memq :read-only (cddr desc)))
2428 (list 'progn '(ignore cl-x) 2427 (list 'progn '(ignore cl-x)
2429 (list 'error 2428 `(error "%s is a read-only slot"
2430 (format "%s is a read-only slot" 2429 ',accessor))
2431 'accessor)))
2432 ;; If cl is loaded only for compilation, 2430 ;; If cl is loaded only for compilation,
2433 ;; the call to cl-struct-setf-expander would 2431 ;; the call to cl-struct-setf-expander would
2434 ;; cause a warning because it may not be 2432 ;; cause a warning because it may not be
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 19e8375966b..88282606aa8 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -852,18 +852,26 @@ using `package-compute-transaction'."
852 (t 852 (t
853 (error "Unknown package kind: %s" (symbol-name kind))))))) 853 (error "Unknown package kind: %s" (symbol-name kind)))))))
854 854
855(defvar package--initialized nil)
856
855;;;###autoload 857;;;###autoload
856(defun package-install (name) 858(defun package-install (name)
857 "Install the package named NAME. 859 "Install the package named NAME.
858Interactively, prompt for the package name. 860NAME should be the name of one of the available packages in an
859The package is found on one of the archives in `package-archives'." 861archive in `package-archives'. Interactively, prompt for NAME."
860 (interactive 862 (interactive
861 (list (intern (completing-read "Install package: " 863 (progn
862 (mapcar (lambda (elt) 864 ;; Initialize the package system to get the list of package
863 (cons (symbol-name (car elt)) 865 ;; symbols for completion.
864 nil)) 866 (unless package--initialized
865 package-archive-contents) 867 (package-initialize t))
866 nil t)))) 868 (list (intern (completing-read
869 "Install package: "
870 (mapcar (lambda (elt)
871 (cons (symbol-name (car elt))
872 nil))
873 package-archive-contents)
874 nil t)))))
867 (let ((pkg-desc (assq name package-archive-contents))) 875 (let ((pkg-desc (assq name package-archive-contents)))
868 (unless pkg-desc 876 (unless pkg-desc
869 (error "Package `%s' is not available for installation" 877 (error "Package `%s' is not available for installation"
@@ -1076,8 +1084,6 @@ makes them available for download."
1076 (car archive))))) 1084 (car archive)))))
1077 (package-read-all-archive-contents)) 1085 (package-read-all-archive-contents))
1078 1086
1079(defvar package--initialized nil)
1080
1081;;;###autoload 1087;;;###autoload
1082(defun package-initialize (&optional no-activate) 1088(defun package-initialize (&optional no-activate)
1083 "Load Emacs Lisp packages, and activate them. 1089 "Load Emacs Lisp packages, and activate them.
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 076afdd2323..5c8b4333332 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,7 @@
12011-08-26 Katsumi Yamaoka <yamaoka@jpl.org> 12011-08-26 Katsumi Yamaoka <yamaoka@jpl.org>
2 2
3 * mailcap.el (mailcap-mime-data): Regexp-quote MIME subtype.
4
3 * gnus-msg.el (gnus-setup-message): Remove extra apostrophe. 5 * gnus-msg.el (gnus-setup-message): Remove extra apostrophe.
4 6
52011-08-21 Lars Magne Ingebrigtsen <larsi@gnus.org> 72011-08-21 Lars Magne Ingebrigtsen <larsi@gnus.org>
diff --git a/lisp/gnus/mailcap.el b/lisp/gnus/mailcap.el
index dffb279daba..7959104d646 100644
--- a/lisp/gnus/mailcap.el
+++ b/lisp/gnus/mailcap.el
@@ -90,7 +90,7 @@ This is a compatibility function for different Emacsen."
90;; files for the rest? -- fx 90;; files for the rest? -- fx
91(defvar mailcap-mime-data 91(defvar mailcap-mime-data
92 `(("application" 92 `(("application"
93 ("vnd.ms-excel" 93 ("vnd\\.ms-excel"
94 (viewer . "gnumeric %s") 94 (viewer . "gnumeric %s")
95 (test . (getenv "DISPLAY")) 95 (test . (getenv "DISPLAY"))
96 (type . "application/vnd.ms-excel")) 96 (type . "application/vnd.ms-excel"))