diff options
| author | Karoly Lorentey | 2004-02-19 13:25:32 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-02-19 13:25:32 +0000 |
| commit | bfdfad9294d072ad12b670d23912998f7e439394 (patch) | |
| tree | 0e83846ea270896631e403d0faf48190c22926c9 | |
| parent | 24268213e13b61f2cb8f88e69164161e84f08f5f (diff) | |
| parent | 1d71218362bb1c75ed0c630d80b9710637538bcc (diff) | |
| download | emacs-bfdfad9294d072ad12b670d23912998f7e439394.tar.gz emacs-bfdfad9294d072ad12b670d23912998f7e439394.zip | |
Merged in changes from CVS HEAD
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-103
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-82
| -rw-r--r-- | lisp/ChangeLog | 14 | ||||
| -rw-r--r-- | lisp/progmodes/executable.el | 8 | ||||
| -rw-r--r-- | lisp/simple.el | 37 | ||||
| -rw-r--r-- | lispref/ChangeLog | 8 | ||||
| -rw-r--r-- | lispref/commands.texi | 7 | ||||
| -rw-r--r-- | lispref/functions.texi | 4 | ||||
| -rw-r--r-- | lispref/locals.texi | 2 | ||||
| -rw-r--r-- | lispref/markers.texi | 8 | ||||
| -rw-r--r-- | man/info.texi | 21 | ||||
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 16 |
11 files changed, 80 insertions, 50 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index eb668cd6b22..f5e51f9a093 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,17 @@ | |||
| 1 | 2004-02-18 Markus Rost <rost@mathematik.uni-bielefeld.de> | ||
| 2 | |||
| 3 | * progmodes/executable.el (executable-command-find-posix-p): Fix | ||
| 4 | choice of the directory. | ||
| 5 | |||
| 6 | 2004-02-17 Luc Teirlinck <teirllm@auburn.edu> | ||
| 7 | |||
| 8 | * simple.el (interprogram-cut-function) | ||
| 9 | (interprogram-paste-function, kill-new, kill-append): | ||
| 10 | Doc fixes. | ||
| 11 | (kill-region): Make it return nil. Doc fix. | ||
| 12 | (yank-pop): Make its argument optional. | ||
| 13 | (yank): Make ARG `-' equivalent to `-1'. | ||
| 14 | |||
| 1 | 2004-02-17 Eli Zaretskii <eliz@elta.co.il> | 15 | 2004-02-17 Eli Zaretskii <eliz@elta.co.il> |
| 2 | 16 | ||
| 3 | * mail/rmail.el (rmail-get-new-mail): Don't reference | 17 | * mail/rmail.el (rmail-get-new-mail): Don't reference |
diff --git a/lisp/progmodes/executable.el b/lisp/progmodes/executable.el index b301d84d144..a5d401a5f5e 100644 --- a/lisp/progmodes/executable.el +++ b/lisp/progmodes/executable.el | |||
| @@ -145,12 +145,8 @@ See `compilation-error-regexp-alist'.") | |||
| 145 | "Check if PROGRAM handles arguments Posix-style. | 145 | "Check if PROGRAM handles arguments Posix-style. |
| 146 | If PROGRAM is non-nil, use that instead of \"find\"." | 146 | If PROGRAM is non-nil, use that instead of \"find\"." |
| 147 | ;; Pick file to search from location we know | 147 | ;; Pick file to search from location we know |
| 148 | (let* ((dir (car load-path)) | 148 | (let* ((dir (file-truename data-directory)) |
| 149 | (file (find-if | 149 | (file (car (directory-files dir nil "^[^.]")))) |
| 150 | (lambda (x) | ||
| 151 | ;; Filter directories . and .. | ||
| 152 | (not (string-match "^\\.\\.?$" x))) | ||
| 153 | (directory-files dir)))) | ||
| 154 | (with-temp-buffer | 150 | (with-temp-buffer |
| 155 | (call-process (or program "find") | 151 | (call-process (or program "find") |
| 156 | nil | 152 | nil |
diff --git a/lisp/simple.el b/lisp/simple.el index 8017878dd2a..d3e189dbe13 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -505,7 +505,7 @@ that uses or sets the mark." | |||
| 505 | (save-excursion | 505 | (save-excursion |
| 506 | (save-restriction | 506 | (save-restriction |
| 507 | (widen) | 507 | (widen) |
| 508 | (message "line %d (narrowed line %d)" | 508 | (message "line %d (narrowed line %d)" |
| 509 | (+ n (line-number-at-pos start) -1) n)))))) | 509 | (+ n (line-number-at-pos start) -1) n)))))) |
| 510 | 510 | ||
| 511 | (defun count-lines (start end) | 511 | (defun count-lines (start end) |
| @@ -1779,8 +1779,8 @@ programs. | |||
| 1779 | The function takes one or two arguments. | 1779 | The function takes one or two arguments. |
| 1780 | The first argument, TEXT, is a string containing | 1780 | The first argument, TEXT, is a string containing |
| 1781 | the text which should be made available. | 1781 | the text which should be made available. |
| 1782 | The second, PUSH, if non-nil means this is a \"new\" kill; | 1782 | The second, optional, argument PUSH, has the same meaning as the |
| 1783 | nil means appending to an \"old\" kill.") | 1783 | similar argument to `x-set-cut-buffer', which see.") |
| 1784 | 1784 | ||
| 1785 | (defvar interprogram-paste-function nil | 1785 | (defvar interprogram-paste-function nil |
| 1786 | "Function to call to get text cut from other programs. | 1786 | "Function to call to get text cut from other programs. |
| @@ -1793,7 +1793,8 @@ text that other programs have provided for pasting. | |||
| 1793 | The function should be called with no arguments. If the function | 1793 | The function should be called with no arguments. If the function |
| 1794 | returns nil, then no other program has provided such text, and the top | 1794 | returns nil, then no other program has provided such text, and the top |
| 1795 | of the Emacs kill ring should be used. If the function returns a | 1795 | of the Emacs kill ring should be used. If the function returns a |
| 1796 | string, that string should be put in the kill ring as the latest kill. | 1796 | string, then the caller of the function \(usually `current-kill') |
| 1797 | should put this string in the kill ring as the latest kill. | ||
| 1797 | 1798 | ||
| 1798 | Note that the function should return a string only if a program other | 1799 | Note that the function should return a string only if a program other |
| 1799 | than Emacs has provided a string for pasting; if Emacs provided the | 1800 | than Emacs has provided a string for pasting; if Emacs provided the |
| @@ -1834,7 +1835,7 @@ the front of the kill ring, rather than being added to the list. | |||
| 1834 | Optional third arguments YANK-HANDLER controls how the STRING is later | 1835 | Optional third arguments YANK-HANDLER controls how the STRING is later |
| 1835 | inserted into a buffer; see `insert-for-yank' for details. | 1836 | inserted into a buffer; see `insert-for-yank' for details. |
| 1836 | When a yank handler is specified, STRING must be non-empty (the yank | 1837 | When a yank handler is specified, STRING must be non-empty (the yank |
| 1837 | handler is stored as a `yank-handler' text property on STRING). | 1838 | handler, if non-nil, is stored as a `yank-handler' text property on STRING). |
| 1838 | 1839 | ||
| 1839 | When the yank handler has a non-nil PARAM element, the original STRING | 1840 | When the yank handler has a non-nil PARAM element, the original STRING |
| 1840 | argument is not used by `insert-for-yank'. However, since Lisp code | 1841 | argument is not used by `insert-for-yank'. However, since Lisp code |
| @@ -1861,11 +1862,12 @@ argument should still be a \"useful\" string for such uses." | |||
| 1861 | (defun kill-append (string before-p &optional yank-handler) | 1862 | (defun kill-append (string before-p &optional yank-handler) |
| 1862 | "Append STRING to the end of the latest kill in the kill ring. | 1863 | "Append STRING to the end of the latest kill in the kill ring. |
| 1863 | If BEFORE-P is non-nil, prepend STRING to the kill. | 1864 | If BEFORE-P is non-nil, prepend STRING to the kill. |
| 1864 | Optional third argument YANK-HANDLER specifies the yank-handler text | 1865 | Optional third argument YANK-HANDLER, if non-nil, specifies the |
| 1865 | property to be set on the combined kill ring string. If the specified | 1866 | yank-handler text property to be set on the combined kill ring |
| 1866 | yank-handler arg differs from the yank-handler property of the latest | 1867 | string. If the specified yank-handler arg differs from the |
| 1867 | kill string, this function adds the combined string to the kill | 1868 | yank-handler property of the latest kill string, this function |
| 1868 | ring as a new element, instead of replacing the last kill with it. | 1869 | adds the combined string to the kill ring as a new element, |
| 1870 | instead of replacing the last kill with it. | ||
| 1869 | If `interprogram-cut-function' is set, pass the resulting kill to it." | 1871 | If `interprogram-cut-function' is set, pass the resulting kill to it." |
| 1870 | (let* ((cur (car kill-ring))) | 1872 | (let* ((cur (car kill-ring))) |
| 1871 | (kill-new (if before-p (concat string cur) (concat cur string)) | 1873 | (kill-new (if before-p (concat string cur) (concat cur string)) |
| @@ -1934,8 +1936,9 @@ If the previous command was also a kill command, | |||
| 1934 | the text killed this time appends to the text killed last time | 1936 | the text killed this time appends to the text killed last time |
| 1935 | to make one entry in the kill ring. | 1937 | to make one entry in the kill ring. |
| 1936 | 1938 | ||
| 1937 | In Lisp code, optional third arg YANK-HANDLER specifies the yank-handler | 1939 | In Lisp code, optional third arg YANK-HANDLER, if non-nil, |
| 1938 | text property to be set on the killed text. See `insert-for-yank'." | 1940 | specifies the yank-handler text property to be set on the killed |
| 1941 | text. See `insert-for-yank'." | ||
| 1939 | (interactive "r") | 1942 | (interactive "r") |
| 1940 | (condition-case nil | 1943 | (condition-case nil |
| 1941 | (let ((string (delete-and-extract-region beg end))) | 1944 | (let ((string (delete-and-extract-region beg end))) |
| @@ -1945,7 +1948,8 @@ text property to be set on the killed text. See `insert-for-yank'." | |||
| 1945 | (kill-append string (< end beg) yank-handler) | 1948 | (kill-append string (< end beg) yank-handler) |
| 1946 | (kill-new string nil yank-handler))) | 1949 | (kill-new string nil yank-handler))) |
| 1947 | (when (or string (eq last-command 'kill-region)) | 1950 | (when (or string (eq last-command 'kill-region)) |
| 1948 | (setq this-command 'kill-region))) | 1951 | (setq this-command 'kill-region)) |
| 1952 | nil) | ||
| 1949 | ((buffer-read-only text-read-only) | 1953 | ((buffer-read-only text-read-only) |
| 1950 | ;; The code above failed because the buffer, or some of the characters | 1954 | ;; The code above failed because the buffer, or some of the characters |
| 1951 | ;; in the region, are read-only. | 1955 | ;; in the region, are read-only. |
| @@ -1957,7 +1961,7 @@ text property to be set on the killed text. See `insert-for-yank'." | |||
| 1957 | (setq this-command 'kill-region) | 1961 | (setq this-command 'kill-region) |
| 1958 | ;; This should barf, if appropriate, and give us the correct error. | 1962 | ;; This should barf, if appropriate, and give us the correct error. |
| 1959 | (if kill-read-only-ok | 1963 | (if kill-read-only-ok |
| 1960 | (message "Read only text copied to kill ring") | 1964 | (progn (message "Read only text copied to kill ring") nil) |
| 1961 | ;; Signal an error if the buffer is read-only. | 1965 | ;; Signal an error if the buffer is read-only. |
| 1962 | (barf-if-buffer-read-only) | 1966 | (barf-if-buffer-read-only) |
| 1963 | ;; If the buffer isn't read-only, the text is. | 1967 | ;; If the buffer isn't read-only, the text is. |
| @@ -2051,7 +2055,7 @@ Function is called with two parameters, START and END corresponding to | |||
| 2051 | the value of the mark and point; it is guaranteed that START <= END. | 2055 | the value of the mark and point; it is guaranteed that START <= END. |
| 2052 | Normally set from the UNDO element of a yank-handler; see `insert-for-yank'.") | 2056 | Normally set from the UNDO element of a yank-handler; see `insert-for-yank'.") |
| 2053 | 2057 | ||
| 2054 | (defun yank-pop (arg) | 2058 | (defun yank-pop (&optional arg) |
| 2055 | "Replace just-yanked stretch of killed text with a different stretch. | 2059 | "Replace just-yanked stretch of killed text with a different stretch. |
| 2056 | This command is allowed only immediately after a `yank' or a `yank-pop'. | 2060 | This command is allowed only immediately after a `yank' or a `yank-pop'. |
| 2057 | At such a time, the region contains a stretch of reinserted | 2061 | At such a time, the region contains a stretch of reinserted |
| @@ -2068,6 +2072,7 @@ comes the newest one." | |||
| 2068 | (if (not (eq last-command 'yank)) | 2072 | (if (not (eq last-command 'yank)) |
| 2069 | (error "Previous command was not a yank")) | 2073 | (error "Previous command was not a yank")) |
| 2070 | (setq this-command 'yank) | 2074 | (setq this-command 'yank) |
| 2075 | (unless arg (setq arg 1)) | ||
| 2071 | (let ((inhibit-read-only t) | 2076 | (let ((inhibit-read-only t) |
| 2072 | (before (< (point) (mark t)))) | 2077 | (before (< (point) (mark t)))) |
| 2073 | (if before | 2078 | (if before |
| @@ -2103,7 +2108,7 @@ See also the command \\[yank-pop]." | |||
| 2103 | (push-mark (point)) | 2108 | (push-mark (point)) |
| 2104 | (insert-for-yank (current-kill (cond | 2109 | (insert-for-yank (current-kill (cond |
| 2105 | ((listp arg) 0) | 2110 | ((listp arg) 0) |
| 2106 | ((eq arg '-) -1) | 2111 | ((eq arg '-) -2) |
| 2107 | (t (1- arg))))) | 2112 | (t (1- arg))))) |
| 2108 | (if (consp arg) | 2113 | (if (consp arg) |
| 2109 | ;; This is like exchange-point-and-mark, but doesn't activate the mark. | 2114 | ;; This is like exchange-point-and-mark, but doesn't activate the mark. |
diff --git a/lispref/ChangeLog b/lispref/ChangeLog index 392f67d07d2..5879c3a4596 100644 --- a/lispref/ChangeLog +++ b/lispref/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2004-02-17 Luc Teirlinck <teirllm@auburn.edu> | ||
| 2 | |||
| 3 | * markers.texi (Marker Insertion Types): Minor change. | ||
| 4 | |||
| 5 | * locals.texi (Standard Buffer-Local Variables): | ||
| 6 | * commands.texi (Interactive Codes, Using Interactive): | ||
| 7 | * functions.texi (Related Topics): Fix xrefs. | ||
| 8 | |||
| 1 | 2004-02-16 Luc Teirlinck <teirllm@auburn.edu> | 9 | 2004-02-16 Luc Teirlinck <teirllm@auburn.edu> |
| 2 | 10 | ||
| 3 | * lists.texi (Sets And Lists): Update description of delete-dups. | 11 | * lists.texi (Sets And Lists): Update description of delete-dups. |
diff --git a/lispref/commands.texi b/lispref/commands.texi index 90ac28f845e..5a38179996f 100644 --- a/lispref/commands.texi +++ b/lispref/commands.texi | |||
| @@ -239,9 +239,8 @@ This function returns the @code{interactive} form of @var{function}. If | |||
| 239 | @var{function} is a command (@pxref{Interactive Call}), the value is a | 239 | @var{function} is a command (@pxref{Interactive Call}), the value is a |
| 240 | list of the form @code{(interactive @var{spec})}, where @var{spec} is | 240 | list of the form @code{(interactive @var{spec})}, where @var{spec} is |
| 241 | the descriptor specification used by the command's @code{interactive} | 241 | the descriptor specification used by the command's @code{interactive} |
| 242 | form to compute the function's arguments (@pxref{Using Interactive}). | 242 | form to compute the function's arguments. If @var{function} is not a |
| 243 | If @var{function} is not a command, @code{interactive-form} returns | 243 | command, @code{interactive-form} returns @code{nil}. |
| 244 | @code{nil}. | ||
| 245 | @end defun | 244 | @end defun |
| 246 | 245 | ||
| 247 | @node Interactive Codes | 246 | @node Interactive Codes |
| @@ -328,7 +327,7 @@ The position of point, as an integer (@pxref{Point}). No I/O. | |||
| 328 | 327 | ||
| 329 | @item D | 328 | @item D |
| 330 | A directory name. The default is the current default directory of the | 329 | A directory name. The default is the current default directory of the |
| 331 | current buffer, @code{default-directory} (@pxref{System Environment}). | 330 | current buffer, @code{default-directory} (@pxref{File Name Expansion}). |
| 332 | Existing, Completion, Default, Prompt. | 331 | Existing, Completion, Default, Prompt. |
| 333 | 332 | ||
| 334 | @item e | 333 | @item e |
diff --git a/lispref/functions.texi b/lispref/functions.texi index 4b727e76506..427389b4a68 100644 --- a/lispref/functions.texi +++ b/lispref/functions.texi | |||
| @@ -1320,7 +1320,7 @@ See @ref{Anonymous Functions}. | |||
| 1320 | See @ref{Calling Functions}. | 1320 | See @ref{Calling Functions}. |
| 1321 | 1321 | ||
| 1322 | @item indirect-function | 1322 | @item indirect-function |
| 1323 | See @ref{Definition of indirect-function}. | 1323 | See @ref{Function Indirection}. |
| 1324 | 1324 | ||
| 1325 | @item interactive | 1325 | @item interactive |
| 1326 | See @ref{Using Interactive}. | 1326 | See @ref{Using Interactive}. |
| @@ -1341,7 +1341,7 @@ See @ref{Char-Tables}. | |||
| 1341 | See @ref{Mapping Functions}. | 1341 | See @ref{Mapping Functions}. |
| 1342 | 1342 | ||
| 1343 | @item undefined | 1343 | @item undefined |
| 1344 | See @ref{Key Lookup}. | 1344 | See @ref{Functions for Key Lookup}. |
| 1345 | @end table | 1345 | @end table |
| 1346 | 1346 | ||
| 1347 | @ignore | 1347 | @ignore |
diff --git a/lispref/locals.texi b/lispref/locals.texi index 8a7a1387710..8c9034007bd 100644 --- a/lispref/locals.texi +++ b/lispref/locals.texi | |||
| @@ -79,7 +79,7 @@ use, but we don't try to list them all here. | |||
| 79 | @xref{Comments,,, emacs, The GNU Emacs Manual}. | 79 | @xref{Comments,,, emacs, The GNU Emacs Manual}. |
| 80 | 80 | ||
| 81 | @item default-directory | 81 | @item default-directory |
| 82 | @xref{System Environment}. | 82 | @xref{File Name Expansion}. |
| 83 | 83 | ||
| 84 | @item defun-prompt-regexp | 84 | @item defun-prompt-regexp |
| 85 | @xref{List Motion}. | 85 | @xref{List Motion}. |
diff --git a/lispref/markers.texi b/lispref/markers.texi index e844912002e..7f4ab1d2b78 100644 --- a/lispref/markers.texi +++ b/lispref/markers.texi | |||
| @@ -326,10 +326,6 @@ marker should do by setting its @dfn{insertion type}. Note that use of | |||
| 326 | @code{insert-before-markers} ignores markers' insertion types, always | 326 | @code{insert-before-markers} ignores markers' insertion types, always |
| 327 | relocating a marker to point after the inserted text. | 327 | relocating a marker to point after the inserted text. |
| 328 | 328 | ||
| 329 | Most functions that create markers, without explicitly specifying an | ||
| 330 | insertion type, create them with insertion type @code{nil}. Also, the | ||
| 331 | mark has, by default, insertion type @code{nil}. | ||
| 332 | |||
| 333 | @defun set-marker-insertion-type marker type | 329 | @defun set-marker-insertion-type marker type |
| 334 | This function sets the insertion type of marker @var{marker} to | 330 | This function sets the insertion type of marker @var{marker} to |
| 335 | @var{type}. If @var{type} is @code{t}, @var{marker} will advance when | 331 | @var{type}. If @var{type} is @code{t}, @var{marker} will advance when |
| @@ -341,6 +337,10 @@ text is inserted at its position. If @var{type} is @code{nil}, | |||
| 341 | This function reports the current insertion type of @var{marker}. | 337 | This function reports the current insertion type of @var{marker}. |
| 342 | @end defun | 338 | @end defun |
| 343 | 339 | ||
| 340 | Most functions that create markers, without explicitly specifying an | ||
| 341 | insertion type, create them with insertion type @code{nil}. Also, the | ||
| 342 | mark has, by default, insertion type @code{nil}. | ||
| 343 | |||
| 344 | @node Moving Markers | 344 | @node Moving Markers |
| 345 | @section Moving Marker Positions | 345 | @section Moving Marker Positions |
| 346 | 346 | ||
diff --git a/man/info.texi b/man/info.texi index b52b34d46b3..24a6c4bbc46 100644 --- a/man/info.texi +++ b/man/info.texi | |||
| @@ -6,13 +6,12 @@ | |||
| 6 | @syncodeindex vr cp | 6 | @syncodeindex vr cp |
| 7 | @syncodeindex ky cp | 7 | @syncodeindex ky cp |
| 8 | @comment %**end of header | 8 | @comment %**end of header |
| 9 | @comment $Id: info.texi,v 1.37 2003/10/27 00:01:25 karl Exp $ | ||
| 10 | 9 | ||
| 11 | @copying | 10 | @copying |
| 12 | This file describes how to use Info, the on-line, menu-driven GNU | 11 | This file describes how to use Info, the on-line, menu-driven GNU |
| 13 | documentation system. | 12 | documentation system. |
| 14 | 13 | ||
| 15 | Copyright (C) 1989, 1992, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | 14 | Copyright (C) 1989, 1992, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 |
| 16 | Free Software Foundation, Inc. | 15 | Free Software Foundation, Inc. |
| 17 | 16 | ||
| 18 | @quotation | 17 | @quotation |
| @@ -829,12 +828,16 @@ between local and remote links. | |||
| 829 | The introductory course is almost over; please continue | 828 | The introductory course is almost over; please continue |
| 830 | a little longer to learn some intermediate-level commands. | 829 | a little longer to learn some intermediate-level commands. |
| 831 | 830 | ||
| 832 | Most Info files have an index, which is actually a large node that | 831 | Most Info files have an index, which is actually a large node |
| 833 | contains nothing but a menu. The menu has one menu item for each | 832 | containing little but a menu. The menu has one menu item for each |
| 834 | topic listed in the index. You can find the index node from the main | 833 | topic listed in the index. (As a special feature, menus for indices |
| 835 | menu of the file, with the @kbd{m} command; then you can use the | 834 | may also include the line number within the node of the index entry. |
| 836 | @kbd{m} command again in the index node to go to the node that | 835 | This allows Info readers to go to the exact line of an entry, not just |
| 837 | describes the topic. | 836 | the start of the containing node.) |
| 837 | |||
| 838 | You can get to the index from the main menu of the file with the | ||
| 839 | @kbd{m} command; then you can use the @kbd{m} command again in the | ||
| 840 | index node to go to the node that describes the topic you want. | ||
| 838 | 841 | ||
| 839 | There is also a short-cut Info command, @kbd{i}, which does all of | 842 | There is also a short-cut Info command, @kbd{i}, which does all of |
| 840 | that for you. It searches the index for a given topic (a string) and | 843 | that for you. It searches the index for a given topic (a string) and |
| @@ -1046,7 +1049,7 @@ options, and key sequences that the program provides. If you are | |||
| 1046 | looking for a description of a command, an option, or a key, just type | 1049 | looking for a description of a command, an option, or a key, just type |
| 1047 | their names when @kbd{i} prompts you for a topic. For example, if you | 1050 | their names when @kbd{i} prompts you for a topic. For example, if you |
| 1048 | want to read the description of what the @kbd{C-f} key does, type | 1051 | want to read the description of what the @kbd{C-f} key does, type |
| 1049 | @kbd{iC-f@key{RET}}. Here @kbd{C-f} are 3 literal characters | 1052 | @kbd{i C - f @key{RET}}. Here @kbd{C-f} are 3 literal characters |
| 1050 | @samp{C}, @samp{-}, and @samp{f}, not the ``Control-f'' command key | 1053 | @samp{C}, @samp{-}, and @samp{f}, not the ``Control-f'' command key |
| 1051 | you type inside Emacs to run the command bound to @kbd{C-f}. | 1054 | you type inside Emacs to run the command bound to @kbd{C-f}. |
| 1052 | 1055 | ||
diff --git a/src/ChangeLog b/src/ChangeLog index 020e02cafcf..744259568e4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-02-18 Kim F. Storm <storm@cua.dk> | ||
| 2 | |||
| 3 | * xdisp.c (get_window_cursor_type, display_and_set_cursor): | ||
| 4 | Fix last change. | ||
| 5 | |||
| 1 | 2004-02-17 Kim F. Storm <storm@cua.dk> | 6 | 2004-02-17 Kim F. Storm <storm@cua.dk> |
| 2 | 7 | ||
| 3 | * xdisp.c (fast_find_position): Fix return value of new version; | 8 | * xdisp.c (fast_find_position): Fix return value of new version; |
diff --git a/src/xdisp.c b/src/xdisp.c index 96d51b27480..246b30549f6 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -19028,9 +19028,9 @@ get_window_cursor_type (w, glyph, width, active_cursor) | |||
| 19028 | cursor_type = get_specified_cursor_type (b->cursor_type, width); | 19028 | cursor_type = get_specified_cursor_type (b->cursor_type, width); |
| 19029 | 19029 | ||
| 19030 | /* Use normal cursor if not blinked off. */ | 19030 | /* Use normal cursor if not blinked off. */ |
| 19031 | if (!w->cursor_off_p && glyph != NULL) | 19031 | if (!w->cursor_off_p) |
| 19032 | { | 19032 | { |
| 19033 | if (glyph->type == IMAGE_GLYPH) { | 19033 | if (glyph != NULL && glyph->type == IMAGE_GLYPH) { |
| 19034 | if (cursor_type == FILLED_BOX_CURSOR) | 19034 | if (cursor_type == FILLED_BOX_CURSOR) |
| 19035 | cursor_type = HOLLOW_BOX_CURSOR; | 19035 | cursor_type = HOLLOW_BOX_CURSOR; |
| 19036 | } | 19036 | } |
| @@ -19347,7 +19347,6 @@ display_and_set_cursor (w, on, hpos, vpos, x, y) | |||
| 19347 | int new_cursor_type; | 19347 | int new_cursor_type; |
| 19348 | int new_cursor_width; | 19348 | int new_cursor_width; |
| 19349 | int active_cursor; | 19349 | int active_cursor; |
| 19350 | struct glyph_matrix *current_glyphs; | ||
| 19351 | struct glyph_row *glyph_row; | 19350 | struct glyph_row *glyph_row; |
| 19352 | struct glyph *glyph; | 19351 | struct glyph *glyph; |
| 19353 | 19352 | ||
| @@ -19365,11 +19364,7 @@ display_and_set_cursor (w, on, hpos, vpos, x, y) | |||
| 19365 | if (!on && !w->phys_cursor_on_p) | 19364 | if (!on && !w->phys_cursor_on_p) |
| 19366 | return; | 19365 | return; |
| 19367 | 19366 | ||
| 19368 | current_glyphs = w->current_matrix; | 19367 | glyph_row = MATRIX_ROW (w->current_matrix, vpos); |
| 19369 | glyph_row = MATRIX_ROW (current_glyphs, vpos); | ||
| 19370 | glyph = (glyph_row->cursor_in_fringe_p ? NULL | ||
| 19371 | : glyph_row->glyphs[TEXT_AREA] + hpos); | ||
| 19372 | |||
| 19373 | /* If cursor row is not enabled, we don't really know where to | 19368 | /* If cursor row is not enabled, we don't really know where to |
| 19374 | display the cursor. */ | 19369 | display the cursor. */ |
| 19375 | if (!glyph_row->enabled_p) | 19370 | if (!glyph_row->enabled_p) |
| @@ -19378,6 +19373,11 @@ display_and_set_cursor (w, on, hpos, vpos, x, y) | |||
| 19378 | return; | 19373 | return; |
| 19379 | } | 19374 | } |
| 19380 | 19375 | ||
| 19376 | glyph = NULL; | ||
| 19377 | if (!glyph_row->exact_window_width_line_p | ||
| 19378 | || hpos < glyph_row->used[TEXT_AREA]) | ||
| 19379 | glyph = glyph_row->glyphs[TEXT_AREA] + hpos; | ||
| 19380 | |||
| 19381 | xassert (interrupt_input_blocked); | 19381 | xassert (interrupt_input_blocked); |
| 19382 | 19382 | ||
| 19383 | /* Set new_cursor_type to the cursor we want to be displayed. */ | 19383 | /* Set new_cursor_type to the cursor we want to be displayed. */ |