diff options
author | Miles Bader <miles@gnu.org> | 2007-08-03 05:49:59 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2007-08-03 05:49:59 +0000 |
commit | 0896d93184a719bc994a3e699de27190aac0acb1 (patch) | |
tree | 1bd6a3e4b44323c46e4a679adb4bbd3b0b8b3c93 | |
parent | 84d04702f47babb6e1323acc6c1bd4c761b53231 (diff) | |
parent | 5716cebdd05ad26a4c3aa57c8ebf2890d4b937f6 (diff) | |
download | emacs-0896d93184a719bc994a3e699de27190aac0acb1.tar.gz |
Merge from emacs--rel--22
Patches applied:
* emacs--rel--22 (patch 84-87)
- Update from CVS
- Change capitalization of VC backend names for new backends
2007-08-02 Richard M. Stallman <rms@gnu.org>
* lisp/mail/rmailsum.el (rmail-make-summary-line): Find end of msg number
to update deleted flag.
* lisp/cus-edit.el (customize-apropos, customize-apropos-options)
(customize-apropos-faces, customize-apropos-groups): Improve prompt.
* lisp/menu-bar.el (menu-bar-help-menu): Add "About GNU" menu item.
* lisp/startup.el (fancy-splash-head, startup-echo-area-message):
Change message text.
* lisp/emulation/tpu-edt.el (next-line-internal): Setting deleted.
All callers use line-move.
* lisp/progmodes/compile.el (compilation-find-buffer): Return current
buffer immediately if suitable.
(compile, compilation-buffer-name, compilation-start): Doc fixes.
2007-07-31 Daiki Ueno <ueno@unixuser.org>
* lisp/faces.el (face-normalize-spec): New function.
(frame-set-background-mode): Normalize face-spec before calling
face-spec-match-p.
2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
* lisp/server.el (server-window): Add switch-to-buffer-other-frame option.
2007-08-03 Richard M. Stallman <rms@gnu.org>
* src/fileio.c (Fvisited_file_modtime): Use make_time.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-844
-rw-r--r-- | admin/FOR-RELEASE | 4 | ||||
-rw-r--r-- | lisp/ChangeLog | 30 | ||||
-rw-r--r-- | lisp/ChangeLog.12 | 2 | ||||
-rw-r--r-- | lisp/cus-edit.el | 8 | ||||
-rw-r--r-- | lisp/emulation/tpu-edt.el | 15 | ||||
-rw-r--r-- | lisp/faces.el | 25 | ||||
-rw-r--r-- | lisp/mail/rmailsum.el | 10 | ||||
-rw-r--r-- | lisp/menu-bar.el | 3 | ||||
-rw-r--r-- | lisp/progmodes/compile.el | 31 | ||||
-rw-r--r-- | lisp/server.el | 1 | ||||
-rw-r--r-- | lisp/startup.el | 4 | ||||
-rw-r--r-- | src/ChangeLog | 4 | ||||
-rw-r--r-- | src/fileio.c | 8 | ||||
-rw-r--r-- | src/xselect.c | 6 |
14 files changed, 109 insertions, 42 deletions
diff --git a/admin/FOR-RELEASE b/admin/FOR-RELEASE index 9ae3f1a2ed7..9d67f20240a 100644 --- a/admin/FOR-RELEASE +++ b/admin/FOR-RELEASE @@ -53,6 +53,10 @@ http://lists.gnu.org/archive/html/emacs-devel/2007-04/msg01113.html ** dksw@eircom.net, 3 Jul: Telnet mode (rsh/ssh) +** bojohan+news@dd.chalmers.se, 1 Aug: n_schumacher@web.de: modification hooks called only once in + +** sdl.web@gmail.com: problem with transparent PNG image display + * FIXES FOR EMACS 22.2 Here we list small fixes that arrived too late for Emacs 22.1, but diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2363853356c..8d35fa06ac5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -18,6 +18,36 @@ * vc-bzr.el (vc-bzr-dir-state, vc-bzr-dired-state-info) (vc-bzr-unload-hook): Use `Bzr' as VC backend name, not `BZR'. +2007-08-02 Richard Stallman <rms@gnu.org> + + * mail/rmailsum.el (rmail-make-summary-line): Find end of msg number + to update deleted flag. + + * cus-edit.el (customize-apropos, customize-apropos-options) + (customize-apropos-faces, customize-apropos-groups): Improve prompt. + + * menu-bar.el (menu-bar-help-menu): Add "About GNU" menu item. + + * startup.el (fancy-splash-head, startup-echo-area-message): + Change message text. + + * emulation/tpu-edt.el (next-line-internal): Setting deleted. + All callers use line-move. + + * progmodes/compile.el (compilation-find-buffer): Return current + buffer immediately if suitable. + (compile, compilation-buffer-name, compilation-start): Doc fixes. + +2007-07-31 Daiki Ueno <ueno@unixuser.org> + + * faces.el (face-normalize-spec): New function. + (frame-set-background-mode): Normalize face-spec before calling + face-spec-match-p. + +2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca> + + * server.el (server-window): Add switch-to-buffer-other-frame option. + 2007-08-03 Glenn Morris <rgm@gnu.org> * cus-edit.el (customize-apropos): Make the error message indicate diff --git a/lisp/ChangeLog.12 b/lisp/ChangeLog.12 index dca4aed54d1..c26f79bf6f8 100644 --- a/lisp/ChangeLog.12 +++ b/lisp/ChangeLog.12 @@ -11278,7 +11278,7 @@ (name, size, mode) <define-ibuffer-column>: Add a header-mouse-map property. -2006-04-02 Drew Adams <drew.adams@oracle.com> (tiny change) +2006-04-02 Drew Adams <drew.adams@oracle.com> * speedbar.el (speedbar-after-create-hook): Doc fix. diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 2cfd247a645..869533b3c3e 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -1357,7 +1357,7 @@ If ALL is `groups', include only groups. If ALL is t (interactively, with prefix arg), include variables that are not customizable options, as well as faces and groups \(but we recommend using `apropos-variable' instead)." - (interactive "sCustomize regexp: \nP") + (interactive "sCustomize (regexp): \nP") (let ((found nil)) (mapatoms (lambda (symbol) (when (string-match regexp (symbol-name symbol)) @@ -1393,19 +1393,19 @@ that are not customizable options, as well as faces and groups "Customize all loaded customizable options matching REGEXP. With prefix arg, include variables that are not customizable options \(but we recommend using `apropos-variable' instead)." - (interactive "sCustomize regexp: \nP") + (interactive "sCustomize options (regexp): \nP") (customize-apropos regexp (or arg 'options))) ;;;###autoload (defun customize-apropos-faces (regexp) "Customize all loaded faces matching REGEXP." - (interactive "sCustomize regexp: \n") + (interactive "sCustomize faces (regexp): \n") (customize-apropos regexp 'faces)) ;;;###autoload (defun customize-apropos-groups (regexp) "Customize all loaded groups matching REGEXP." - (interactive "sCustomize regexp: \n") + (interactive "sCustomize groups (regexp): \n") (customize-apropos regexp 'groups)) ;;; Buffer. diff --git a/lisp/emulation/tpu-edt.el b/lisp/emulation/tpu-edt.el index f1cdc0ca864..f3792b92e42 100644 --- a/lisp/emulation/tpu-edt.el +++ b/lisp/emulation/tpu-edt.el @@ -1035,13 +1035,6 @@ This is useful for inserting control characters." (defalias 'tpu-error 'error) -;; Around emacs version 18.57, function line-move was renamed to -;; next-line-internal. If we're running under an older emacs, -;; make next-line-internal equivalent to line-move. - -(if (not (fboundp 'next-line-internal)) (fset 'next-line-internal 'line-move)) - - ;;; ;;; Help ;;; @@ -1992,14 +1985,14 @@ With argument, do this that many times." "Move to next line. Prefix argument serves as a repeat count." (interactive "p") - (next-line-internal num) + (line-move num) (setq this-command 'next-line)) (defun tpu-previous-line (num) "Move to previous line. Prefix argument serves as a repeat count." (interactive "p") - (next-line-internal (- num)) + (line-move (- num)) (setq this-command 'previous-line)) (defun tpu-next-beginning-of-line (num) @@ -2122,7 +2115,7 @@ A repeat count means scroll that many sections." (let* ((beg (tpu-current-line)) (height (1- (window-height))) (lines (* num (/ (* height tpu-percent-scroll) 100)))) - (next-line-internal (- lines)) + (line-move (- lines)) (if (> lines beg) (recenter 0)))) (defun tpu-scroll-window-up (num) @@ -2132,7 +2125,7 @@ A repeat count means scroll that many sections." (let* ((beg (tpu-current-line)) (height (1- (window-height))) (lines (* num (/ (* height tpu-percent-scroll) 100)))) - (next-line-internal lines) + (line-move lines) (if (>= (+ lines beg) height) (recenter -1)))) (defun tpu-pan-right (num) diff --git a/lisp/faces.el b/lisp/faces.el index 320bf5d2b5d..23692454153 100644 --- a/lisp/faces.el +++ b/lisp/faces.el @@ -1506,6 +1506,28 @@ If there is neither a user setting nor a default for FACE, return nil." (get face 'saved-face) (face-default-spec face))) +(defsubst face-normalize-spec (spec) + "Return a normalized face-spec of SPEC." + (let (normalized-spec) + (while spec + (let ((attribute (car spec)) + (value (car (cdr spec)))) + ;; Support some old-style attribute names and values. + (case attribute + (:bold (setq attribute :weight value (if value 'bold 'normal))) + (:italic (setq attribute :slant value (if value 'italic 'normal))) + ((:foreground :background) + ;; Compatibility with 20.x. Some bogus face specs seem to + ;; exist containing things like `:foreground nil'. + (if (null value) (setq value 'unspecified))) + (t (unless (assq attribute face-x-resources) + (setq attribute nil)))) + (when attribute + (push attribute normalized-spec) + (push value normalized-spec))) + (setq spec (cdr (cdr spec)))) + (nreverse normalized-spec))) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Frame-type independent color support. @@ -1648,7 +1670,8 @@ according to the `background-mode' and `display-type' frame parameters." ;; be unmodified, so we can avoid consing in the common case. (dolist (face (face-list)) (when (not (face-spec-match-p face - (face-user-default-spec face) + (face-normalize-spec + (face-user-default-spec face)) (selected-frame))) (push face locally-modified-faces))) ;; Now change to the new frame parameters diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index 85527e59f67..fd5931fdef9 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el @@ -288,12 +288,14 @@ nil for FUNCTION means all messages." (if (zerop (% rmail-new-summary-line-count 10)) (message "Computing summary lines...%d" rmail-new-summary-line-count)) - (rmail-make-summary-line-1 msg))))) + (rmail-make-summary-line-1 msg)))) + delpos) ;; Fix up the part of the summary that says "deleted" or "unseen". - (aset line 5 - (if (rmail-message-deleted-p msg) ?\D + (string-match "[0-9]+" line) + (aset line (match-end 0) + (if (rmail-message-deleted-p msg) ?D (if (= ?0 (char-after (+ 3 (rmail-msgbeg msg)))) - ?\- ?\ ))) + ?- ?\s))) line)) ;;;###autoload diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 6b579763689..48f4613287b 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -1364,6 +1364,9 @@ key, a click, or a menu-item")) (define-key menu-bar-help-menu [describe-copying] '(menu-item "Copying Conditions" describe-copying :help "Show the Emacs license (GPL)")) +(define-key menu-bar-help-menu [describe-project] + '(menu-item "About GNU" describe-project + :help "About the GNU System, GNU Project, and GNU/Linux")) (define-key menu-bar-help-menu [describe-distribution] '(menu-item "Getting New Versions" describe-distribution :help "How to get latest versions of Emacs")) diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 2710066c2cd..caf0e94b927 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -917,11 +917,13 @@ non-nil; otherwise uses `compile-command'. With prefix arg, always prompts. Additionally, with universal prefix arg, compilation buffer will be in comint mode, i.e. interactive. -To run more than one compilation at once, start one and rename +To run more than one compilation at once, start one then rename the \`*compilation*' buffer to some other name with -\\[rename-buffer]. Then start the next one. On most systems, -termination of the main compilation process kills its -subprocesses. +\\[rename-buffer]. Then _switch buffers_ and start the new compilation. +It will create a new \`*compilation*' buffer. + +On most systems, termination of the main compilation process +kills its subprocesses. The name used for the buffer is actually whatever is returned by the function in `compilation-buffer-name-function', so you can set that @@ -970,7 +972,7 @@ visible rather than the beginning." If NAME-FUNCTION is non-nil, call it with one argument MODE-NAME to determine the buffer name. Likewise if `compilation-buffer-name-function' is non-nil. -If current buffer is the mode MODE-COMMAND, +If current buffer has the major mode MODE-COMMAND, return the name of the current buffer, so that it gets reused. Otherwise, construct a buffer name from MODE-NAME." (cond (name-function @@ -1009,8 +1011,11 @@ The rest of the arguments are optional; for them, nil means use the default. MODE is the major mode to set in the compilation buffer. Mode may also be t meaning use `compilation-shell-minor-mode' under `comint-mode'. + If NAME-FUNCTION is non-nil, call it with one argument (the mode name) -to determine the buffer name. +to determine the buffer name. Otherwise, the default is to +reuses the current buffer if it has the proper major mode, +else use or create a buffer with name based on the major mode. If HIGHLIGHT-REGEXP is non-nil, `next-error' will temporarily highlight the matching section of the visited source line; the default is to use the @@ -1617,12 +1622,16 @@ Use this command in a compilation log buffer. Sets the mark at point there." (setq compilation-current-error (point)) (next-error-internal))) -;; Return a compilation buffer. -;; If the current buffer is a compilation buffer, return it. -;; Otherwise, look for a compilation buffer and signal an error -;; if there are none. (defun compilation-find-buffer (&optional avoid-current) - (next-error-find-buffer avoid-current 'compilation-buffer-internal-p)) + "Return a compilation buffer. +If AVOID-CURRENT is nil, and +the current buffer is a compilation buffer, return it. +If AVOID-CURRENT is non-nil, return the current buffer +only as a last resort." + (if (and (compilation-buffer-internal-p (current-buffer)) + (not avoid-current)) + (current-buffer) + (next-error-find-buffer avoid-current 'compilation-buffer-internal-p))) ;;;###autoload (defun compilation-next-error-function (n &optional reset) diff --git a/lisp/server.el b/lisp/server.el index 1bdeb07ca0f..89756fd0eca 100644 --- a/lisp/server.el +++ b/lisp/server.el @@ -164,6 +164,7 @@ Only programs can do so." :match (lambda (widget value) (not (functionp value))) nil) + (function-item :tag "Display in new frame" switch-to-buffer-other-frame) (function-item :tag "Use pop-to-buffer" pop-to-buffer) (function :tag "Other function"))) diff --git a/lisp/startup.el b/lisp/startup.el index 184a2424756..db39e6dcd75 100644 --- a/lisp/startup.el +++ b/lisp/startup.el @@ -1678,9 +1678,9 @@ Type \\[describe-distribution] for information on getting the latest version.")) (defun startup-echo-area-message () (if (eq (key-binding "\C-h\C-p") 'describe-project) - "For information about the GNU Project and its goals, type C-h C-p." + "For information about the GNU system and GNU/Linux, type C-h C-p." (substitute-command-keys - "For information about the GNU Project and its goals, type \ + "For information about the GNU system and GNU/Linux, type \ \\[describe-project]."))) diff --git a/src/ChangeLog b/src/ChangeLog index f26f918c941..87376db4e7f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-08-03 Richard Stallman <rms@gnu.org> + + * fileio.c (Fvisited_file_modtime): Use make_time. + 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change) * mac.c (init_mac_osx_environment): Adjust load-path on self-contained diff --git a/src/fileio.c b/src/fileio.c index f70109dc2ad..328b90a0a94 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -5692,11 +5692,9 @@ file modification time, this function returns 0. See Info node `(elisp)Modification Time' for more details. */) () { - Lisp_Object tcons; - tcons = long_to_cons ((unsigned long) current_buffer->modtime); - if (CONSP (tcons)) - return list2 (XCAR (tcons), XCDR (tcons)); - return tcons; + if (! current_buffer->modtime) + return make_number (0); + return make_time ((time_t) current_buffer->modtime); } DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime, diff --git a/src/xselect.c b/src/xselect.c index 729c05f190a..33468f0d63a 100644 --- a/src/xselect.c +++ b/src/xselect.c @@ -1854,9 +1854,9 @@ selection_data_to_lisp_data (display, data, size, type, format) } } - /* Convert a single 16 or small 32 bit number to a Lisp_Int. - If the number is > 16 bits, convert it to a cons of integers, - 16 bits in each half. + /* Convert a single 16-bit number or a small 32-bit number to a Lisp_Int. + If the number is 32 bits and won't fit in a Lisp_Int, + convert it to a cons of integers, 16 bits in each half. */ else if (format == 32 && size == sizeof (int)) return long_to_cons (((unsigned int *) data) [0]); |