diff options
| author | Eli Zaretskii | 2024-01-27 10:38:14 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2024-01-27 10:38:14 +0200 |
| commit | 43e2f3acdd2dbd040ec2fc473ca60ee3179bb796 (patch) | |
| tree | 5ebaebfa6fc961461c79991976b746152c56bbec /lisp/visual-wrap.el | |
| parent | 08007a030e03762b888dcfcd64e84f03e5a2d54f (diff) | |
| download | emacs-43e2f3acdd2dbd040ec2fc473ca60ee3179bb796.tar.gz emacs-43e2f3acdd2dbd040ec2fc473ca60ee3179bb796.zip | |
; Minor improvements in 'visual-wrap-prefix-mode'
* lisp/visual-wrap.el (visual-wrap-extra-indent): Add :version.
(visual-wrap-fill-context-prefix): Doc fix.
* lisp/menu-bar.el (menu-bar-line-wrapping-menu): Move the menu to
a better place, improve the help-echo text.
* etc/NEWS:
* doc/emacs/basic.texi (Continuation Lines): Improve documentation
and indexing of 'visual-wrap-prefix-mode'.
Diffstat (limited to 'lisp/visual-wrap.el')
| -rw-r--r-- | lisp/visual-wrap.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/visual-wrap.el b/lisp/visual-wrap.el index f8e00b9c685..1cb49538eae 100644 --- a/lisp/visual-wrap.el +++ b/lisp/visual-wrap.el | |||
| @@ -59,6 +59,7 @@ extra indent = 2 | |||
| 59 | ullamco laboris nisi ut aliquip ex ea commodo consequat." | 59 | ullamco laboris nisi ut aliquip ex ea commodo consequat." |
| 60 | :type 'integer | 60 | :type 'integer |
| 61 | :safe 'integerp | 61 | :safe 'integerp |
| 62 | :version "30.1" | ||
| 62 | :group 'visual-line) | 63 | :group 'visual-line) |
| 63 | 64 | ||
| 64 | (defun visual-wrap--face-extend-p (face) | 65 | (defun visual-wrap--face-extend-p (face) |
| @@ -111,8 +112,9 @@ extra indent = 2 | |||
| 111 | "")))) | 112 | "")))) |
| 112 | 113 | ||
| 113 | (defun visual-wrap-fill-context-prefix (beg end) | 114 | (defun visual-wrap-fill-context-prefix (beg end) |
| 114 | "Like `fill-context-prefix', but with length adjusted by | 115 | "Compute visual wrap prefix from text between FROM and TO. |
| 115 | `visual-wrap-extra-indent'." | 116 | This is like `fill-context-prefix', but with prefix length adjusted |
| 117 | by `visual-wrap-extra-indent'." | ||
| 116 | (let* ((fcp | 118 | (let* ((fcp |
| 117 | ;; `fill-context-prefix' ignores prefixes that look like | 119 | ;; `fill-context-prefix' ignores prefixes that look like |
| 118 | ;; paragraph starts, in order to avoid inadvertently | 120 | ;; paragraph starts, in order to avoid inadvertently |