diff options
| author | Karoly Lorentey | 2004-06-03 16:45:20 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-06-03 16:45:20 +0000 |
| commit | bf2d7b586bf6add7527739fcbdc007e921259397 (patch) | |
| tree | acf06ea1cb8dd626d6a1e746f0306e315838a068 | |
| parent | 190a56d6e02f134591a9d8861b8c4aa55bbec79b (diff) | |
| parent | 52deb19f2472448f319e96b627bc8d84d86134fe (diff) | |
| download | emacs-bf2d7b586bf6add7527739fcbdc007e921259397.tar.gz emacs-bf2d7b586bf6add7527739fcbdc007e921259397.zip | |
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-357
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-358
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-359
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-360
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-361
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-362
Support " [...]" style defaults in minibuffer-electric-default-mode
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-363
(read-number): Use canonical format for default in prompt.
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-364
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-365
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-184
| -rw-r--r-- | lib-src/ChangeLog | 11 | ||||
| -rw-r--r-- | lib-src/makefile.w32-in | 2 | ||||
| -rw-r--r-- | lisp/ChangeLog | 86 | ||||
| -rw-r--r-- | lisp/comint.el | 23 | ||||
| -rw-r--r-- | lisp/desktop.el | 21 | ||||
| -rw-r--r-- | lisp/faces.el | 2 | ||||
| -rw-r--r-- | lisp/frame.el | 1 | ||||
| -rw-r--r-- | lisp/ibuf-ext.el | 69 | ||||
| -rw-r--r-- | lisp/ibuffer.el | 9 | ||||
| -rw-r--r-- | lisp/international/mule.el | 16 | ||||
| -rw-r--r-- | lisp/minibuf-eldef.el | 6 | ||||
| -rw-r--r-- | lisp/subr.el | 18 | ||||
| -rw-r--r-- | lisp/textmodes/bibtex.el | 23 | ||||
| -rw-r--r-- | lisp/vc-arch.el | 2 | ||||
| -rw-r--r-- | src/ChangeLog | 26 | ||||
| -rw-r--r-- | src/eval.c | 6 | ||||
| -rw-r--r-- | src/image.c | 20 | ||||
| -rw-r--r-- | src/mem-limits.h | 6 | ||||
| -rw-r--r-- | src/w32fns.c | 113 |
19 files changed, 305 insertions, 155 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index ac789eb3181..9f3fcc13371 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,6 +1,11 @@ | |||
| 1 | 2004-06-01 Juanma Barranquero <lektu@terra.es> | ||
| 2 | |||
| 3 | * makefile.w32-in (obj): Add image.c. | ||
| 4 | |||
| 1 | 2004-05-10 Thien-Thi Nguyen <ttn@gnu.org> | 5 | 2004-05-10 Thien-Thi Nguyen <ttn@gnu.org> |
| 2 | 6 | ||
| 3 | * test-distrib.c (main): For failing cases, exit with `EXIT_FAILURE'. | 7 | * test-distrib.c (main): For failing cases, exit with |
| 8 | `EXIT_FAILURE'. | ||
| 4 | 9 | ||
| 5 | 2004-05-08 Jason Rumney <jasonr@gnu.org> | 10 | 2004-05-08 Jason Rumney <jasonr@gnu.org> |
| 6 | 11 | ||
| @@ -14,8 +19,8 @@ | |||
| 14 | (main): Use `EXIT_SUCCESS' or `EXIT_FAILURE' for return value. | 19 | (main): Use `EXIT_SUCCESS' or `EXIT_FAILURE' for return value. |
| 15 | 20 | ||
| 16 | * ebrowse.c, emacsclient.c, fakemail.c, hexl.c, | 21 | * ebrowse.c, emacsclient.c, fakemail.c, hexl.c, |
| 17 | make-docfile.c, movemail.c, profile.c, sorted-doc.c, | 22 | * make-docfile.c, movemail.c, profile.c, sorted-doc.c, |
| 18 | test-distrib.c, update-game-score.c, yow.c: Likewise. | 23 | * test-distrib.c, update-game-score.c, yow.c: Likewise. |
| 19 | 24 | ||
| 20 | 2004-05-08 Thien-Thi Nguyen <ttn@gnu.org> | 25 | 2004-05-08 Thien-Thi Nguyen <ttn@gnu.org> |
| 21 | 26 | ||
diff --git a/lib-src/makefile.w32-in b/lib-src/makefile.w32-in index a997d324a5b..3b53a29889b 100644 --- a/lib-src/makefile.w32-in +++ b/lib-src/makefile.w32-in | |||
| @@ -126,7 +126,7 @@ $(BLD)/ctags.$(O): ctags.c | |||
| 126 | # | 126 | # |
| 127 | # From ..\src\makefile.nt. | 127 | # From ..\src\makefile.nt. |
| 128 | # | 128 | # |
| 129 | obj = abbrev.c alloc.c alloca.c buffer.c bytecode.c callint.c callproc.c casefiddle.c casetab.c category.c ccl.c charset.c cm.c cmds.c coding.c data.c dired.c dispnew.c doc.c doprnt.c editfns.c emacs.c eval.c fileio.c filelock.c filemode.c floatfns.c fns.c fontset.c frame.c fringe.c gmalloc.c indent.c insdel.c intervals.c keyboard.c keymap.c lastfile.c lread.c macros.c marker.c minibuf.c print.c process.c ralloc.c regex.c region-cache.c scroll.c search.c sound.c strftime.c syntax.c sysdep.c term.c termcap.c textprop.c tparam.c undo.c unexw32.c vm-limit.c w32.c w32console.c w32fns.c w32heap.c w32inevt.c w32menu.c w32proc.c w32reg.c w32select.c w32term.c w32xfns.c window.c xdisp.c xfaces.c xfaces.c | 129 | obj = abbrev.c alloc.c alloca.c buffer.c bytecode.c callint.c callproc.c casefiddle.c casetab.c category.c ccl.c charset.c cm.c cmds.c coding.c data.c dired.c dispnew.c doc.c doprnt.c editfns.c emacs.c eval.c fileio.c filelock.c filemode.c floatfns.c fns.c fontset.c frame.c fringe.c gmalloc.c image.c indent.c insdel.c intervals.c keyboard.c keymap.c lastfile.c lread.c macros.c marker.c minibuf.c print.c process.c ralloc.c regex.c region-cache.c scroll.c search.c sound.c strftime.c syntax.c sysdep.c term.c termcap.c textprop.c tparam.c undo.c unexw32.c vm-limit.c w32.c w32console.c w32fns.c w32heap.c w32inevt.c w32menu.c w32proc.c w32reg.c w32select.c w32term.c w32xfns.c window.c xdisp.c xfaces.c xfaces.c |
| 130 | # | 130 | # |
| 131 | # These are the lisp files that are loaded up in loadup.el | 131 | # These are the lisp files that are loaded up in loadup.el |
| 132 | # | 132 | # |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bf08d2643f3..83f8a0e1cf0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,51 @@ | |||
| 1 | 2004-06-03 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * subr.el (read-number): Use canonical format for default in prompt. | ||
| 4 | |||
| 5 | * minibuf-eldef.el (minibuffer-default-in-prompt-regexps): Add | ||
| 6 | regexp for " [...]" style defaults. | ||
| 7 | |||
| 8 | 2004-06-02 Romain Francoise <romain@orebokech.com> | ||
| 9 | |||
| 10 | * ibuf-ext.el (ibuffer-jump-to-buffer): Add support for filter | ||
| 11 | groups: if the user asks for a hidden buffer, open the | ||
| 12 | corresponding filter group to expose it. | ||
| 13 | |||
| 14 | * ibuffer.el (ibuffer-mode-map): Add key binding `M-g' to | ||
| 15 | `ibuffer-jump-to-buffer'. | ||
| 16 | (ibuffer-jump-offer-only-visible-buffers): New user option. | ||
| 17 | |||
| 18 | 2004-06-02 Juanma Barranquero <lektu@terra.es> | ||
| 19 | |||
| 20 | * faces.el (frame-update-faces): Add empty docstring so the one | ||
| 21 | for `ignore' doesn't show through. | ||
| 22 | |||
| 23 | * subr.el (process-kill-without-query): Remove spurious "\n" on | ||
| 24 | obsolescence string. | ||
| 25 | (focus-frame, unfocus-frame): Add obsolescence declaration and | ||
| 26 | empty docstring. | ||
| 27 | |||
| 28 | * international/mule.el (register-char-codings): Make alias for | ||
| 29 | `ignore'. Move docstring to obsolescence info and remove | ||
| 30 | redundancy. | ||
| 31 | |||
| 32 | 2004-06-02 Kim F. Storm <storm@cua.dk> | ||
| 33 | |||
| 34 | * frame.el (blink-cursor-start): Turn cursor off initially so blink | ||
| 35 | starts after blink-cursor-delay rather than 2*blink-cursor-delay. | ||
| 36 | |||
| 37 | 2004-05-31 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 38 | |||
| 39 | * vc-arch.el (vc-arch-state): Don't assume the file exists. | ||
| 40 | |||
| 41 | 2004-05-31 Lars Hansen <larsh@math.ku.dk> | ||
| 42 | |||
| 43 | * desktop.el (desktop-save): Don't save minor modes without a | ||
| 44 | known mode initialization function. | ||
| 45 | |||
| 1 | 2004-05-30 Luc Teirlinck <teirllm@auburn.edu> | 46 | 2004-05-30 Luc Teirlinck <teirllm@auburn.edu> |
| 2 | 47 | ||
| 3 | * replace.el (query-replace-interactive): Convert defvar into | 48 | * replace.el (query-replace-interactive): Convert defvar -> defcustom. |
| 4 | defcustom. | ||
| 5 | 49 | ||
| 6 | * autorevert.el: Update `Commentary' section. | 50 | * autorevert.el: Update `Commentary' section. |
| 7 | 51 | ||
| @@ -17,8 +61,8 @@ | |||
| 17 | Sync with Tramp. | 61 | Sync with Tramp. |
| 18 | 62 | ||
| 19 | * net/tramp.el (tramp-let-maybe): Reverse args of `get'. | 63 | * net/tramp.el (tramp-let-maybe): Reverse args of `get'. |
| 20 | (tramp-let-maybe): Move to an earlier spot in the file. Patch by | 64 | (tramp-let-maybe): Move to an earlier spot in the file. |
| 21 | Andreas Schwab. | 65 | Patch by Andreas Schwab. |
| 22 | 66 | ||
| 23 | 2004-05-30 Andreas Schwab <schwab@suse.de> | 67 | 2004-05-30 Andreas Schwab <schwab@suse.de> |
| 24 | 68 | ||
| @@ -47,21 +91,20 @@ | |||
| 47 | 91 | ||
| 48 | * ange-ftp.el (ange-ftp-file-remote-p): New defun. | 92 | * ange-ftp.el (ange-ftp-file-remote-p): New defun. |
| 49 | (top): Remove setting of `file-remote-p' property for | 93 | (top): Remove setting of `file-remote-p' property for |
| 50 | `ange-ftp-hook-function'. Add `ange-ftp' property to | 94 | `ange-ftp-hook-function'. Add `ange-ftp' property to `file-remote-p'. |
| 51 | `file-remote-p'. | ||
| 52 | 95 | ||
| 53 | 2004-05-29 Michael Albinus <michael.albinus@gmx.de> | 96 | 2004-05-29 Michael Albinus <michael.albinus@gmx.de> |
| 54 | 97 | ||
| 55 | Version 2.0.41 of Tramp released. | 98 | Version 2.0.41 of Tramp released. |
| 56 | 99 | ||
| 57 | * tramp.el (tramp-wait-for-regexp, tramp-wait-for-output): Throw | 100 | * tramp.el (tramp-wait-for-regexp, tramp-wait-for-output): |
| 58 | away if process has died. Reported by Luc Teirlinck | 101 | Throw away if process has died. |
| 59 | <teirllm@dms.auburn.edu>. | 102 | Reported by Luc Teirlinck <teirllm@dms.auburn.edu>. |
| 60 | (tramp-out-of-band-prompt-regexp): Renamed to | 103 | (tramp-out-of-band-prompt-regexp): Rename to |
| 61 | `tramp-process-alive-regexp', because its usage is widen. | 104 | `tramp-process-alive-regexp', because its usage is widen. |
| 62 | (tramp-actions-copy-out-of-band): Apply it. | 105 | (tramp-actions-copy-out-of-band): Apply it. |
| 63 | (tramp-actions-before-shell, tramp-multi-actions): Add | 106 | (tramp-actions-before-shell, tramp-multi-actions): |
| 64 | `tramp-action-process-alive' action. | 107 | Add `tramp-action-process-alive' action. |
| 65 | (tramp-action-process-alive): New defun. | 108 | (tramp-action-process-alive): New defun. |
| 66 | (tramp-file-name-handler-alist, tramp-file-name-for-operation): | 109 | (tramp-file-name-handler-alist, tramp-file-name-for-operation): |
| 67 | Add entry for `file-remote-p'. | 110 | Add entry for `file-remote-p'. |
| @@ -73,8 +116,8 @@ | |||
| 73 | `file-remote-p'. | 116 | `file-remote-p'. |
| 74 | 117 | ||
| 75 | * tramp-uu.el (tramp-uuencode-region): Padding characters aren't | 118 | * tramp-uu.el (tramp-uuencode-region): Padding characters aren't |
| 76 | counted for (last) line. Reported by Aaron Ucko | 119 | counted for (last) line. [They should or they shouldn't? --Stef] |
| 77 | <ucko@ncbi.nlm.nih.gov>. | 120 | Reported by Aaron Ucko <ucko@ncbi.nlm.nih.gov>. |
| 78 | 121 | ||
| 79 | 2004-05-29 Kai Grossjohann <kai.grossjohann@gmx.net> | 122 | 2004-05-29 Kai Grossjohann <kai.grossjohann@gmx.net> |
| 80 | 123 | ||
| @@ -97,8 +140,8 @@ | |||
| 97 | filenames starting with "/:" -- those are reserved for | 140 | filenames starting with "/:" -- those are reserved for |
| 98 | file-name-non-special. | 141 | file-name-non-special. |
| 99 | 142 | ||
| 100 | * tramp-smb.el (tramp-smb-open-connection): Use | 143 | * tramp-smb.el (tramp-smb-open-connection): |
| 101 | tramp-set-process-query-on-exit-flag compat function. | 144 | Use tramp-set-process-query-on-exit-flag compat function. |
| 102 | 145 | ||
| 103 | 2004-05-29 Richard M. Stallman <rms@gnu.org> | 146 | 2004-05-29 Richard M. Stallman <rms@gnu.org> |
| 104 | 147 | ||
| @@ -108,7 +151,7 @@ | |||
| 108 | (eval-last-sexp-print-value): Print char equivalent regardless | 151 | (eval-last-sexp-print-value): Print char equivalent regardless |
| 109 | of standard-output value. | 152 | of standard-output value. |
| 110 | 153 | ||
| 111 | * thumbs.el (thumbs-subst-char-in-string): Deleted. | 154 | * thumbs.el (thumbs-subst-char-in-string): Delete. |
| 112 | (thumbs-thumbname): Use subst-char-in-string. | 155 | (thumbs-thumbname): Use subst-char-in-string. |
| 113 | (thumbs-resize-image): Use condition-case, not ignore-errors. | 156 | (thumbs-resize-image): Use condition-case, not ignore-errors. |
| 114 | (thumbs-kill-buffer): Likewise. | 157 | (thumbs-kill-buffer): Likewise. |
| @@ -217,8 +260,10 @@ | |||
| 217 | 2004-05-28 Juanma Barranquero <lektu@terra.es> | 260 | 2004-05-28 Juanma Barranquero <lektu@terra.es> |
| 218 | 261 | ||
| 219 | * cus-edit.el (customize-face, customize-face-other-window) | 262 | * cus-edit.el (customize-face, customize-face-other-window) |
| 220 | (custom-face-edit-delete): Make arguments match their use in docstring. | 263 | (custom-face-edit-delete): Make arguments match their use in |
| 221 | (custom-unloaded-symbol-p, custom-unloaded-widget-p): Docstring typo. | 264 | docstring. |
| 265 | (custom-unloaded-symbol-p, custom-unloaded-widget-p): Fix typo in | ||
| 266 | docstring. | ||
| 222 | 267 | ||
| 223 | * cvs-status.el (cvs-tree-merge, cvs-tags->tree): Use `butlast', | 268 | * cvs-status.el (cvs-tree-merge, cvs-tags->tree): Use `butlast', |
| 224 | not `cvs-butlast'. | 269 | not `cvs-butlast'. |
| @@ -693,7 +738,8 @@ | |||
| 693 | 738 | ||
| 694 | 2004-05-11 Juanma Barranquero <lektu@terra.es> | 739 | 2004-05-11 Juanma Barranquero <lektu@terra.es> |
| 695 | 740 | ||
| 696 | * custom.el (custom-initialize-default, defcustom): Typo in docstring. | 741 | * custom.el (custom-initialize-default, defcustom): |
| 742 | Fix typo in docstring. | ||
| 697 | 743 | ||
| 698 | * files.el (set-visited-file-name, file-expand-wildcards): | 744 | * files.el (set-visited-file-name, file-expand-wildcards): |
| 699 | Fix docstring. | 745 | Fix docstring. |
diff --git a/lisp/comint.el b/lisp/comint.el index c5e903fc58f..12d8e1fcbb7 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -1182,7 +1182,7 @@ start of the text to scan for history references, rather | |||
| 1182 | than the logical beginning of line." | 1182 | than the logical beginning of line." |
| 1183 | (save-excursion | 1183 | (save-excursion |
| 1184 | (let ((toend (- (line-end-position) (point))) | 1184 | (let ((toend (- (line-end-position) (point))) |
| 1185 | (start (comint-line-beginning-position))) | 1185 | (start (or start (comint-line-beginning-position)))) |
| 1186 | (goto-char start) | 1186 | (goto-char start) |
| 1187 | (while (progn | 1187 | (while (progn |
| 1188 | (skip-chars-forward "^!^" (- (line-end-position) toend)) | 1188 | (skip-chars-forward "^!^" (- (line-end-position) toend)) |
| @@ -1482,7 +1482,8 @@ Similarly for Soar, Scheme, etc." | |||
| 1482 | (concat input "\n"))) | 1482 | (concat input "\n"))) |
| 1483 | 1483 | ||
| 1484 | (let ((beg (marker-position pmark)) | 1484 | (let ((beg (marker-position pmark)) |
| 1485 | (end (if no-newline (point) (1- (point))))) | 1485 | (end (if no-newline (point) (1- (point)))) |
| 1486 | (inhibit-modification-hooks t)) | ||
| 1486 | (when (> end beg) | 1487 | (when (> end beg) |
| 1487 | ;; Set text-properties for the input field | 1488 | ;; Set text-properties for the input field |
| 1488 | (add-text-properties | 1489 | (add-text-properties |
| @@ -1578,7 +1579,8 @@ See `comint-carriage-motion' for details.") | |||
| 1578 | freeze its attributes in place, even when more input comes a long | 1579 | freeze its attributes in place, even when more input comes a long |
| 1579 | and moves the prompt overlay." | 1580 | and moves the prompt overlay." |
| 1580 | (when comint-last-prompt-overlay | 1581 | (when comint-last-prompt-overlay |
| 1581 | (let ((inhibit-read-only t)) | 1582 | (let ((inhibit-read-only t) |
| 1583 | (inhibit-modification-hooks t)) | ||
| 1582 | (add-text-properties (overlay-start comint-last-prompt-overlay) | 1584 | (add-text-properties (overlay-start comint-last-prompt-overlay) |
| 1583 | (overlay-end comint-last-prompt-overlay) | 1585 | (overlay-end comint-last-prompt-overlay) |
| 1584 | (overlay-properties comint-last-prompt-overlay))))) | 1586 | (overlay-properties comint-last-prompt-overlay))))) |
| @@ -1709,7 +1711,8 @@ Make backspaces delete the previous character." | |||
| 1709 | (goto-char (process-mark process)) ; in case a filter moved it | 1711 | (goto-char (process-mark process)) ; in case a filter moved it |
| 1710 | 1712 | ||
| 1711 | (unless comint-use-prompt-regexp-instead-of-fields | 1713 | (unless comint-use-prompt-regexp-instead-of-fields |
| 1712 | (let ((inhibit-read-only t)) | 1714 | (let ((inhibit-read-only t) |
| 1715 | (inhibit-modification-hooks t)) | ||
| 1713 | (add-text-properties comint-last-output-start (point) | 1716 | (add-text-properties comint-last-output-start (point) |
| 1714 | '(rear-nonsticky t | 1717 | '(rear-nonsticky t |
| 1715 | field output | 1718 | field output |
| @@ -1718,7 +1721,8 @@ Make backspaces delete the previous character." | |||
| 1718 | ;; Highlight the prompt, where we define `prompt' to mean | 1721 | ;; Highlight the prompt, where we define `prompt' to mean |
| 1719 | ;; the most recent output that doesn't end with a newline. | 1722 | ;; the most recent output that doesn't end with a newline. |
| 1720 | (let ((prompt-start (save-excursion (forward-line 0) (point))) | 1723 | (let ((prompt-start (save-excursion (forward-line 0) (point))) |
| 1721 | (inhibit-read-only t)) | 1724 | (inhibit-read-only t) |
| 1725 | (inhibit-modification-hooks t)) | ||
| 1722 | (when comint-prompt-read-only | 1726 | (when comint-prompt-read-only |
| 1723 | (or (= (point-min) prompt-start) | 1727 | (or (= (point-min) prompt-start) |
| 1724 | (get-text-property (1- prompt-start) 'read-only) | 1728 | (get-text-property (1- prompt-start) 'read-only) |
| @@ -2347,7 +2351,8 @@ read-only property of `fence', unless it already is read-only. | |||
| 2347 | If the character after point does not have a front-sticky | 2351 | If the character after point does not have a front-sticky |
| 2348 | read-only property, any read-only property of `fence' on the | 2352 | read-only property, any read-only property of `fence' on the |
| 2349 | preceding newline is removed." | 2353 | preceding newline is removed." |
| 2350 | (let* ((pt (point)) (lst (get-text-property pt 'front-sticky))) | 2354 | (let* ((pt (point)) (lst (get-text-property pt 'front-sticky)) |
| 2355 | (inhibit-modification-hooks t)) | ||
| 2351 | (and (bolp) | 2356 | (and (bolp) |
| 2352 | (not (bobp)) | 2357 | (not (bobp)) |
| 2353 | (if (and (get-text-property pt 'read-only) | 2358 | (if (and (get-text-property pt 'read-only) |
| @@ -2966,10 +2971,8 @@ Typing SPC flushes the help buffer." | |||
| 2966 | 2971 | ||
| 2967 | ;; Read the next key, to process SPC. | 2972 | ;; Read the next key, to process SPC. |
| 2968 | (let (key first) | 2973 | (let (key first) |
| 2969 | (if (save-excursion | 2974 | (if (with-current-buffer (get-buffer "*Completions*") |
| 2970 | (set-buffer (get-buffer "*Completions*")) | 2975 | (set (make-local-variable 'comint-displayed-dynamic-completions) |
| 2971 | (set (make-local-variable | ||
| 2972 | 'comint-displayed-dynamic-completions) | ||
| 2973 | completions) | 2976 | completions) |
| 2974 | (setq key (read-key-sequence nil) | 2977 | (setq key (read-key-sequence nil) |
| 2975 | first (aref key 0)) | 2978 | first (aref key 0)) |
diff --git a/lisp/desktop.el b/lisp/desktop.el index a21d132e03b..3888262f02f 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el | |||
| @@ -326,7 +326,7 @@ NAME is the name of the buffer-local variable indicating that the minor | |||
| 326 | mode is active. RESTORE-FUNCTION is the function to activate the minor mode. | 326 | mode is active. RESTORE-FUNCTION is the function to activate the minor mode. |
| 327 | called. RESTORE-FUNCTION nil means don't try to restore the minor mode. | 327 | called. RESTORE-FUNCTION nil means don't try to restore the minor mode. |
| 328 | Only minor modes for which the name of the buffer-local variable | 328 | Only minor modes for which the name of the buffer-local variable |
| 329 | and the name of the minor mode function are different have to added to | 329 | and the name of the minor mode function are different have to be added to |
| 330 | this table." | 330 | this table." |
| 331 | :type 'sexp | 331 | :type 'sexp |
| 332 | :group 'desktop) | 332 | :group 'desktop) |
| @@ -589,16 +589,17 @@ See also `desktop-base-file-name'." | |||
| 589 | major-mode | 589 | major-mode |
| 590 | ;; minor modes | 590 | ;; minor modes |
| 591 | (let (ret) | 591 | (let (ret) |
| 592 | (mapcar | 592 | (mapc |
| 593 | #'(lambda (mim) | 593 | #'(lambda (minor-mode) |
| 594 | (and | 594 | (and |
| 595 | (boundp mim) | 595 | (boundp minor-mode) |
| 596 | (symbol-value mim) | 596 | (symbol-value minor-mode) |
| 597 | (setq ret | 597 | (let ((special (assq minor-mode desktop-minor-mode-table))) |
| 598 | (cons | 598 | (when (or special (functionp minor-mode)) |
| 599 | (let ((special (assq mim desktop-minor-mode-table))) | 599 | (setq ret |
| 600 | (if special (cadr special) mim)) | 600 | (cons |
| 601 | ret)))) | 601 | (if special (cadr special) minor-mode) |
| 602 | ret)))))) | ||
| 602 | (mapcar #'car minor-mode-alist)) | 603 | (mapcar #'car minor-mode-alist)) |
| 603 | ret) | 604 | ret) |
| 604 | (point) | 605 | (point) |
diff --git a/lisp/faces.el b/lisp/faces.el index 06b5ec3fc97..721c2fa3631 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -1809,7 +1809,7 @@ created." | |||
| 1809 | 1809 | ||
| 1810 | ;; Update a frame's faces when we change its default font. | 1810 | ;; Update a frame's faces when we change its default font. |
| 1811 | 1811 | ||
| 1812 | (defalias 'frame-update-faces 'ignore) | 1812 | (defalias 'frame-update-faces 'ignore "") |
| 1813 | (make-obsolete 'frame-update-faces "no longer necessary." "21.1") | 1813 | (make-obsolete 'frame-update-faces "no longer necessary." "21.1") |
| 1814 | 1814 | ||
| 1815 | ;; Update the colors of FACE, after FRAME's own colors have been | 1815 | ;; Update the colors of FACE, after FRAME's own colors have been |
diff --git a/lisp/frame.el b/lisp/frame.el index b02660dff3b..585d78cdc13 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -1350,6 +1350,7 @@ if appropriate. It also arranges to cancel that timer when the next | |||
| 1350 | command starts, by installing a pre-command hook." | 1350 | command starts, by installing a pre-command hook." |
| 1351 | (when (null blink-cursor-timer) | 1351 | (when (null blink-cursor-timer) |
| 1352 | (add-hook 'pre-command-hook 'blink-cursor-end) | 1352 | (add-hook 'pre-command-hook 'blink-cursor-end) |
| 1353 | (internal-show-cursor nil nil) | ||
| 1353 | (setq blink-cursor-timer | 1354 | (setq blink-cursor-timer |
| 1354 | (run-with-timer blink-cursor-interval blink-cursor-interval | 1355 | (run-with-timer blink-cursor-interval blink-cursor-interval |
| 1355 | 'blink-cursor-timer-function)))) | 1356 | 'blink-cursor-timer-function)))) |
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el index 9492d5565f6..96678d2bc9a 100644 --- a/lisp/ibuf-ext.el +++ b/lisp/ibuf-ext.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; ibuf-ext.el --- extensions for ibuffer | 1 | ;;; ibuf-ext.el --- extensions for ibuffer |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Colin Walters <walters@verbum.org> | 5 | ;; Author: Colin Walters <walters@verbum.org> |
| 6 | ;; Maintainer: John Paul Wallington <jpw@gnu.org> | 6 | ;; Maintainer: John Paul Wallington <jpw@gnu.org> |
| @@ -1224,19 +1224,62 @@ to move by. The default is `ibuffer-marked-char'." | |||
| 1224 | 1224 | ||
| 1225 | ;;;###autoload | 1225 | ;;;###autoload |
| 1226 | (defun ibuffer-jump-to-buffer (name) | 1226 | (defun ibuffer-jump-to-buffer (name) |
| 1227 | "Move point to the buffer whose name is NAME." | 1227 | "Move point to the buffer whose name is NAME. |
| 1228 | |||
| 1229 | If called interactively, prompt for a buffer name and go to the | ||
| 1230 | corresponding line in the Ibuffer buffer. If said buffer is in a | ||
| 1231 | hidden group filter, open it. | ||
| 1232 | |||
| 1233 | If `ibuffer-jump-offer-only-visible-buffers' is non-nil, only offer | ||
| 1234 | visible buffers in the completion list. Calling the command with | ||
| 1235 | a prefix argument reverses the meaning of that variable." | ||
| 1228 | (interactive (list nil)) | 1236 | (interactive (list nil)) |
| 1229 | (let ((table (mapcar #'(lambda (x) | 1237 | (let ((only-visible ibuffer-jump-offer-only-visible-buffers)) |
| 1230 | (cons (buffer-name (car x)) | 1238 | (when current-prefix-arg |
| 1231 | (caddr x))) | 1239 | (setq only-visible (not only-visible))) |
| 1232 | (ibuffer-current-state-list t)))) | 1240 | (if only-visible |
| 1233 | (when (null table) | 1241 | (let ((table (mapcar #'(lambda (x) |
| 1234 | (error "No buffers!")) | 1242 | (buffer-name (car x))) |
| 1235 | (when (interactive-p) | 1243 | (ibuffer-current-state-list)))) |
| 1236 | (setq name (completing-read "Jump to buffer: " table nil t))) | 1244 | (when (null table) |
| 1237 | (ibuffer-aif (assoc name table) | 1245 | (error "No buffers!")) |
| 1238 | (goto-char (cdr it)) | 1246 | (when (interactive-p) |
| 1239 | (error "No buffer with name %s" name)))) | 1247 | (setq name (completing-read "Jump to buffer: " |
| 1248 | table nil t)))) | ||
| 1249 | (when (interactive-p) | ||
| 1250 | (setq name (read-buffer "Jump to buffer: " nil t)))) | ||
| 1251 | (when (not (string= "" name)) | ||
| 1252 | (let (buf-point) | ||
| 1253 | ;; Blindly search for our buffer: it is very likely that it is | ||
| 1254 | ;; not in a hidden filter group. | ||
| 1255 | (ibuffer-map-lines #'(lambda (buf marks) | ||
| 1256 | (when (string= (buffer-name buf) name) | ||
| 1257 | (setq buf-point (point)) | ||
| 1258 | nil)) | ||
| 1259 | t nil) | ||
| 1260 | (when (and | ||
| 1261 | (null buf-point) | ||
| 1262 | (not (null ibuffer-hidden-filter-groups))) | ||
| 1263 | ;; We did not find our buffer. It must be in a hidden filter | ||
| 1264 | ;; group, so go through all hidden filter groups to find it. | ||
| 1265 | (catch 'found | ||
| 1266 | (dolist (group ibuffer-hidden-filter-groups) | ||
| 1267 | (ibuffer-jump-to-filter-group group) | ||
| 1268 | (ibuffer-toggle-filter-group) | ||
| 1269 | (ibuffer-map-lines #'(lambda (buf marks) | ||
| 1270 | (when (string= (buffer-name buf) name) | ||
| 1271 | (setq buf-point (point)) | ||
| 1272 | nil)) | ||
| 1273 | t group) | ||
| 1274 | (if buf-point | ||
| 1275 | (throw 'found nil) | ||
| 1276 | (ibuffer-toggle-filter-group))))) | ||
| 1277 | (if (null buf-point) | ||
| 1278 | ;; Still not found even though we expanded all hidden filter | ||
| 1279 | ;; groups: that must be because it's hidden by predicate: | ||
| 1280 | ;; we won't bother trying to display it. | ||
| 1281 | (error "No buffer with name %s" name) | ||
| 1282 | (goto-char buf-point)))))) | ||
| 1240 | 1283 | ||
| 1241 | ;;;###autoload | 1284 | ;;;###autoload |
| 1242 | (defun ibuffer-diff-with-file () | 1285 | (defun ibuffer-diff-with-file () |
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el index ab8290cfae8..fef9b7f811d 100644 --- a/lisp/ibuffer.el +++ b/lisp/ibuffer.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; ibuffer.el --- operate on buffers like dired | 1 | ;;; ibuffer.el --- operate on buffers like dired |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Colin Walters <walters@verbum.org> | 5 | ;; Author: Colin Walters <walters@verbum.org> |
| 6 | ;; Maintainer: John Paul Wallington <jpw@gnu.org> | 6 | ;; Maintainer: John Paul Wallington <jpw@gnu.org> |
| @@ -268,6 +268,12 @@ This variable takes precedence over filtering, and even | |||
| 268 | (const :tag "Always except minibuffer" :value :nomini)) | 268 | (const :tag "Always except minibuffer" :value :nomini)) |
| 269 | :group 'ibuffer) | 269 | :group 'ibuffer) |
| 270 | 270 | ||
| 271 | (defcustom ibuffer-jump-offer-only-visible-buffers nil | ||
| 272 | "If non-nil, only offer buffers visible in the Ibuffer buffer | ||
| 273 | in completion lists of the `ibuffer-jump-to-buffer' command." | ||
| 274 | :type 'boolean | ||
| 275 | :group 'ibuffer) | ||
| 276 | |||
| 271 | (defcustom ibuffer-use-header-line (boundp 'header-line-format) | 277 | (defcustom ibuffer-use-header-line (boundp 'header-line-format) |
| 272 | "If non-nil, display a header line containing current filters." | 278 | "If non-nil, display a header line containing current filters." |
| 273 | :type 'boolean | 279 | :type 'boolean |
| @@ -357,6 +363,7 @@ directory, like `default-directory'." | |||
| 357 | (define-key map (kbd "u") 'ibuffer-unmark-forward) | 363 | (define-key map (kbd "u") 'ibuffer-unmark-forward) |
| 358 | (define-key map (kbd "=") 'ibuffer-diff-with-file) | 364 | (define-key map (kbd "=") 'ibuffer-diff-with-file) |
| 359 | (define-key map (kbd "j") 'ibuffer-jump-to-buffer) | 365 | (define-key map (kbd "j") 'ibuffer-jump-to-buffer) |
| 366 | (define-key map (kbd "M-g") 'ibuffer-jump-to-buffer) | ||
| 360 | (define-key map (kbd "DEL") 'ibuffer-unmark-backward) | 367 | (define-key map (kbd "DEL") 'ibuffer-unmark-backward) |
| 361 | (define-key map (kbd "M-DEL") 'ibuffer-unmark-all) | 368 | (define-key map (kbd "M-DEL") 'ibuffer-unmark-all) |
| 362 | (define-key map (kbd "* *") 'ibuffer-unmark-all) | 369 | (define-key map (kbd "* *") 'ibuffer-unmark-all) |
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index de9d3ef8e2c..c4c7be3a225 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -592,11 +592,9 @@ character code range. Thus FUNC should iterate over [START, END]." | |||
| 592 | (make-char charset (+ i start) start) | 592 | (make-char charset (+ i start) start) |
| 593 | (make-char charset (+ i start) (+ start chars -1))))))) | 593 | (make-char charset (+ i start) (+ start chars -1))))))) |
| 594 | 594 | ||
| 595 | (defun register-char-codings (coding-system safe-chars) | 595 | (defalias 'register-char-codings 'ignore "") |
| 596 | "This is an obsolete function. | ||
| 597 | It exists just for backward compatibility, and it does nothing.") | ||
| 598 | (make-obsolete 'register-char-codings | 596 | (make-obsolete 'register-char-codings |
| 599 | "Unnecessary function. Calling it has no effect." | 597 | "it exists just for backward compatibility, and does nothing." |
| 600 | "21.3") | 598 | "21.3") |
| 601 | 599 | ||
| 602 | (defconst char-coding-system-table nil | 600 | (defconst char-coding-system-table nil |
| @@ -1401,7 +1399,7 @@ Each element must be one of the names listed in the variable | |||
| 1401 | (let* ((M (char-after (+ pos 4))) | 1399 | (let* ((M (char-after (+ pos 4))) |
| 1402 | (L (char-after (+ pos 5))) | 1400 | (L (char-after (+ pos 5))) |
| 1403 | (encoding (match-string 2)) | 1401 | (encoding (match-string 2)) |
| 1404 | (encoding-info (assoc-string | 1402 | (encoding-info (assoc-string |
| 1405 | encoding | 1403 | encoding |
| 1406 | ctext-non-standard-encodings-alist t)) | 1404 | ctext-non-standard-encodings-alist t)) |
| 1407 | (coding (if encoding-info | 1405 | (coding (if encoding-info |
| @@ -1445,7 +1443,7 @@ Each element must be one of the names listed in the variable | |||
| 1445 | (dolist (elt charset) | 1443 | (dolist (elt charset) |
| 1446 | (aset table (make-char elt) slot))) | 1444 | (aset table (make-char elt) slot))) |
| 1447 | ((char-table-p charset) | 1445 | ((char-table-p charset) |
| 1448 | (map-char-table #'(lambda (k v) | 1446 | (map-char-table #'(lambda (k v) |
| 1449 | (if (and v (> k 128)) (aset table k slot))) | 1447 | (if (and v (> k 128)) (aset table k slot))) |
| 1450 | charset)))))) | 1448 | charset)))))) |
| 1451 | table)) | 1449 | table)) |
| @@ -1501,7 +1499,7 @@ text, and convert it in the temporary buffer. Otherwise, convert in-place." | |||
| 1501 | (- (point) last-pos))) | 1499 | (- (point) last-pos))) |
| 1502 | (save-excursion | 1500 | (save-excursion |
| 1503 | (goto-char last-pos) | 1501 | (goto-char last-pos) |
| 1504 | (insert (string-to-multibyte | 1502 | (insert (string-to-multibyte |
| 1505 | (format "\e%%/%d%c%c%s" | 1503 | (format "\e%%/%d%c%c%s" |
| 1506 | noctets | 1504 | noctets |
| 1507 | (+ (/ len 128) 128) | 1505 | (+ (/ len 128) 128) |
| @@ -1668,7 +1666,7 @@ function by default." | |||
| 1668 | (goto-char tail-start) | 1666 | (goto-char tail-start) |
| 1669 | (re-search-forward "[\r\n]\^L" nil t) | 1667 | (re-search-forward "[\r\n]\^L" nil t) |
| 1670 | (if (re-search-forward | 1668 | (if (re-search-forward |
| 1671 | "[\r\n]\\([^[\r\n]*\\)[ \t]*Local Variables:[ \t]*\\([^\r\n]*\\)[\r\n]" | 1669 | "[\r\n]\\([^[\r\n]*\\)[ \t]*Local Variables:[ \t]*\\([^\r\n]*\\)[\r\n]" |
| 1672 | tail-end t) | 1670 | tail-end t) |
| 1673 | ;; The prefix is what comes before "local variables:" in its | 1671 | ;; The prefix is what comes before "local variables:" in its |
| 1674 | ;; line. The suffix is what comes after "local variables:" | 1672 | ;; line. The suffix is what comes after "local variables:" |
| @@ -1688,7 +1686,7 @@ function by default." | |||
| 1688 | "[ \t]*unibyte[ \t]*:[ \t]*\\([^ \t\r\n]+\\)[ \t]*" | 1686 | "[ \t]*unibyte[ \t]*:[ \t]*\\([^ \t\r\n]+\\)[ \t]*" |
| 1689 | suffix "[\r\n]")) | 1687 | suffix "[\r\n]")) |
| 1690 | (re-end | 1688 | (re-end |
| 1691 | (concat "[\r\n]" prefix "[ \t]*End *:[ \t]*" suffix | 1689 | (concat "[\r\n]" prefix "[ \t]*End *:[ \t]*" suffix |
| 1692 | "[\r\n]?")) | 1690 | "[\r\n]?")) |
| 1693 | (pos (1- (point)))) | 1691 | (pos (1- (point)))) |
| 1694 | (forward-char -1) ; skip back \r or \n. | 1692 | (forward-char -1) ; skip back \r or \n. |
diff --git a/lisp/minibuf-eldef.el b/lisp/minibuf-eldef.el index 10bf38f945f..908b77aab33 100644 --- a/lisp/minibuf-eldef.el +++ b/lisp/minibuf-eldef.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; minibuf-eldef.el --- Only show defaults in prompts when applicable | 1 | ;;; minibuf-eldef.el --- Only show defaults in prompts when applicable |
| 2 | ;; | 2 | ;; |
| 3 | ;; Copyright (C) 2000, 2001 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2000, 2001, 2004 Free Software Foundation, Inc. |
| 4 | ;; | 4 | ;; |
| 5 | ;; Author: Miles Bader <miles@gnu.org> | 5 | ;; Author: Miles Bader <miles@gnu.org> |
| 6 | ;; Keywords: convenience | 6 | ;; Keywords: convenience |
| @@ -36,7 +36,7 @@ | |||
| 36 | ;;; Code: | 36 | ;;; Code: |
| 37 | 37 | ||
| 38 | (defvar minibuffer-default-in-prompt-regexps | 38 | (defvar minibuffer-default-in-prompt-regexps |
| 39 | '(("\\( (default\\>.*)\\):? \\'" . 1)) | 39 | '(("\\( (default\\>.*)\\):? \\'" . 1) ("\\( \\[.*\\]\\):? *\\'" . 1)) |
| 40 | "*A list of regexps matching the parts of minibuffer prompts showing defaults. | 40 | "*A list of regexps matching the parts of minibuffer prompts showing defaults. |
| 41 | When `minibuffer-electric-default-mode' is active, these regexps are | 41 | When `minibuffer-electric-default-mode' is active, these regexps are |
| 42 | used to identify the portions of prompts to elide. | 42 | used to identify the portions of prompts to elide. |
| @@ -157,5 +157,5 @@ Returns non-nil if the new state is enabled." | |||
| 157 | 157 | ||
| 158 | (provide 'minibuf-eldef) | 158 | (provide 'minibuf-eldef) |
| 159 | 159 | ||
| 160 | ;;; arch-tag: 7e421fae-c275-4729-b0da-7836af377d3d | 160 | ;; arch-tag: 7e421fae-c275-4729-b0da-7836af377d3d |
| 161 | ;;; minibuf-eldef.el ends here | 161 | ;;; minibuf-eldef.el ends here |
diff --git a/lisp/subr.el b/lisp/subr.el index cd52efcebde..747f1925ad5 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -851,9 +851,11 @@ and `event-end' functions." | |||
| 851 | (make-obsolete 'dot-min 'point-min "before 19.15") | 851 | (make-obsolete 'dot-min 'point-min "before 19.15") |
| 852 | (make-obsolete 'dot-marker 'point-marker "before 19.15") | 852 | (make-obsolete 'dot-marker 'point-marker "before 19.15") |
| 853 | (make-obsolete 'buffer-flush-undo 'buffer-disable-undo "before 19.15") | 853 | (make-obsolete 'buffer-flush-undo 'buffer-disable-undo "before 19.15") |
| 854 | (make-obsolete 'baud-rate "use the baud-rate variable instead." "before 19.15") | 854 | (make-obsolete 'baud-rate "use the `baud-rate' variable instead." "before 19.15") |
| 855 | (make-obsolete 'compiled-function-p 'byte-code-function-p "before 19.15") | 855 | (make-obsolete 'compiled-function-p 'byte-code-function-p "before 19.15") |
| 856 | (make-obsolete 'define-function 'defalias "20.1") | 856 | (make-obsolete 'define-function 'defalias "20.1") |
| 857 | (make-obsolete 'focus-frame "it does nothing." "19.32") | ||
| 858 | (make-obsolete 'unfocus-frame "it does nothing." "19.32") | ||
| 857 | 859 | ||
| 858 | (defun insert-string (&rest args) | 860 | (defun insert-string (&rest args) |
| 859 | "Mocklisp-compatibility insert function. | 861 | "Mocklisp-compatibility insert function. |
| @@ -870,8 +872,8 @@ is converted into a string by expressing it in decimal." | |||
| 870 | "Return the value of the `baud-rate' variable." | 872 | "Return the value of the `baud-rate' variable." |
| 871 | baud-rate) | 873 | baud-rate) |
| 872 | 874 | ||
| 873 | (defalias 'focus-frame 'ignore) | 875 | (defalias 'focus-frame 'ignore "") |
| 874 | (defalias 'unfocus-frame 'ignore) | 876 | (defalias 'unfocus-frame 'ignore "") |
| 875 | 877 | ||
| 876 | 878 | ||
| 877 | ;;;; Obsolescence declarations for variables. | 879 | ;;;; Obsolescence declarations for variables. |
| @@ -1186,7 +1188,7 @@ Optional args SENTINEL and FILTER specify the sentinel and filter | |||
| 1186 | ;; compatibility | 1188 | ;; compatibility |
| 1187 | 1189 | ||
| 1188 | (make-obsolete 'process-kill-without-query | 1190 | (make-obsolete 'process-kill-without-query |
| 1189 | "use `process-query-on-exit-flag'\nor `set-process-query-on-exit-flag'." | 1191 | "use `process-query-on-exit-flag' or `set-process-query-on-exit-flag'." |
| 1190 | "21.5") | 1192 | "21.5") |
| 1191 | (defun process-kill-without-query (process &optional flag) | 1193 | (defun process-kill-without-query (process &optional flag) |
| 1192 | "Say no query needed if PROCESS is running when Emacs is exited. | 1194 | "Say no query needed if PROCESS is running when Emacs is exited. |
| @@ -1333,9 +1335,11 @@ Optional DEFAULT is a default password to use instead of empty input." | |||
| 1333 | (let ((n nil)) | 1335 | (let ((n nil)) |
| 1334 | (when default | 1336 | (when default |
| 1335 | (setq prompt | 1337 | (setq prompt |
| 1336 | (if (string-match "\\(\\):[^:]*" prompt) | 1338 | (if (string-match "\\(\\):[ \t]*\\'" prompt) |
| 1337 | (replace-match (format " [%s]" default) t t prompt 1) | 1339 | (replace-match (format " (default %s)" default) t t prompt 1) |
| 1338 | (concat prompt (format " [%s] " default))))) | 1340 | (replace-regexp-in-string "[ \t]*\\'" |
| 1341 | (format " (default %s) " default) | ||
| 1342 | prompt t t)))) | ||
| 1339 | (while | 1343 | (while |
| 1340 | (progn | 1344 | (progn |
| 1341 | (let ((str (read-from-minibuffer prompt nil nil nil nil | 1345 | (let ((str (read-from-minibuffer prompt nil nil nil nil |
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 99e693abb94..15348205c51 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el | |||
| @@ -1793,7 +1793,7 @@ Formats current entry according to variable `bibtex-entry-format'." | |||
| 1793 | (goto-char (point-min)) | 1793 | (goto-char (point-min)) |
| 1794 | (let* ((fields-alist (bibtex-parse-entry)) | 1794 | (let* ((fields-alist (bibtex-parse-entry)) |
| 1795 | (case-fold-search t) | 1795 | (case-fold-search t) |
| 1796 | (field (bibtex-assoc-regexp "\\(OPT\\)?crossref\\>" | 1796 | (field (bibtex-assoc-regexp "\\`\\(OPT\\)?crossref\\'" |
| 1797 | fields-alist))) | 1797 | fields-alist))) |
| 1798 | (setq crossref-key (and field | 1798 | (setq crossref-key (and field |
| 1799 | (not (string-match bibtex-empty-field-re | 1799 | (not (string-match bibtex-empty-field-re |
| @@ -1807,7 +1807,7 @@ Formats current entry according to variable `bibtex-entry-format'." | |||
| 1807 | (when (nth 3 rfield) ; we should have an alternative | 1807 | (when (nth 3 rfield) ; we should have an alternative |
| 1808 | (setq alternatives-there t | 1808 | (setq alternatives-there t |
| 1809 | field (bibtex-assoc-regexp | 1809 | field (bibtex-assoc-regexp |
| 1810 | (concat "\\(ALT\\)?" (car rfield) "\\>") | 1810 | (concat "\\`\\(ALT\\)?" (car rfield) "\\'") |
| 1811 | fields-alist)) | 1811 | fields-alist)) |
| 1812 | (if (and field | 1812 | (if (and field |
| 1813 | (not (string-match bibtex-empty-field-re | 1813 | (not (string-match bibtex-empty-field-re |
| @@ -2317,7 +2317,7 @@ Return alist of strings if parsing was completed, `aborted' otherwise." | |||
| 2317 | ;; user has aborted by typing a key --> return `aborted' | 2317 | ;; user has aborted by typing a key --> return `aborted' |
| 2318 | (throw 'userkey 'aborted)) | 2318 | (throw 'userkey 'aborted)) |
| 2319 | (setq key (bibtex-reference-key-in-string bounds)) | 2319 | (setq key (bibtex-reference-key-in-string bounds)) |
| 2320 | (if (not (assoc-string key strings t)) | 2320 | (if (not (assoc key strings)) |
| 2321 | (push (cons key (bibtex-text-in-string bounds t)) | 2321 | (push (cons key (bibtex-text-in-string bounds t)) |
| 2322 | strings)) | 2322 | strings)) |
| 2323 | (goto-char (bibtex-end-of-text-in-string bounds))) | 2323 | (goto-char (bibtex-end-of-text-in-string bounds))) |
| @@ -2722,24 +2722,27 @@ according to `bibtex-entry-field-alist', but are not yet present." | |||
| 2722 | (let* ((fields-alist (bibtex-parse-entry)) | 2722 | (let* ((fields-alist (bibtex-parse-entry)) |
| 2723 | (field-list (bibtex-field-list | 2723 | (field-list (bibtex-field-list |
| 2724 | (substring (cdr (assoc "=type=" fields-alist)) | 2724 | (substring (cdr (assoc "=type=" fields-alist)) |
| 2725 | 1)))) ; don't want @ | 2725 | 1))) ; don't want @ |
| 2726 | (case-fold-search t)) | ||
| 2726 | (dolist (field (car field-list)) | 2727 | (dolist (field (car field-list)) |
| 2727 | (unless (assoc-string (car field) fields-alist t) | 2728 | (unless (bibtex-assoc-regexp (concat "\\`\\(ALT\\)?" (car field) "\\'") |
| 2729 | fields-alist) | ||
| 2728 | (bibtex-make-field field))) | 2730 | (bibtex-make-field field))) |
| 2729 | (dolist (field (cdr field-list)) | 2731 | (dolist (field (cdr field-list)) |
| 2730 | (unless (assoc-string (car field) fields-alist t) | 2732 | (unless (bibtex-assoc-regexp (concat "\\`\\(OPT\\)?" (car field) "\\'") |
| 2733 | fields-alist) | ||
| 2731 | (bibtex-make-optional-field field)))))) | 2734 | (bibtex-make-optional-field field)))))) |
| 2732 | 2735 | ||
| 2733 | (defun bibtex-parse-entry () | 2736 | (defun bibtex-parse-entry () |
| 2734 | "Parse entry at point, return an alist. | 2737 | "Parse entry at point, return an alist. |
| 2735 | The alist elements have the form (FIELD . TEXT), where FIELD can also be | 2738 | The alist elements have the form (FIELD . TEXT), where FIELD can also be |
| 2736 | the special strings \"=type=\" and \"=key=\". | 2739 | the special strings \"=type=\" and \"=key=\". For the FIELD \"=key=\" |
| 2737 | Move point to the end of the last field." | 2740 | TEXT may be nil. Move point to the end of the last field." |
| 2738 | (let (alist bounds) | 2741 | (let (alist bounds) |
| 2739 | (when (looking-at bibtex-entry-head) | 2742 | (when (looking-at bibtex-entry-maybe-empty-head) |
| 2740 | (push (cons "=type=" (match-string bibtex-type-in-head)) alist) | 2743 | (push (cons "=type=" (match-string bibtex-type-in-head)) alist) |
| 2741 | (push (cons "=key=" (match-string bibtex-key-in-head)) alist) | 2744 | (push (cons "=key=" (match-string bibtex-key-in-head)) alist) |
| 2742 | (goto-char (match-end bibtex-key-in-head)) | 2745 | (goto-char (match-end 0)) |
| 2743 | (while (setq bounds (bibtex-parse-field bibtex-field-name)) | 2746 | (while (setq bounds (bibtex-parse-field bibtex-field-name)) |
| 2744 | (push (cons (bibtex-name-in-field bounds) | 2747 | (push (cons (bibtex-name-in-field bounds) |
| 2745 | (bibtex-text-in-field-bounds bounds)) | 2748 | (bibtex-text-in-field-bounds bounds)) |
diff --git a/lisp/vc-arch.el b/lisp/vc-arch.el index 6c67581a5a8..a439174556e 100644 --- a/lisp/vc-arch.el +++ b/lisp/vc-arch.el | |||
| @@ -272,7 +272,7 @@ Return non-nil if FILE is unchanged." | |||
| 272 | ;; Buh? Unexpected format. | 272 | ;; Buh? Unexpected format. |
| 273 | 'edited | 273 | 'edited |
| 274 | (let ((ats (file-attributes file))) | 274 | (let ((ats (file-attributes file))) |
| 275 | (if (and (= (nth 7 ats) (string-to-number (match-string 2))) | 275 | (if (and (eq (nth 7 ats) (string-to-number (match-string 2))) |
| 276 | (equal (format-time-string "%s" (nth 5 ats)) | 276 | (equal (format-time-string "%s" (nth 5 ats)) |
| 277 | (match-string 1))) | 277 | (match-string 1))) |
| 278 | 'up-to-date | 278 | 'up-to-date |
diff --git a/src/ChangeLog b/src/ChangeLog index 4be50d1108d..fd108641f22 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,23 @@ | |||
| 1 | 2004-06-03 Juanma Barranquero <lektu@terra.es> | ||
| 2 | |||
| 3 | * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command) | ||
| 4 | (Vw32_color_map): Fix typo in docstring. | ||
| 5 | (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip) | ||
| 6 | (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key): | ||
| 7 | Make argument names match their use in docstring. | ||
| 8 | |||
| 9 | 2004-06-02 Juanma Barranquero <lektu@terra.es> | ||
| 10 | |||
| 11 | Work around bugs/problems with MinGW builds of graphics libraries | ||
| 12 | called from MSVC builds of Emacs. | ||
| 13 | |||
| 14 | * image.c (lookup_image): Make pointer to img static. | ||
| 15 | (png_read_from_memory): Disable "global" optimization. | ||
| 16 | |||
| 17 | 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 18 | |||
| 19 | * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true. | ||
| 20 | |||
| 1 | 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 21 | 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 22 | ||
| 3 | * macfns.c: Don't include ccl.h. | 23 | * macfns.c: Don't include ccl.h. |
| @@ -13,7 +33,7 @@ | |||
| 13 | (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c. | 33 | (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c. |
| 14 | (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size, | 34 | (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size, |
| 15 | and last_show_tip_args. | 35 | and last_show_tip_args. |
| 16 | 36 | ||
| 17 | * macgui.h [!MAC_OSX]: Include Gestalt.h. | 37 | * macgui.h [!MAC_OSX]: Include Gestalt.h. |
| 18 | (Cursor, No_Cursor): New defines. | 38 | (Cursor, No_Cursor): New defines. |
| 19 | [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility | 39 | [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility |
| @@ -2012,7 +2032,7 @@ | |||
| 2012 | completion-regexp-list. Define Qcase_fold_search and staticpro it. | 2032 | completion-regexp-list. Define Qcase_fold_search and staticpro it. |
| 2013 | (read_minibuf): Fix initial comment. | 2033 | (read_minibuf): Fix initial comment. |
| 2014 | (Ftry_completion, Fall_completions, Ftest_completion): Bind | 2034 | (Ftry_completion, Fall_completions, Ftest_completion): Bind |
| 2015 | case-fold-serach to the value of completion-ignore-case when | 2035 | case-fold-search to the value of completion-ignore-case when |
| 2016 | checking completion-regexp-list. | 2036 | checking completion-regexp-list. |
| 2017 | (Fdisplay_completion_list): Make it handle arguments that are | 2037 | (Fdisplay_completion_list): Make it handle arguments that are |
| 2018 | symbols. Doc fix. | 2038 | symbols. Doc fix. |
| @@ -8620,7 +8640,7 @@ | |||
| 8620 | 8640 | ||
| 8621 | 2002-08-19 Kim F. Storm <storm@cua.dk> | 8641 | 2002-08-19 Kim F. Storm <storm@cua.dk> |
| 8622 | 8642 | ||
| 8623 | * keyboard.c (Fclear_this_command_keys): Added optional arg | 8643 | * keyboard.c (Fclear_this_command_keys): Add optional arg |
| 8624 | KEEP-RECORD to avoid clearing lossage when we just want to clear | 8644 | KEEP-RECORD to avoid clearing lossage when we just want to clear |
| 8625 | the current key sequence (kmacro needs this). | 8645 | the current key sequence (kmacro needs this). |
| 8626 | 8646 | ||
diff --git a/src/eval.c b/src/eval.c index 921a7533a60..e1da1def446 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -1220,7 +1220,7 @@ VAR may be nil; then you do not get access to the signal information. | |||
| 1220 | 1220 | ||
| 1221 | The value of the last BODY form is returned from the condition-case. | 1221 | The value of the last BODY form is returned from the condition-case. |
| 1222 | See also the function `signal' for more info. | 1222 | See also the function `signal' for more info. |
| 1223 | usage: (condition-case VAR BODYFORM HANDLERS...) */) | 1223 | usage: (condition-case VAR BODYFORM &rest HANDLERS) */) |
| 1224 | (args) | 1224 | (args) |
| 1225 | Lisp_Object args; | 1225 | Lisp_Object args; |
| 1226 | { | 1226 | { |
| @@ -1235,10 +1235,10 @@ usage: (condition-case VAR BODYFORM HANDLERS...) */) | |||
| 1235 | handlers = Fcdr (Fcdr (args)); | 1235 | handlers = Fcdr (Fcdr (args)); |
| 1236 | CHECK_SYMBOL (var); | 1236 | CHECK_SYMBOL (var); |
| 1237 | 1237 | ||
| 1238 | for (val = handlers; ! NILP (val); val = Fcdr (val)) | 1238 | for (val = handlers; CONSP (val); val = XCDR (val)) |
| 1239 | { | 1239 | { |
| 1240 | Lisp_Object tem; | 1240 | Lisp_Object tem; |
| 1241 | tem = Fcar (val); | 1241 | tem = XCAR (val); |
| 1242 | if (! (NILP (tem) | 1242 | if (! (NILP (tem) |
| 1243 | || (CONSP (tem) | 1243 | || (CONSP (tem) |
| 1244 | && (SYMBOLP (XCAR (tem)) | 1244 | && (SYMBOLP (XCAR (tem)) |
diff --git a/src/image.c b/src/image.c index 700ab3fa2d9..3c53903b4b4 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -213,7 +213,7 @@ XDestroyImage (ximg) | |||
| 213 | { | 213 | { |
| 214 | UnlockPixels (GetGWorldPixMap (ximg)); | 214 | UnlockPixels (GetGWorldPixMap (ximg)); |
| 215 | } | 215 | } |
| 216 | #endif | 216 | #endif /* MAC_OS */ |
| 217 | 217 | ||
| 218 | 218 | ||
| 219 | /* Functions to access the contents of a bitmap, given an id. */ | 219 | /* Functions to access the contents of a bitmap, given an id. */ |
| @@ -1596,6 +1596,11 @@ lookup_image (f, spec) | |||
| 1596 | Lisp_Object spec; | 1596 | Lisp_Object spec; |
| 1597 | { | 1597 | { |
| 1598 | struct image_cache *c = FRAME_X_IMAGE_CACHE (f); | 1598 | struct image_cache *c = FRAME_X_IMAGE_CACHE (f); |
| 1599 | #ifdef _MSC_VER | ||
| 1600 | /* Work around a problem with MinGW builds of graphics libraries | ||
| 1601 | not honoring calling conventions. */ | ||
| 1602 | static | ||
| 1603 | #endif | ||
| 1599 | struct image *img; | 1604 | struct image *img; |
| 1600 | int i; | 1605 | int i; |
| 1601 | unsigned hash; | 1606 | unsigned hash; |
| @@ -4238,7 +4243,7 @@ xpm_load (f, img) | |||
| 4238 | } | 4243 | } |
| 4239 | 4244 | ||
| 4240 | #endif /* MAC_OS */ | 4245 | #endif /* MAC_OS */ |
| 4241 | 4246 | ||
| 4242 | 4247 | ||
| 4243 | 4248 | ||
| 4244 | /*********************************************************************** | 4249 | /*********************************************************************** |
| @@ -5688,6 +5693,12 @@ struct png_memory_storage | |||
| 5688 | PNG_PTR is a pointer to the PNG control structure. Copy LENGTH | 5693 | PNG_PTR is a pointer to the PNG control structure. Copy LENGTH |
| 5689 | bytes from the input to DATA. */ | 5694 | bytes from the input to DATA. */ |
| 5690 | 5695 | ||
| 5696 | #ifdef _MSC_VER | ||
| 5697 | /* Work around a problem with MinGW builds of graphics libraries | ||
| 5698 | not honoring calling conventions. */ | ||
| 5699 | #pragma optimize("g", off) | ||
| 5700 | #endif | ||
| 5701 | |||
| 5691 | static void | 5702 | static void |
| 5692 | png_read_from_memory (png_ptr, data, length) | 5703 | png_read_from_memory (png_ptr, data, length) |
| 5693 | png_structp png_ptr; | 5704 | png_structp png_ptr; |
| @@ -5704,6 +5715,11 @@ png_read_from_memory (png_ptr, data, length) | |||
| 5704 | tbr->index = tbr->index + length; | 5715 | tbr->index = tbr->index + length; |
| 5705 | } | 5716 | } |
| 5706 | 5717 | ||
| 5718 | #ifdef _MSC_VER | ||
| 5719 | /* Restore normal optimization, as specified on the command line. */ | ||
| 5720 | #pragma optimize("", on) | ||
| 5721 | #endif | ||
| 5722 | |||
| 5707 | /* Load PNG image IMG for use on frame F. Value is non-zero if | 5723 | /* Load PNG image IMG for use on frame F. Value is non-zero if |
| 5708 | successful. */ | 5724 | successful. */ |
| 5709 | 5725 | ||
diff --git a/src/mem-limits.h b/src/mem-limits.h index 578cf59f12e..57a79863a1b 100644 --- a/src/mem-limits.h +++ b/src/mem-limits.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Includes for memory limit warnings. | 1 | /* Includes for memory limit warnings. |
| 2 | Copyright (C) 1990, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. | 2 | Copyright (C) 1990, 93, 94, 95, 1996, 2004 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -81,7 +81,9 @@ typedef unsigned long SIZE; | |||
| 81 | #define NULL ((POINTER) 0) | 81 | #define NULL ((POINTER) 0) |
| 82 | 82 | ||
| 83 | extern POINTER start_of_data (); | 83 | extern POINTER start_of_data (); |
| 84 | #ifdef DATA_SEG_BITS | 84 | #if defined USE_LSB_TAG |
| 85 | #define EXCEEDS_LISP_PTR(ptr) 0 | ||
| 86 | #elif defined DATA_SEG_BITS | ||
| 85 | #define EXCEEDS_LISP_PTR(ptr) \ | 87 | #define EXCEEDS_LISP_PTR(ptr) \ |
| 86 | (((EMACS_UINT) (ptr) & ~DATA_SEG_BITS) >> VALBITS) | 88 | (((EMACS_UINT) (ptr) & ~DATA_SEG_BITS) >> VALBITS) |
| 87 | #else | 89 | #else |
diff --git a/src/w32fns.c b/src/w32fns.c index c0c66a9591e..e7ead136ced 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Graphical user interface functions for the Microsoft W32 API. | 1 | /* Graphical user interface functions for the Microsoft W32 API. |
| 2 | Copyright (C) 1989, 92, 93, 94, 95, 96, 97, 98, 1999, 2000, 01, 2004 | 2 | Copyright (C) 1989, 1992, 93, 94, 95, 96, 97, 98, 99, 2000, 01, 04 |
| 3 | Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -4045,15 +4045,15 @@ DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, | |||
| 4045 | 1, 1, 0, | 4045 | 1, 1, 0, |
| 4046 | doc: /* Make a new window, which is called a \"frame\" in Emacs terms. | 4046 | doc: /* Make a new window, which is called a \"frame\" in Emacs terms. |
| 4047 | Returns an Emacs frame object. | 4047 | Returns an Emacs frame object. |
| 4048 | ALIST is an alist of frame parameters. | 4048 | PARAMETERS is an alist of frame parameters. |
| 4049 | If the parameters specify that the frame should not have a minibuffer, | 4049 | If the parameters specify that the frame should not have a minibuffer, |
| 4050 | and do not specify a specific minibuffer window to use, | 4050 | and do not specify a specific minibuffer window to use, |
| 4051 | then `default-minibuffer-frame' must be a frame whose minibuffer can | 4051 | then `default-minibuffer-frame' must be a frame whose minibuffer can |
| 4052 | be shared by the new frame. | 4052 | be shared by the new frame. |
| 4053 | 4053 | ||
| 4054 | This function is an internal primitive--use `make-frame' instead. */) | 4054 | This function is an internal primitive--use `make-frame' instead. */) |
| 4055 | (parms) | 4055 | (parameters) |
| 4056 | Lisp_Object parms; | 4056 | Lisp_Object parameters; |
| 4057 | { | 4057 | { |
| 4058 | struct frame *f; | 4058 | struct frame *f; |
| 4059 | Lisp_Object frame, tem; | 4059 | Lisp_Object frame, tem; |
| @@ -4074,7 +4074,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4074 | until we know if this frame has a specified name. */ | 4074 | until we know if this frame has a specified name. */ |
| 4075 | Vx_resource_name = Vinvocation_name; | 4075 | Vx_resource_name = Vinvocation_name; |
| 4076 | 4076 | ||
| 4077 | display = w32_get_arg (parms, Qdisplay, 0, 0, RES_TYPE_STRING); | 4077 | display = w32_get_arg (parameters, Qdisplay, 0, 0, RES_TYPE_STRING); |
| 4078 | if (EQ (display, Qunbound)) | 4078 | if (EQ (display, Qunbound)) |
| 4079 | display = Qnil; | 4079 | display = Qnil; |
| 4080 | dpyinfo = check_x_display_info (display); | 4080 | dpyinfo = check_x_display_info (display); |
| @@ -4084,7 +4084,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4084 | kb = &the_only_kboard; | 4084 | kb = &the_only_kboard; |
| 4085 | #endif | 4085 | #endif |
| 4086 | 4086 | ||
| 4087 | name = w32_get_arg (parms, Qname, "name", "Name", RES_TYPE_STRING); | 4087 | name = w32_get_arg (parameters, Qname, "name", "Name", RES_TYPE_STRING); |
| 4088 | if (!STRINGP (name) | 4088 | if (!STRINGP (name) |
| 4089 | && ! EQ (name, Qunbound) | 4089 | && ! EQ (name, Qunbound) |
| 4090 | && ! NILP (name)) | 4090 | && ! NILP (name)) |
| @@ -4094,7 +4094,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4094 | Vx_resource_name = name; | 4094 | Vx_resource_name = name; |
| 4095 | 4095 | ||
| 4096 | /* See if parent window is specified. */ | 4096 | /* See if parent window is specified. */ |
| 4097 | parent = w32_get_arg (parms, Qparent_id, NULL, NULL, RES_TYPE_NUMBER); | 4097 | parent = w32_get_arg (parameters, Qparent_id, NULL, NULL, RES_TYPE_NUMBER); |
| 4098 | if (EQ (parent, Qunbound)) | 4098 | if (EQ (parent, Qunbound)) |
| 4099 | parent = Qnil; | 4099 | parent = Qnil; |
| 4100 | if (! NILP (parent)) | 4100 | if (! NILP (parent)) |
| @@ -4104,8 +4104,8 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4104 | /* No need to protect DISPLAY because that's not used after passing | 4104 | /* No need to protect DISPLAY because that's not used after passing |
| 4105 | it to make_frame_without_minibuffer. */ | 4105 | it to make_frame_without_minibuffer. */ |
| 4106 | frame = Qnil; | 4106 | frame = Qnil; |
| 4107 | GCPRO4 (parms, parent, name, frame); | 4107 | GCPRO4 (parameters, parent, name, frame); |
| 4108 | tem = w32_get_arg (parms, Qminibuffer, "minibuffer", "Minibuffer", | 4108 | tem = w32_get_arg (parameters, Qminibuffer, "minibuffer", "Minibuffer", |
| 4109 | RES_TYPE_SYMBOL); | 4109 | RES_TYPE_SYMBOL); |
| 4110 | if (EQ (tem, Qnone) || NILP (tem)) | 4110 | if (EQ (tem, Qnone) || NILP (tem)) |
| 4111 | f = make_frame_without_minibuffer (Qnil, kb, display); | 4111 | f = make_frame_without_minibuffer (Qnil, kb, display); |
| @@ -4135,7 +4135,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4135 | record_unwind_protect (unwind_create_frame, frame); | 4135 | record_unwind_protect (unwind_create_frame, frame); |
| 4136 | 4136 | ||
| 4137 | f->icon_name | 4137 | f->icon_name |
| 4138 | = w32_get_arg (parms, Qicon_name, "iconName", "Title", RES_TYPE_STRING); | 4138 | = w32_get_arg (parameters, Qicon_name, "iconName", "Title", RES_TYPE_STRING); |
| 4139 | if (! STRINGP (f->icon_name)) | 4139 | if (! STRINGP (f->icon_name)) |
| 4140 | f->icon_name = Qnil; | 4140 | f->icon_name = Qnil; |
| 4141 | 4141 | ||
| @@ -4177,7 +4177,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4177 | { | 4177 | { |
| 4178 | Lisp_Object font; | 4178 | Lisp_Object font; |
| 4179 | 4179 | ||
| 4180 | font = w32_get_arg (parms, Qfont, "font", "Font", RES_TYPE_STRING); | 4180 | font = w32_get_arg (parameters, Qfont, "font", "Font", RES_TYPE_STRING); |
| 4181 | 4181 | ||
| 4182 | BLOCK_INPUT; | 4182 | BLOCK_INPUT; |
| 4183 | /* First, try whatever font the caller has specified. */ | 4183 | /* First, try whatever font the caller has specified. */ |
| @@ -4201,49 +4201,49 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4201 | if (! STRINGP (font)) | 4201 | if (! STRINGP (font)) |
| 4202 | font = build_string ("Fixedsys"); | 4202 | font = build_string ("Fixedsys"); |
| 4203 | 4203 | ||
| 4204 | x_default_parameter (f, parms, Qfont, font, | 4204 | x_default_parameter (f, parameters, Qfont, font, |
| 4205 | "font", "Font", RES_TYPE_STRING); | 4205 | "font", "Font", RES_TYPE_STRING); |
| 4206 | } | 4206 | } |
| 4207 | 4207 | ||
| 4208 | x_default_parameter (f, parms, Qborder_width, make_number (2), | 4208 | x_default_parameter (f, parameters, Qborder_width, make_number (2), |
| 4209 | "borderWidth", "BorderWidth", RES_TYPE_NUMBER); | 4209 | "borderWidth", "BorderWidth", RES_TYPE_NUMBER); |
| 4210 | /* This defaults to 2 in order to match xterm. We recognize either | 4210 | /* This defaults to 2 in order to match xterm. We recognize either |
| 4211 | internalBorderWidth or internalBorder (which is what xterm calls | 4211 | internalBorderWidth or internalBorder (which is what xterm calls |
| 4212 | it). */ | 4212 | it). */ |
| 4213 | if (NILP (Fassq (Qinternal_border_width, parms))) | 4213 | if (NILP (Fassq (Qinternal_border_width, parameters))) |
| 4214 | { | 4214 | { |
| 4215 | Lisp_Object value; | 4215 | Lisp_Object value; |
| 4216 | 4216 | ||
| 4217 | value = w32_get_arg (parms, Qinternal_border_width, | 4217 | value = w32_get_arg (parameters, Qinternal_border_width, |
| 4218 | "internalBorder", "InternalBorder", RES_TYPE_NUMBER); | 4218 | "internalBorder", "InternalBorder", RES_TYPE_NUMBER); |
| 4219 | if (! EQ (value, Qunbound)) | 4219 | if (! EQ (value, Qunbound)) |
| 4220 | parms = Fcons (Fcons (Qinternal_border_width, value), | 4220 | parameters = Fcons (Fcons (Qinternal_border_width, value), |
| 4221 | parms); | 4221 | parameters); |
| 4222 | } | 4222 | } |
| 4223 | /* Default internalBorderWidth to 0 on Windows to match other programs. */ | 4223 | /* Default internalBorderWidth to 0 on Windows to match other programs. */ |
| 4224 | x_default_parameter (f, parms, Qinternal_border_width, make_number (0), | 4224 | x_default_parameter (f, parameters, Qinternal_border_width, make_number (0), |
| 4225 | "internalBorderWidth", "InternalBorder", RES_TYPE_NUMBER); | 4225 | "internalBorderWidth", "InternalBorder", RES_TYPE_NUMBER); |
| 4226 | x_default_parameter (f, parms, Qvertical_scroll_bars, Qright, | 4226 | x_default_parameter (f, parameters, Qvertical_scroll_bars, Qright, |
| 4227 | "verticalScrollBars", "ScrollBars", RES_TYPE_SYMBOL); | 4227 | "verticalScrollBars", "ScrollBars", RES_TYPE_SYMBOL); |
| 4228 | 4228 | ||
| 4229 | /* Also do the stuff which must be set before the window exists. */ | 4229 | /* Also do the stuff which must be set before the window exists. */ |
| 4230 | x_default_parameter (f, parms, Qforeground_color, build_string ("black"), | 4230 | x_default_parameter (f, parameters, Qforeground_color, build_string ("black"), |
| 4231 | "foreground", "Foreground", RES_TYPE_STRING); | 4231 | "foreground", "Foreground", RES_TYPE_STRING); |
| 4232 | x_default_parameter (f, parms, Qbackground_color, build_string ("white"), | 4232 | x_default_parameter (f, parameters, Qbackground_color, build_string ("white"), |
| 4233 | "background", "Background", RES_TYPE_STRING); | 4233 | "background", "Background", RES_TYPE_STRING); |
| 4234 | x_default_parameter (f, parms, Qmouse_color, build_string ("black"), | 4234 | x_default_parameter (f, parameters, Qmouse_color, build_string ("black"), |
| 4235 | "pointerColor", "Foreground", RES_TYPE_STRING); | 4235 | "pointerColor", "Foreground", RES_TYPE_STRING); |
| 4236 | x_default_parameter (f, parms, Qcursor_color, build_string ("black"), | 4236 | x_default_parameter (f, parameters, Qcursor_color, build_string ("black"), |
| 4237 | "cursorColor", "Foreground", RES_TYPE_STRING); | 4237 | "cursorColor", "Foreground", RES_TYPE_STRING); |
| 4238 | x_default_parameter (f, parms, Qborder_color, build_string ("black"), | 4238 | x_default_parameter (f, parameters, Qborder_color, build_string ("black"), |
| 4239 | "borderColor", "BorderColor", RES_TYPE_STRING); | 4239 | "borderColor", "BorderColor", RES_TYPE_STRING); |
| 4240 | x_default_parameter (f, parms, Qscreen_gamma, Qnil, | 4240 | x_default_parameter (f, parameters, Qscreen_gamma, Qnil, |
| 4241 | "screenGamma", "ScreenGamma", RES_TYPE_FLOAT); | 4241 | "screenGamma", "ScreenGamma", RES_TYPE_FLOAT); |
| 4242 | x_default_parameter (f, parms, Qline_spacing, Qnil, | 4242 | x_default_parameter (f, parameters, Qline_spacing, Qnil, |
| 4243 | "lineSpacing", "LineSpacing", RES_TYPE_NUMBER); | 4243 | "lineSpacing", "LineSpacing", RES_TYPE_NUMBER); |
| 4244 | x_default_parameter (f, parms, Qleft_fringe, Qnil, | 4244 | x_default_parameter (f, parameters, Qleft_fringe, Qnil, |
| 4245 | "leftFringe", "LeftFringe", RES_TYPE_NUMBER); | 4245 | "leftFringe", "LeftFringe", RES_TYPE_NUMBER); |
| 4246 | x_default_parameter (f, parms, Qright_fringe, Qnil, | 4246 | x_default_parameter (f, parameters, Qright_fringe, Qnil, |
| 4247 | "rightFringe", "RightFringe", RES_TYPE_NUMBER); | 4247 | "rightFringe", "RightFringe", RES_TYPE_NUMBER); |
| 4248 | 4248 | ||
| 4249 | 4249 | ||
| @@ -4255,16 +4255,16 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4255 | happen. */ | 4255 | happen. */ |
| 4256 | init_frame_faces (f); | 4256 | init_frame_faces (f); |
| 4257 | 4257 | ||
| 4258 | x_default_parameter (f, parms, Qmenu_bar_lines, make_number (1), | 4258 | x_default_parameter (f, parameters, Qmenu_bar_lines, make_number (1), |
| 4259 | "menuBar", "MenuBar", RES_TYPE_NUMBER); | 4259 | "menuBar", "MenuBar", RES_TYPE_NUMBER); |
| 4260 | x_default_parameter (f, parms, Qtool_bar_lines, make_number (1), | 4260 | x_default_parameter (f, parameters, Qtool_bar_lines, make_number (1), |
| 4261 | "toolBar", "ToolBar", RES_TYPE_NUMBER); | 4261 | "toolBar", "ToolBar", RES_TYPE_NUMBER); |
| 4262 | 4262 | ||
| 4263 | x_default_parameter (f, parms, Qbuffer_predicate, Qnil, | 4263 | x_default_parameter (f, parameters, Qbuffer_predicate, Qnil, |
| 4264 | "bufferPredicate", "BufferPredicate", RES_TYPE_SYMBOL); | 4264 | "bufferPredicate", "BufferPredicate", RES_TYPE_SYMBOL); |
| 4265 | x_default_parameter (f, parms, Qtitle, Qnil, | 4265 | x_default_parameter (f, parameters, Qtitle, Qnil, |
| 4266 | "title", "Title", RES_TYPE_STRING); | 4266 | "title", "Title", RES_TYPE_STRING); |
| 4267 | x_default_parameter (f, parms, Qfullscreen, Qnil, | 4267 | x_default_parameter (f, parameters, Qfullscreen, Qnil, |
| 4268 | "fullscreen", "Fullscreen", RES_TYPE_SYMBOL); | 4268 | "fullscreen", "Fullscreen", RES_TYPE_SYMBOL); |
| 4269 | 4269 | ||
| 4270 | f->output_data.w32->dwStyle = WS_OVERLAPPEDWINDOW; | 4270 | f->output_data.w32->dwStyle = WS_OVERLAPPEDWINDOW; |
| @@ -4277,13 +4277,13 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4277 | f->output_data.w32->hourglass_cursor = w32_load_cursor (IDC_WAIT); | 4277 | f->output_data.w32->hourglass_cursor = w32_load_cursor (IDC_WAIT); |
| 4278 | f->output_data.w32->horizontal_drag_cursor = w32_load_cursor (IDC_SIZEWE); | 4278 | f->output_data.w32->horizontal_drag_cursor = w32_load_cursor (IDC_SIZEWE); |
| 4279 | 4279 | ||
| 4280 | window_prompting = x_figure_window_size (f, parms, 1); | 4280 | window_prompting = x_figure_window_size (f, parameters, 1); |
| 4281 | 4281 | ||
| 4282 | tem = w32_get_arg (parms, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN); | 4282 | tem = w32_get_arg (parameters, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN); |
| 4283 | f->no_split = minibuffer_only || EQ (tem, Qt); | 4283 | f->no_split = minibuffer_only || EQ (tem, Qt); |
| 4284 | 4284 | ||
| 4285 | w32_window (f, window_prompting, minibuffer_only); | 4285 | w32_window (f, window_prompting, minibuffer_only); |
| 4286 | x_icon (f, parms); | 4286 | x_icon (f, parameters); |
| 4287 | 4287 | ||
| 4288 | x_make_gc (f); | 4288 | x_make_gc (f); |
| 4289 | 4289 | ||
| @@ -4293,16 +4293,16 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4293 | 4293 | ||
| 4294 | /* We need to do this after creating the window, so that the | 4294 | /* We need to do this after creating the window, so that the |
| 4295 | icon-creation functions can say whose icon they're describing. */ | 4295 | icon-creation functions can say whose icon they're describing. */ |
| 4296 | x_default_parameter (f, parms, Qicon_type, Qnil, | 4296 | x_default_parameter (f, parameters, Qicon_type, Qnil, |
| 4297 | "bitmapIcon", "BitmapIcon", RES_TYPE_SYMBOL); | 4297 | "bitmapIcon", "BitmapIcon", RES_TYPE_SYMBOL); |
| 4298 | 4298 | ||
| 4299 | x_default_parameter (f, parms, Qauto_raise, Qnil, | 4299 | x_default_parameter (f, parameters, Qauto_raise, Qnil, |
| 4300 | "autoRaise", "AutoRaiseLower", RES_TYPE_BOOLEAN); | 4300 | "autoRaise", "AutoRaiseLower", RES_TYPE_BOOLEAN); |
| 4301 | x_default_parameter (f, parms, Qauto_lower, Qnil, | 4301 | x_default_parameter (f, parameters, Qauto_lower, Qnil, |
| 4302 | "autoLower", "AutoRaiseLower", RES_TYPE_BOOLEAN); | 4302 | "autoLower", "AutoRaiseLower", RES_TYPE_BOOLEAN); |
| 4303 | x_default_parameter (f, parms, Qcursor_type, Qbox, | 4303 | x_default_parameter (f, parameters, Qcursor_type, Qbox, |
| 4304 | "cursorType", "CursorType", RES_TYPE_SYMBOL); | 4304 | "cursorType", "CursorType", RES_TYPE_SYMBOL); |
| 4305 | x_default_parameter (f, parms, Qscroll_bar_width, Qnil, | 4305 | x_default_parameter (f, parameters, Qscroll_bar_width, Qnil, |
| 4306 | "scrollBarWidth", "ScrollBarWidth", RES_TYPE_NUMBER); | 4306 | "scrollBarWidth", "ScrollBarWidth", RES_TYPE_NUMBER); |
| 4307 | 4307 | ||
| 4308 | /* Dimensions, especially FRAME_LINES (f), must be done via change_frame_size. | 4308 | /* Dimensions, especially FRAME_LINES (f), must be done via change_frame_size. |
| @@ -4340,7 +4340,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4340 | { | 4340 | { |
| 4341 | Lisp_Object visibility; | 4341 | Lisp_Object visibility; |
| 4342 | 4342 | ||
| 4343 | visibility = w32_get_arg (parms, Qvisibility, 0, 0, RES_TYPE_SYMBOL); | 4343 | visibility = w32_get_arg (parameters, Qvisibility, 0, 0, RES_TYPE_SYMBOL); |
| 4344 | if (EQ (visibility, Qunbound)) | 4344 | if (EQ (visibility, Qunbound)) |
| 4345 | visibility = Qt; | 4345 | visibility = Qt; |
| 4346 | 4346 | ||
| @@ -6181,10 +6181,10 @@ w32_find_bdf_fonts_in_dir (Lisp_Object directory) | |||
| 6181 | 6181 | ||
| 6182 | DEFUN ("w32-find-bdf-fonts", Fw32_find_bdf_fonts, Sw32_find_bdf_fonts, | 6182 | DEFUN ("w32-find-bdf-fonts", Fw32_find_bdf_fonts, Sw32_find_bdf_fonts, |
| 6183 | 1, 1, 0, | 6183 | 1, 1, 0, |
| 6184 | doc: /* Return a list of BDF fonts in DIR. | 6184 | doc: /* Return a list of BDF fonts in DIRECTORY. |
| 6185 | The list is suitable for appending to w32-bdf-filename-alist. Fonts | 6185 | The list is suitable for appending to `w32-bdf-filename-alist'. |
| 6186 | which do not contain an xlfd description will not be included in the | 6186 | Fonts which do not contain an xlfd description will not be included |
| 6187 | list. DIR may be a list of directories. */) | 6187 | in the list. DIRECTORY may be a list of directories. */) |
| 6188 | (directory) | 6188 | (directory) |
| 6189 | Lisp_Object directory; | 6189 | Lisp_Object directory; |
| 6190 | { | 6190 | { |
| @@ -6265,7 +6265,7 @@ DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0, | |||
| 6265 | 6265 | ||
| 6266 | DEFUN ("x-display-grayscale-p", Fx_display_grayscale_p, | 6266 | DEFUN ("x-display-grayscale-p", Fx_display_grayscale_p, |
| 6267 | Sx_display_grayscale_p, 0, 1, 0, | 6267 | Sx_display_grayscale_p, 0, 1, 0, |
| 6268 | doc: /* Return t if the X display supports shades of gray. | 6268 | doc: /* Return t if DISPLAY supports shades of gray. |
| 6269 | Note that color displays do support shades of gray. | 6269 | Note that color displays do support shades of gray. |
| 6270 | The optional argument DISPLAY specifies which display to ask about. | 6270 | The optional argument DISPLAY specifies which display to ask about. |
| 6271 | DISPLAY should be either a frame or a display name (a string). | 6271 | DISPLAY should be either a frame or a display name (a string). |
| @@ -6338,9 +6338,9 @@ If omitted or nil, that stands for the selected frame's display. */) | |||
| 6338 | 6338 | ||
| 6339 | hdc = GetDC (dpyinfo->root_window); | 6339 | hdc = GetDC (dpyinfo->root_window); |
| 6340 | if (dpyinfo->has_palette) | 6340 | if (dpyinfo->has_palette) |
| 6341 | cap = GetDeviceCaps (hdc,SIZEPALETTE); | 6341 | cap = GetDeviceCaps (hdc, SIZEPALETTE); |
| 6342 | else | 6342 | else |
| 6343 | cap = GetDeviceCaps (hdc,NUMCOLORS); | 6343 | cap = GetDeviceCaps (hdc, NUMCOLORS); |
| 6344 | 6344 | ||
| 6345 | /* We force 24+ bit depths to 24-bit, both to prevent an overflow | 6345 | /* We force 24+ bit depths to 24-bit, both to prevent an overflow |
| 6346 | and because probably is more meaningful on Windows anyway */ | 6346 | and because probably is more meaningful on Windows anyway */ |
| @@ -7394,7 +7394,7 @@ used to change the tooltip's appearance. | |||
| 7394 | Automatically hide the tooltip after TIMEOUT seconds. TIMEOUT nil | 7394 | Automatically hide the tooltip after TIMEOUT seconds. TIMEOUT nil |
| 7395 | means use the default timeout of 5 seconds. | 7395 | means use the default timeout of 5 seconds. |
| 7396 | 7396 | ||
| 7397 | If the list of frame parameters PARAMS contains a `left' parameter, | 7397 | If the list of frame parameters PARMS contains a `left' parameter, |
| 7398 | the tooltip is displayed at that x-position. Otherwise it is | 7398 | the tooltip is displayed at that x-position. Otherwise it is |
| 7399 | displayed at the mouse position, with offset DX added (default is 5 if | 7399 | displayed at the mouse position, with offset DX added (default is 5 if |
| 7400 | DX isn't specified). Likewise for the y-position; if a `top' frame | 7400 | DX isn't specified). Likewise for the y-position; if a `top' frame |
| @@ -7875,7 +7875,7 @@ Returns an X font string corresponding to the selection. */) | |||
| 7875 | DEFUN ("w32-send-sys-command", Fw32_send_sys_command, | 7875 | DEFUN ("w32-send-sys-command", Fw32_send_sys_command, |
| 7876 | Sw32_send_sys_command, 1, 2, 0, | 7876 | Sw32_send_sys_command, 1, 2, 0, |
| 7877 | doc: /* Send frame a Windows WM_SYSCOMMAND message of type COMMAND. | 7877 | doc: /* Send frame a Windows WM_SYSCOMMAND message of type COMMAND. |
| 7878 | Some useful values for command are #xf030 to maximise frame (#xf020 | 7878 | Some useful values for COMMAND are #xf030 to maximize frame (#xf020 |
| 7879 | to minimize), #xf120 to restore frame to original size, and #xf100 | 7879 | to minimize), #xf120 to restore frame to original size, and #xf100 |
| 7880 | to activate the menubar for keyboard access. #xf140 activates the | 7880 | to activate the menubar for keyboard access. #xf140 activates the |
| 7881 | screen saver if defined. | 7881 | screen saver if defined. |
| @@ -8070,7 +8070,7 @@ The return value is the hotkey-id if registered, otherwise nil. */) | |||
| 8070 | 8070 | ||
| 8071 | DEFUN ("w32-unregister-hot-key", Fw32_unregister_hot_key, | 8071 | DEFUN ("w32-unregister-hot-key", Fw32_unregister_hot_key, |
| 8072 | Sw32_unregister_hot_key, 1, 1, 0, | 8072 | Sw32_unregister_hot_key, 1, 1, 0, |
| 8073 | doc: /* Unregister HOTKEY as a hot-key combination. */) | 8073 | doc: /* Unregister KEY as a hot-key combination. */) |
| 8074 | (key) | 8074 | (key) |
| 8075 | Lisp_Object key; | 8075 | Lisp_Object key; |
| 8076 | { | 8076 | { |
| @@ -8112,7 +8112,8 @@ DEFUN ("w32-registered-hot-keys", Fw32_registered_hot_keys, | |||
| 8112 | 8112 | ||
| 8113 | DEFUN ("w32-reconstruct-hot-key", Fw32_reconstruct_hot_key, | 8113 | DEFUN ("w32-reconstruct-hot-key", Fw32_reconstruct_hot_key, |
| 8114 | Sw32_reconstruct_hot_key, 1, 1, 0, | 8114 | Sw32_reconstruct_hot_key, 1, 1, 0, |
| 8115 | doc: /* Convert hot-key ID to a lisp key combination. */) | 8115 | doc: /* Convert hot-key ID to a lisp key combination. |
| 8116 | usage: (w32-reconstruct-hot-key ID) */) | ||
| 8116 | (hotkeyid) | 8117 | (hotkeyid) |
| 8117 | Lisp_Object hotkeyid; | 8118 | Lisp_Object hotkeyid; |
| 8118 | { | 8119 | { |
| @@ -8351,7 +8352,7 @@ DEFUN ("default-printer-name", Fdefault_printer_name, Sdefault_printer_name, | |||
| 8351 | Initialization | 8352 | Initialization |
| 8352 | ***********************************************************************/ | 8353 | ***********************************************************************/ |
| 8353 | 8354 | ||
| 8354 | /* Keep this list in the same order as frame_parms in frame.c. | 8355 | /* Keep this list in the same order as frame_parms in frame.c. |
| 8355 | Use 0 for unsupported frame parameters. */ | 8356 | Use 0 for unsupported frame parameters. */ |
| 8356 | 8357 | ||
| 8357 | frame_parm_handler w32_frame_parm_handlers[] = | 8358 | frame_parm_handler w32_frame_parm_handlers[] = |
| @@ -8436,7 +8437,7 @@ syms_of_w32fns () | |||
| 8436 | w32_grabbed_keys = Qnil; | 8437 | w32_grabbed_keys = Qnil; |
| 8437 | 8438 | ||
| 8438 | DEFVAR_LISP ("w32-color-map", &Vw32_color_map, | 8439 | DEFVAR_LISP ("w32-color-map", &Vw32_color_map, |
| 8439 | doc: /* An array of color name mappings for windows. */); | 8440 | doc: /* An array of color name mappings for Windows. */); |
| 8440 | Vw32_color_map = Qnil; | 8441 | Vw32_color_map = Qnil; |
| 8441 | 8442 | ||
| 8442 | DEFVAR_LISP ("w32-pass-alt-to-system", &Vw32_pass_alt_to_system, | 8443 | DEFVAR_LISP ("w32-pass-alt-to-system", &Vw32_pass_alt_to_system, |