aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2010-01-16 16:13:12 -0500
committerEli Zaretskii2010-01-16 16:13:12 -0500
commit5a876cd5f810b611f78dd4cf7a1673bffeea19a9 (patch)
tree93d7479d8263fb828f95932a0cb3e3b0678fa996 /lisp
parentb3108ead2d1691d8ad3005a6350c4febf92df2fb (diff)
parentabd5cfe880473c8da925d5b83e52c8019803d87d (diff)
downloademacs-5a876cd5f810b611f78dd4cf7a1673bffeea19a9.tar.gz
emacs-5a876cd5f810b611f78dd4cf7a1673bffeea19a9.zip
Merge from mainline.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog11
-rw-r--r--lisp/emacs-lisp/cl-loaddefs.el20
-rw-r--r--lisp/emacs-lisp/cl-macs.el18
-rw-r--r--lisp/pcmpl-unix.el5
-rw-r--r--lisp/startup.el13
5 files changed, 54 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ea7435c559d..5ff2d7b24c0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,14 @@
12010-01-16 Jari Aalto <jari.aalto@cante.net>
2
3 * pcmpl-unix.el (pcmpl-unix-read-passwd-file): Doc fix.
4
52010-01-16 Chong Yidong <cyd@stupidchicken.com>
6
7 * emacs-lisp/cl-macs.el (defstruct): Doc fix (Bug#5267).
8
9 * startup.el (command-line): Remove unused --icon-type arg.
10 Handle --display arg, passing it to command-line-1 (Bug#5392).
11
12010-01-16 Mario Lang <mlang@delysid.org> 122010-01-16 Mario Lang <mlang@delysid.org>
2 13
3 * cedet/ede/cpp-root.el (ede-cpp-root-project): 14 * cedet/ede/cpp-root.el (ede-cpp-root-project):
diff --git a/lisp/emacs-lisp/cl-loaddefs.el b/lisp/emacs-lisp/cl-loaddefs.el
index 0be2c643313..3beda28abf2 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" "3867c0613dfd69780f561012a1dfe67b") 285;;;;;; defmacro* defun* gentemp gensym) "cl-macs" "cl-macs.el" "e10a7e42199c08dc39460f67dd2d424b")
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" "\
@@ -672,11 +672,21 @@ from ARGLIST using FUNC: (define-modify-macro incf (&optional (n 1)) +)
672 672
673(autoload 'defstruct "cl-macs" "\ 673(autoload 'defstruct "cl-macs" "\
674Define a struct type. 674Define a struct type.
675This macro defines a new Lisp data type called NAME, which contains data 675This macro defines a new data type called NAME that stores data
676stored in SLOTs. This defines a `make-NAME' constructor, a `copy-NAME' 676in SLOTs. It defines a `make-NAME' constructor, a `copy-NAME'
677copier, a `NAME-p' predicate, and setf-able `NAME-SLOT' accessors. 677copier, a `NAME-p' predicate, and slot accessors named `NAME-SLOT'.
678You can use the accessors to set the corresponding slots, via `setf'.
678 679
679\(fn (NAME OPTIONS...) (SLOT SLOT-OPTS...)...)" nil (quote macro)) 680NAME may instead take the form (NAME OPTIONS...), where each
681OPTION is either a single keyword or (KEYWORD VALUE).
682See Info node `(cl)Structures' for a list of valid keywords.
683
684Each SLOT may instead take the form (SLOT SLOT-OPTS...), where
685SLOT-OPTS are keyword-value pairs for that slot. Currently, only
686one keyword is supported, `:read-only'. If this has a non-nil
687value, that slot cannot be set via `setf'.
688
689\(fn NAME SLOTS...)" nil (quote macro))
680 690
681(autoload 'cl-struct-setf-expander "cl-macs" "\ 691(autoload 'cl-struct-setf-expander "cl-macs" "\
682Not documented 692Not documented
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index 29bb752dbf7..4e3b1fb72d9 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -2191,11 +2191,21 @@ from ARGLIST using FUNC: (define-modify-macro incf (&optional (n 1)) +)"
2191;;;###autoload 2191;;;###autoload
2192(defmacro defstruct (struct &rest descs) 2192(defmacro defstruct (struct &rest descs)
2193 "Define a struct type. 2193 "Define a struct type.
2194This macro defines a new Lisp data type called NAME, which contains data 2194This macro defines a new data type called NAME that stores data
2195stored in SLOTs. This defines a `make-NAME' constructor, a `copy-NAME' 2195in SLOTs. It defines a `make-NAME' constructor, a `copy-NAME'
2196copier, a `NAME-p' predicate, and setf-able `NAME-SLOT' accessors. 2196copier, a `NAME-p' predicate, and slot accessors named `NAME-SLOT'.
2197You can use the accessors to set the corresponding slots, via `setf'.
2197 2198
2198\(fn (NAME OPTIONS...) (SLOT SLOT-OPTS...)...)" 2199NAME may instead take the form (NAME OPTIONS...), where each
2200OPTION is either a single keyword or (KEYWORD VALUE).
2201See Info node `(cl)Structures' for a list of valid keywords.
2202
2203Each SLOT may instead take the form (SLOT SLOT-OPTS...), where
2204SLOT-OPTS are keyword-value pairs for that slot. Currently, only
2205one keyword is supported, `:read-only'. If this has a non-nil
2206value, that slot cannot be set via `setf'.
2207
2208\(fn NAME SLOTS...)"
2199 (let* ((name (if (consp struct) (car struct) struct)) 2209 (let* ((name (if (consp struct) (car struct) struct))
2200 (opts (cdr-safe struct)) 2210 (opts (cdr-safe struct))
2201 (slots nil) 2211 (slots nil)
diff --git a/lisp/pcmpl-unix.el b/lisp/pcmpl-unix.el
index 546d4a2591d..9282fe87b5a 100644
--- a/lisp/pcmpl-unix.el
+++ b/lisp/pcmpl-unix.el
@@ -85,7 +85,10 @@ with the SSH option \"HashKnownHosts no\"."
85 (while (pcomplete-here (funcall pcomplete-command-completion-function)))) 85 (while (pcomplete-here (funcall pcomplete-command-completion-function))))
86 86
87(defun pcmpl-unix-read-passwd-file (file) 87(defun pcmpl-unix-read-passwd-file (file)
88 "Return an alist correlating gids to group names in FILE." 88 "Return an alist correlating gids to group names in FILE.
89
90If FILE is in hashed format (as described in the OpenSSH
91documentation), this function returns nil."
89 (let (names) 92 (let (names)
90 (when (file-readable-p file) 93 (when (file-readable-p file)
91 (with-temp-buffer 94 (with-temp-buffer
diff --git a/lisp/startup.el b/lisp/startup.el
index 9de08852ae2..857ad97e448 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -758,7 +758,8 @@ opening the first frame (e.g. open a connection to an X server).")
758 (pop args))) 758 (pop args)))
759 759
760 (let ((done nil) 760 (let ((done nil)
761 (args (cdr command-line-args))) 761 (args (cdr command-line-args))
762 display-arg)
762 763
763 ;; Figure out which user's init file to load, 764 ;; Figure out which user's init file to load,
764 ;; either from the environment or from the options. 765 ;; either from the environment or from the options.
@@ -794,6 +795,11 @@ opening the first frame (e.g. open a connection to an X server).")
794 (setq argval nil 795 (setq argval nil
795 argi orig-argi))))) 796 argi orig-argi)))))
796 (cond 797 (cond
798 ;; The --display arg is handled partly in C, partly in Lisp.
799 ;; When it shows up here, we just put it back to be handled
800 ;; by `command-line-1'.
801 ((member argi '("-d" "-display"))
802 (setq display-arg (list argi (pop args))))
797 ((member argi '("-Q" "-quick")) 803 ((member argi '("-Q" "-quick"))
798 (setq init-file-user nil 804 (setq init-file-user nil
799 site-run-file nil 805 site-run-file nil
@@ -813,8 +819,6 @@ opening the first frame (e.g. open a connection to an X server).")
813 (setq init-file-debug t)) 819 (setq init-file-debug t))
814 ((equal argi "-iconic") 820 ((equal argi "-iconic")
815 (push '(visibility . icon) initial-frame-alist)) 821 (push '(visibility . icon) initial-frame-alist))
816 ((member argi '("-icon-type" "-i" "-itype"))
817 (push '(icon-type . t) default-frame-alist))
818 ((member argi '("-nbc" "-no-blinking-cursor")) 822 ((member argi '("-nbc" "-no-blinking-cursor"))
819 (setq no-blinking-cursor t)) 823 (setq no-blinking-cursor t))
820 ;; Push the popped arg back on the list of arguments. 824 ;; Push the popped arg back on the list of arguments.
@@ -825,6 +829,9 @@ opening the first frame (e.g. open a connection to an X server).")
825 (and argval 829 (and argval
826 (error "Option `%s' doesn't allow an argument" argi)))) 830 (error "Option `%s' doesn't allow an argument" argi))))
827 831
832 ;; Re-attach the --display arg.
833 (and display-arg (setq args (append display-arg args)))
834
828 ;; Re-attach the program name to the front of the arg list. 835 ;; Re-attach the program name to the front of the arg list.
829 (and command-line-args 836 (and command-line-args
830 (setcdr command-line-args args))) 837 (setcdr command-line-args args)))