diff options
| author | Glenn Morris | 2020-05-09 10:03:21 -0700 |
|---|---|---|
| committer | Glenn Morris | 2020-05-09 10:03:21 -0700 |
| commit | 5c890bfc191d0cf18dccbbf50ebdcde946a0d7fb (patch) | |
| tree | 8e14f3cedc3fba87248f49c2e960f6bf3cfe2da7 | |
| parent | 196bc13b7bc5a29fa4d27e83d7cf0db4d99aa8b7 (diff) | |
| parent | be0d1cac83d14596406571f9cb668031ec5675ac (diff) | |
| download | emacs-5c890bfc191d0cf18dccbbf50ebdcde946a0d7fb.tar.gz emacs-5c890bfc191d0cf18dccbbf50ebdcde946a0d7fb.zip | |
Merge from origin/emacs-27
be0d1cac83 (origin/emacs-27) Small fix for type of 'display-fill-colu...
c5e5839776 Fix customization of 'display-fill-column-indicator-charac...
d5c184aa3e Refer to fill column indicator Info node in some places.
e13300ae50 Merge branch 'emacs-27' of git.sv.gnu.org:/srv/git/emacs i...
0bae57033f Fix GTK's Tool Bar menu radio buttons
4c98aa7ea5 Minor clarifications in NEWS
a1cbd05f38 Improve documentation of 'with-suppressed-warnings'.
4a895c1b26 Fix a typo in a comment
2caf3e997e Improve documentation of Hi Lock mode
7081c1d66f Fix typos in the Emacs user manual
0385771e2f Fix references to Speedbar in VHDL mode
a76cafea0d Fix handling of FROM = t and TO = t by 'window-text-pixel-...
# Conflicts:
# etc/NEWS
# src/xdisp.c
| -rw-r--r-- | doc/emacs/calendar.texi | 4 | ||||
| -rw-r--r-- | doc/emacs/custom.texi | 2 | ||||
| -rw-r--r-- | doc/emacs/dired.texi | 6 | ||||
| -rw-r--r-- | etc/NEWS.27 | 16 | ||||
| -rw-r--r-- | lisp/cus-start.el | 11 | ||||
| -rw-r--r-- | lisp/display-fill-column-indicator.el | 8 | ||||
| -rw-r--r-- | lisp/emacs-lisp/byte-run.el | 11 | ||||
| -rw-r--r-- | lisp/hi-lock.el | 20 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/vhdl-mode.el | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 66 |
11 files changed, 106 insertions, 44 deletions
diff --git a/doc/emacs/calendar.texi b/doc/emacs/calendar.texi index 09111853958..8dc1a0b2df8 100644 --- a/doc/emacs/calendar.texi +++ b/doc/emacs/calendar.texi | |||
| @@ -532,8 +532,8 @@ holidays centered around a different month, use @kbd{C-u M-x | |||
| 532 | holidays}, which prompts for the month and year. | 532 | holidays}, which prompts for the month and year. |
| 533 | 533 | ||
| 534 | The holidays known to Emacs include United States holidays and the | 534 | The holidays known to Emacs include United States holidays and the |
| 535 | major Bahá'í, Chinese, Christian, Islamic, and Jewish holidays; also the | 535 | major Bah@'{a}@t{'}@'{i}, Chinese, Christian, Islamic, and Jewish |
| 536 | solstices and equinoxes. | 536 | holidays; also the solstices and equinoxes. |
| 537 | 537 | ||
| 538 | @findex list-holidays | 538 | @findex list-holidays |
| 539 | The command @kbd{M-x holiday-list} displays the list of holidays for | 539 | The command @kbd{M-x holiday-list} displays the list of holidays for |
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi index 406f0c96c1f..d034a78501b 100644 --- a/doc/emacs/custom.texi +++ b/doc/emacs/custom.texi | |||
| @@ -1882,7 +1882,7 @@ also unset keys, when passed @code{nil} as the binding. | |||
| 1882 | 1882 | ||
| 1883 | Since a mode's keymaps are not constructed until it has been loaded, | 1883 | Since a mode's keymaps are not constructed until it has been loaded, |
| 1884 | you must delay running code which modifies them, e.g., by putting it | 1884 | you must delay running code which modifies them, e.g., by putting it |
| 1885 | on a @dfn{mode hook} (@pxref{(Hooks)}). For example, Texinfo mode | 1885 | on a @dfn{mode hook} (@pxref{Hooks}). For example, Texinfo mode |
| 1886 | runs the hook @code{texinfo-mode-hook}. Here's how you can use the | 1886 | runs the hook @code{texinfo-mode-hook}. Here's how you can use the |
| 1887 | hook to add local bindings for @kbd{C-c n} and @kbd{C-c p}, and remove | 1887 | hook to add local bindings for @kbd{C-c n} and @kbd{C-c p}, and remove |
| 1888 | the one for @kbd{C-c C-x x} in Texinfo mode: | 1888 | the one for @kbd{C-c C-x x} in Texinfo mode: |
diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi index d5144141803..4ff1dc1bd94 100644 --- a/doc/emacs/dired.texi +++ b/doc/emacs/dired.texi | |||
| @@ -723,7 +723,13 @@ with renamed files so that they refer to the new names. | |||
| 723 | @vindex dired-vc-rename-file | 723 | @vindex dired-vc-rename-file |
| 724 | If the value of the variable @code{dired-vc-rename-file} is non-@code{nil}, | 724 | If the value of the variable @code{dired-vc-rename-file} is non-@code{nil}, |
| 725 | files are renamed using the commands of the underlying VCS, via | 725 | files are renamed using the commands of the underlying VCS, via |
| 726 | @ifnottex | ||
| 726 | @code{vc-rename-file} (@pxref{VC Delete/Rename}). | 727 | @code{vc-rename-file} (@pxref{VC Delete/Rename}). |
| 728 | @end ifnottex | ||
| 729 | @iftex | ||
| 730 | @code{vc-rename-file} (@pxref{VC Delete/Rename,, Deleting and Renaming | ||
| 731 | Version-Controlled Files, emacs-xtra, Specialized Emacs Features}). | ||
| 732 | @end iftex | ||
| 727 | 733 | ||
| 728 | @findex dired-do-hardlink | 734 | @findex dired-do-hardlink |
| 729 | @kindex H @r{(Dired)} | 735 | @kindex H @r{(Dired)} |
diff --git a/etc/NEWS.27 b/etc/NEWS.27 index 42133b8bad8..bb275b70e6f 100644 --- a/etc/NEWS.27 +++ b/etc/NEWS.27 | |||
| @@ -881,21 +881,27 @@ list the contents of such directories when completing file names. | |||
| 881 | ** Minibuffer | 881 | ** Minibuffer |
| 882 | 882 | ||
| 883 | +++ | 883 | +++ |
| 884 | *** A new user option, 'minibuffer-beginning-of-buffer-movement', has | 884 | *** New user option 'minibuffer-beginning-of-buffer-movement'. |
| 885 | been introduced to allow controlling how the 'M-<' command works in | 885 | This option allows control of how the 'M-<' command works in |
| 886 | the minibuffer. If non-nil, point will move to the end of the prompt | 886 | the minibuffer. If non-nil, point will move to the end of the prompt |
| 887 | (if point is after the end of the prompt). | 887 | (if point is after the end of the prompt). The default is nil, which |
| 888 | preserves the original behavior of 'M-<' moving to the beginning of | ||
| 889 | the prompt. | ||
| 888 | 890 | ||
| 889 | +++ | 891 | +++ |
| 890 | *** When the minibuffer is active, echo-area messages are displayed at | 892 | *** When the minibuffer is active, echo-area messages are displayed at |
| 891 | the end of the minibuffer instead of hiding the minibuffer by the echo | 893 | the end of the minibuffer instead of hiding the minibuffer by the echo |
| 892 | area display. The new user option 'minibuffer-message-clear-timeout' | 894 | area display. The new user option 'minibuffer-message-clear-timeout' |
| 893 | controls how messages displayed in this situation are removed from the | 895 | controls how messages displayed in this situation are removed from the |
| 894 | minibuffer. | 896 | minibuffer. To revert to previous behavior, where echo-area messages |
| 897 | temporarily overwrote the minibuffer contents until the user typed | ||
| 898 | something, set 'set-message-function' and 'clear-message-function' to | ||
| 899 | nil. | ||
| 895 | 900 | ||
| 896 | --- | 901 | --- |
| 897 | *** Minibuffer now uses 'minibuffer-message' to display error messages | 902 | *** Minibuffer now uses 'minibuffer-message' to display error messages |
| 898 | at the end of the active minibuffer. | 903 | at the end of the active minibuffer. To disable this, remove |
| 904 | 'minibuffer-error-initialize' from 'minibuffer-setup-hook'. | ||
| 899 | 905 | ||
| 900 | +++ | 906 | +++ |
| 901 | *** 'y-or-n-p' now uses the minibuffer to read 'y' or 'n' answer. | 907 | *** 'y-or-n-p' now uses the minibuffer to read 'y' or 'n' answer. |
diff --git a/lisp/cus-start.el b/lisp/cus-start.el index dff4d9a6060..6632687da47 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el | |||
| @@ -771,9 +771,16 @@ since it could result in memory overflow and make Emacs crash." | |||
| 771 | :safe (lambda (value) (or (booleanp value) (integerp value)))) | 771 | :safe (lambda (value) (or (booleanp value) (integerp value)))) |
| 772 | (display-fill-column-indicator-character | 772 | (display-fill-column-indicator-character |
| 773 | display-fill-column-indicator | 773 | display-fill-column-indicator |
| 774 | character | 774 | (choice |
| 775 | (character :tag "Use U+2502 to indicate fill column" | ||
| 776 | :value ?│) | ||
| 777 | (character :tag "Use | to indicate fill column" | ||
| 778 | :value ?|) | ||
| 779 | (const :tag "If possible, use U+2502 to indicate fill column, otherwise use |" | ||
| 780 | :value nil) | ||
| 781 | character) | ||
| 775 | "27.1" | 782 | "27.1" |
| 776 | :safe characterp) | 783 | :safe (lambda (value) (or (characterp value) (null value)))) |
| 777 | ;; xfaces.c | 784 | ;; xfaces.c |
| 778 | (scalable-fonts-allowed display boolean "22.1") | 785 | (scalable-fonts-allowed display boolean "22.1") |
| 779 | ;; xfns.c | 786 | ;; xfns.c |
diff --git a/lisp/display-fill-column-indicator.el b/lisp/display-fill-column-indicator.el index 25259aadf6b..3f947bdc1c9 100644 --- a/lisp/display-fill-column-indicator.el +++ b/lisp/display-fill-column-indicator.el | |||
| @@ -31,7 +31,7 @@ | |||
| 31 | 31 | ||
| 32 | ;; NOTE: Customization variables for | 32 | ;; NOTE: Customization variables for |
| 33 | ;; `display-fill-column-indicator-column' and | 33 | ;; `display-fill-column-indicator-column' and |
| 34 | ;; `display-fill-column-indicator-char' itself are defined in | 34 | ;; `display-fill-column-indicator-character' itself are defined in |
| 35 | ;; cus-start.el. | 35 | ;; cus-start.el. |
| 36 | 36 | ||
| 37 | ;;; Code: | 37 | ;;; Code: |
| @@ -39,7 +39,8 @@ | |||
| 39 | (defgroup display-fill-column-indicator nil | 39 | (defgroup display-fill-column-indicator nil |
| 40 | "Display a fill column indicator in the buffer." | 40 | "Display a fill column indicator in the buffer." |
| 41 | :group 'convenience | 41 | :group 'convenience |
| 42 | :group 'display) | 42 | :group 'display |
| 43 | :link '(info-link "(emacs)Displaying Boundaries")) | ||
| 43 | 44 | ||
| 44 | 45 | ||
| 45 | ;;;###autoload | 46 | ;;;###autoload |
| @@ -49,7 +50,8 @@ This uses `display-fill-column-indicator' internally. | |||
| 49 | 50 | ||
| 50 | To change the position of the column displayed by default | 51 | To change the position of the column displayed by default |
| 51 | customize `display-fill-column-indicator-column'. You can change the | 52 | customize `display-fill-column-indicator-column'. You can change the |
| 52 | character for the indicator setting `display-fill-column-indicator-character'." | 53 | character for the indicator setting `display-fill-column-indicator-character'. |
| 54 | See Info node `Displaying Boundaries' for details." | ||
| 53 | :lighter nil | 55 | :lighter nil |
| 54 | (if display-fill-column-indicator-mode | 56 | (if display-fill-column-indicator-mode |
| 55 | (progn | 57 | (progn |
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el index fa769adb061..88e21b73fed 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el | |||
| @@ -536,11 +536,12 @@ wrong number of parameters, say | |||
| 536 | (zot 1 2)) | 536 | (zot 1 2)) |
| 537 | 537 | ||
| 538 | The warnings that can be suppressed are a subset of the warnings | 538 | The warnings that can be suppressed are a subset of the warnings |
| 539 | in `byte-compile-warning-types'; see this variable for a fuller | 539 | in `byte-compile-warning-types'; see the variable |
| 540 | explanation of the warning types. The types that can be | 540 | `byte-compile-warnings' for a fuller explanation of the warning |
| 541 | suppressed with this macro are `free-vars', `callargs', | 541 | types. The types that can be suppressed with this macro are |
| 542 | `redefine', `obsolete', `interactive-only', `lexical', `mapcar', | 542 | `free-vars', `callargs', `redefine', `obsolete', |
| 543 | `constants' and `suspicious'. | 543 | `interactive-only', `lexical', `mapcar', `constants' and |
| 544 | `suspicious'. | ||
| 544 | 545 | ||
| 545 | For the `mapcar' case, only the `mapcar' function can be used in | 546 | For the `mapcar' case, only the `mapcar' function can be used in |
| 546 | the symbol list. For `suspicious', only `set-buffer' can be used." | 547 | the symbol list. For `suspicious', only `set-buffer' can be used." |
diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index 08d82173e41..a18310322ad 100644 --- a/lisp/hi-lock.el +++ b/lisp/hi-lock.el | |||
| @@ -322,7 +322,10 @@ or add (global-hi-lock-mode 1) to your init file. | |||
| 322 | In buffers where Font Lock mode is enabled, patterns are | 322 | In buffers where Font Lock mode is enabled, patterns are |
| 323 | highlighted using font lock. In buffers where Font Lock mode is | 323 | highlighted using font lock. In buffers where Font Lock mode is |
| 324 | disabled, patterns are applied using overlays; in this case, the | 324 | disabled, patterns are applied using overlays; in this case, the |
| 325 | highlighting will not be updated as you type. | 325 | highlighting will not be updated as you type. The Font Lock mode |
| 326 | is considered \"enabled\" in a buffer if its `major-mode' | ||
| 327 | causes `font-lock-specified-p' to return non-nil, which means | ||
| 328 | the major mode specifies support for Font Lock. | ||
| 326 | 329 | ||
| 327 | When Hi Lock mode is enabled, a \"Regexp Highlighting\" submenu | 330 | When Hi Lock mode is enabled, a \"Regexp Highlighting\" submenu |
| 328 | is added to the \"Edit\" menu. The commands in the submenu, | 331 | is added to the \"Edit\" menu. The commands in the submenu, |
| @@ -480,7 +483,10 @@ and `search-upper-case' is non-nil, the matching is case-sensitive. | |||
| 480 | 483 | ||
| 481 | Use Font lock mode, if enabled, to highlight REGEXP. Otherwise, | 484 | Use Font lock mode, if enabled, to highlight REGEXP. Otherwise, |
| 482 | use overlays for highlighting. If overlays are used, the | 485 | use overlays for highlighting. If overlays are used, the |
| 483 | highlighting will not update as you type." | 486 | highlighting will not update as you type. The Font Lock mode |
| 487 | is considered \"enabled\" in a buffer if its `major-mode' | ||
| 488 | causes `font-lock-specified-p' to return non-nil, which means | ||
| 489 | the major mode specifies support for Font Lock." | ||
| 484 | (interactive | 490 | (interactive |
| 485 | (list | 491 | (list |
| 486 | (hi-lock-regexp-okay | 492 | (hi-lock-regexp-okay |
| @@ -510,7 +516,10 @@ Also set `search-spaces-regexp' to the value of `search-whitespace-regexp'. | |||
| 510 | 516 | ||
| 511 | Use Font lock mode, if enabled, to highlight REGEXP. Otherwise, | 517 | Use Font lock mode, if enabled, to highlight REGEXP. Otherwise, |
| 512 | use overlays for highlighting. If overlays are used, the | 518 | use overlays for highlighting. If overlays are used, the |
| 513 | highlighting will not update as you type." | 519 | highlighting will not update as you type. The Font Lock mode |
| 520 | is considered \"enabled\" in a buffer if its `major-mode' | ||
| 521 | causes `font-lock-specified-p' to return non-nil, which means | ||
| 522 | the major mode specifies support for Font Lock." | ||
| 514 | (interactive | 523 | (interactive |
| 515 | (list | 524 | (list |
| 516 | (hi-lock-regexp-okay | 525 | (hi-lock-regexp-okay |
| @@ -538,7 +547,10 @@ If REGEXP contains upper case characters (excluding those preceded by `\\') | |||
| 538 | and `search-upper-case' is non-nil, the matching is case-sensitive. | 547 | and `search-upper-case' is non-nil, the matching is case-sensitive. |
| 539 | 548 | ||
| 540 | This uses Font lock mode if it is enabled; otherwise it uses overlays, | 549 | This uses Font lock mode if it is enabled; otherwise it uses overlays, |
| 541 | in which case the highlighting will not update as you type." | 550 | in which case the highlighting will not update as you type. The Font |
| 551 | Lock mode is considered \"enabled\" in a buffer if its `major-mode' | ||
| 552 | causes `font-lock-specified-p' to return non-nil, which means | ||
| 553 | the major mode specifies support for Font Lock." | ||
| 542 | (interactive) | 554 | (interactive) |
| 543 | (let* ((regexp (hi-lock-regexp-okay | 555 | (let* ((regexp (hi-lock-regexp-okay |
| 544 | (find-tag-default-as-symbol-regexp))) | 556 | (find-tag-default-as-symbol-regexp))) |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 731da193ef1..9bc667acd61 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -1085,10 +1085,10 @@ The selected font will be the default on both the existing and future frames." | |||
| 1085 | :visible (display-graphic-p) | 1085 | :visible (display-graphic-p) |
| 1086 | :button | 1086 | :button |
| 1087 | (:radio . (and tool-bar-mode | 1087 | (:radio . (and tool-bar-mode |
| 1088 | (frame-parameter | 1088 | (eq (frame-parameter |
| 1089 | (menu-bar-frame-for-menubar) | 1089 | (menu-bar-frame-for-menubar) |
| 1090 | 'tool-bar-position) | 1090 | 'tool-bar-position) |
| 1091 | 'left)))) | 1091 | 'left))))) |
| 1092 | 1092 | ||
| 1093 | (bindings--define-key menu [showhide-tool-bar-right] | 1093 | (bindings--define-key menu [showhide-tool-bar-right] |
| 1094 | '(menu-item "On the Right" | 1094 | '(menu-item "On the Right" |
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el index 22c61586266..9cd84cf713b 100644 --- a/lisp/progmodes/vhdl-mode.el +++ b/lisp/progmodes/vhdl-mode.el | |||
| @@ -14730,7 +14730,7 @@ if required." | |||
| 14730 | (speedbar-add-mode-functions-list | 14730 | (speedbar-add-mode-functions-list |
| 14731 | '("vhdl directory" | 14731 | '("vhdl directory" |
| 14732 | (speedbar-item-info . vhdl-speedbar-item-info) | 14732 | (speedbar-item-info . vhdl-speedbar-item-info) |
| 14733 | (speedbar-line-directory . speedbar-files-line-path))) | 14733 | (speedbar-line-directory . speedbar-files-line-directory))) |
| 14734 | (speedbar-add-mode-functions-list | 14734 | (speedbar-add-mode-functions-list |
| 14735 | '("vhdl project" | 14735 | '("vhdl project" |
| 14736 | (speedbar-item-info . vhdl-speedbar-item-info) | 14736 | (speedbar-item-info . vhdl-speedbar-item-info) |
diff --git a/src/xdisp.c b/src/xdisp.c index 140d134572f..3ff4365ea61 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -10486,7 +10486,7 @@ include the height of both, if present, in the return value. */) | |||
| 10486 | struct buffer *b; | 10486 | struct buffer *b; |
| 10487 | struct it it; | 10487 | struct it it; |
| 10488 | struct buffer *old_b = NULL; | 10488 | struct buffer *old_b = NULL; |
| 10489 | ptrdiff_t start, end, pos; | 10489 | ptrdiff_t start, end, bpos; |
| 10490 | struct text_pos startp; | 10490 | struct text_pos startp; |
| 10491 | void *itdata = NULL; | 10491 | void *itdata = NULL; |
| 10492 | int c, max_x = 0, max_y = 0, x = 0, y = 0; | 10492 | int c, max_x = 0, max_y = 0, x = 0, y = 0; |
| @@ -10501,29 +10501,55 @@ include the height of both, if present, in the return value. */) | |||
| 10501 | } | 10501 | } |
| 10502 | 10502 | ||
| 10503 | if (NILP (from)) | 10503 | if (NILP (from)) |
| 10504 | start = BEGV; | 10504 | { |
| 10505 | start = BEGV; | ||
| 10506 | bpos = BEGV_BYTE; | ||
| 10507 | } | ||
| 10505 | else if (EQ (from, Qt)) | 10508 | else if (EQ (from, Qt)) |
| 10506 | { | 10509 | { |
| 10507 | start = pos = BEGV; | 10510 | start = BEGV; |
| 10508 | while ((pos++ < ZV) && (c = FETCH_CHAR (pos)) | 10511 | bpos = BEGV_BYTE; |
| 10509 | && (c == ' ' || c == '\t' || c == '\n' || c == '\r')) | 10512 | while (bpos < ZV_BYTE) |
| 10510 | start = pos; | 10513 | { |
| 10511 | while ((pos-- > BEGV) && (c = FETCH_CHAR (pos)) && (c == ' ' || c == '\t')) | 10514 | FETCH_CHAR_ADVANCE (c, start, bpos); |
| 10512 | start = pos; | 10515 | if (!(c == ' ' || c == '\t' || c == '\n' || c == '\r')) |
| 10516 | break; | ||
| 10517 | } | ||
| 10518 | while (bpos > BEGV_BYTE) | ||
| 10519 | { | ||
| 10520 | DEC_BOTH (start, bpos); | ||
| 10521 | c = FETCH_CHAR (bpos); | ||
| 10522 | if (!(c == ' ' || c == '\t')) | ||
| 10523 | break; | ||
| 10524 | } | ||
| 10513 | } | 10525 | } |
| 10514 | else | 10526 | else |
| 10515 | start = clip_to_bounds (BEGV, fix_position (from), ZV); | 10527 | { |
| 10528 | start = clip_to_bounds (BEGV, fix_position (from), ZV); | ||
| 10529 | bpos = CHAR_TO_BYTE (start); | ||
| 10530 | } | ||
| 10531 | |||
| 10532 | SET_TEXT_POS (startp, start, bpos); | ||
| 10516 | 10533 | ||
| 10517 | if (NILP (to)) | 10534 | if (NILP (to)) |
| 10518 | end = ZV; | 10535 | end = ZV; |
| 10519 | else if (EQ (to, Qt)) | 10536 | else if (EQ (to, Qt)) |
| 10520 | { | 10537 | { |
| 10521 | end = pos = ZV; | 10538 | end = ZV; |
| 10522 | while ((pos-- > BEGV) && (c = FETCH_CHAR (pos)) | 10539 | bpos = ZV_BYTE; |
| 10523 | && (c == ' ' || c == '\t' || c == '\n' || c == '\r')) | 10540 | while (bpos > BEGV_BYTE) |
| 10524 | end = pos; | 10541 | { |
| 10525 | while ((pos++ < ZV) && (c = FETCH_CHAR (pos)) && (c == ' ' || c == '\t')) | 10542 | DEC_BOTH (end, bpos); |
| 10526 | end = pos; | 10543 | c = FETCH_CHAR (bpos); |
| 10544 | if (!(c == ' ' || c == '\t' || c == '\n' || c == '\r')) | ||
| 10545 | break; | ||
| 10546 | } | ||
| 10547 | while (bpos < ZV_BYTE) | ||
| 10548 | { | ||
| 10549 | FETCH_CHAR_ADVANCE (c, end, bpos); | ||
| 10550 | if (!(c == ' ' || c == '\t')) | ||
| 10551 | break; | ||
| 10552 | } | ||
| 10527 | } | 10553 | } |
| 10528 | else | 10554 | else |
| 10529 | end = clip_to_bounds (start, fix_position (to), ZV); | 10555 | end = clip_to_bounds (start, fix_position (to), ZV); |
| @@ -10537,7 +10563,6 @@ include the height of both, if present, in the return value. */) | |||
| 10537 | max_y = XFIXNUM (y_limit); | 10563 | max_y = XFIXNUM (y_limit); |
| 10538 | 10564 | ||
| 10539 | itdata = bidi_shelve_cache (); | 10565 | itdata = bidi_shelve_cache (); |
| 10540 | SET_TEXT_POS (startp, start, CHAR_TO_BYTE (start)); | ||
| 10541 | start_display (&it, w, startp); | 10566 | start_display (&it, w, startp); |
| 10542 | /* It makes no sense to measure dimensions of region of text that | 10567 | /* It makes no sense to measure dimensions of region of text that |
| 10543 | crosses the point where bidi reordering changes scan direction. | 10568 | crosses the point where bidi reordering changes scan direction. |
| @@ -34965,7 +34990,8 @@ It has no effect when set to 0, or when line numbers are not absolute. */); | |||
| 34965 | Fmake_variable_buffer_local (Qdisplay_line_numbers_offset); | 34990 | Fmake_variable_buffer_local (Qdisplay_line_numbers_offset); |
| 34966 | 34991 | ||
| 34967 | DEFVAR_BOOL ("display-fill-column-indicator", Vdisplay_fill_column_indicator, | 34992 | DEFVAR_BOOL ("display-fill-column-indicator", Vdisplay_fill_column_indicator, |
| 34968 | doc: /* Non-nil means display the fill column indicator. */); | 34993 | doc: /* Non-nil means display the fill column indicator. |
| 34994 | See Info node `Displaying Boundaries' for details. */); | ||
| 34969 | Vdisplay_fill_column_indicator = false; | 34995 | Vdisplay_fill_column_indicator = false; |
| 34970 | DEFSYM (Qdisplay_fill_column_indicator, "display-fill-column-indicator"); | 34996 | DEFSYM (Qdisplay_fill_column_indicator, "display-fill-column-indicator"); |
| 34971 | Fmake_variable_buffer_local (Qdisplay_fill_column_indicator); | 34997 | Fmake_variable_buffer_local (Qdisplay_fill_column_indicator); |
| @@ -34974,7 +35000,8 @@ It has no effect when set to 0, or when line numbers are not absolute. */); | |||
| 34974 | doc: /* Column for indicator when `display-fill-column-indicator' is non-nil. | 35000 | doc: /* Column for indicator when `display-fill-column-indicator' is non-nil. |
| 34975 | The default value is t which means that the indicator | 35001 | The default value is t which means that the indicator |
| 34976 | will use the `fill-column' variable. If it is set to an integer the | 35002 | will use the `fill-column' variable. If it is set to an integer the |
| 34977 | indicator will be drawn in that column. */); | 35003 | indicator will be drawn in that column. |
| 35004 | See Info node `Displaying Boundaries' for details. */); | ||
| 34978 | Vdisplay_fill_column_indicator_column = Qt; | 35005 | Vdisplay_fill_column_indicator_column = Qt; |
| 34979 | DEFSYM (Qdisplay_fill_column_indicator_column, "display-fill-column-indicator-column"); | 35006 | DEFSYM (Qdisplay_fill_column_indicator_column, "display-fill-column-indicator-column"); |
| 34980 | Fmake_variable_buffer_local (Qdisplay_fill_column_indicator_column); | 35007 | Fmake_variable_buffer_local (Qdisplay_fill_column_indicator_column); |
| @@ -34982,7 +35009,8 @@ indicator will be drawn in that column. */); | |||
| 34982 | DEFVAR_LISP ("display-fill-column-indicator-character", Vdisplay_fill_column_indicator_character, | 35009 | DEFVAR_LISP ("display-fill-column-indicator-character", Vdisplay_fill_column_indicator_character, |
| 34983 | doc: /* Character to draw the indicator when `display-fill-column-indicator' is non-nil. | 35010 | doc: /* Character to draw the indicator when `display-fill-column-indicator' is non-nil. |
| 34984 | The default is U+2502 but a good alternative is (ascii 124) | 35011 | The default is U+2502 but a good alternative is (ascii 124) |
| 34985 | if the font in fill-column-indicator face does not support Unicode characters. */); | 35012 | if the font in fill-column-indicator face does not support Unicode characters. |
| 35013 | See Info node `Displaying Boundaries' for details. */); | ||
| 34986 | Vdisplay_fill_column_indicator_character = Qnil; | 35014 | Vdisplay_fill_column_indicator_character = Qnil; |
| 34987 | DEFSYM (Qdisplay_fill_column_indicator_character, "display-fill-column-indicator-character"); | 35015 | DEFSYM (Qdisplay_fill_column_indicator_character, "display-fill-column-indicator-character"); |
| 34988 | Fmake_variable_buffer_local (Qdisplay_fill_column_indicator_character); | 35016 | Fmake_variable_buffer_local (Qdisplay_fill_column_indicator_character); |