diff options
| author | Eli Zaretskii | 2014-12-04 11:31:33 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2014-12-04 11:31:33 +0200 |
| commit | f1827846d715cfef05afe52ad2a9df2289df6952 (patch) | |
| tree | 048ee9690b7bcc87353137fe72031fe083908371 /etc | |
| parent | 2bef807c322b44cf63db85e4b60001a76cbe3d9f (diff) | |
| download | emacs-f1827846d715cfef05afe52ad2a9df2289df6952.tar.gz emacs-f1827846d715cfef05afe52ad2a9df2289df6952.zip | |
Implement copying of a buffer portion while preserving visual order.
See http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg02203.html
and http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00063.html
for the rationale.
lisp/simple.el (bidi-directional-controls-chars)
(bidi-directional-non-controls-chars): New variables.
(squeeze-bidi-context-1, squeeze-bidi-context)
(line-substring-with-bidi-context)
(buffer-substring-with-bidi-context): New functions.
doc/lispref/display.texi (Bidirectional Display): Document
'buffer-substring-with-bidi-context'.
doc/lispref/text.texi (Buffer Contents): Mention
'buffer-substring-with-bidi-context' with a cross-reference.
etc/NEWS: Mention 'buffer-substring-with-bidi-context'.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/ChangeLog | 4 | ||||
| -rw-r--r-- | etc/NEWS | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog index 4f672dfce5e..84a1c483b47 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-12-04 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * NEWS: Mention 'buffer-substring-with-bidi-context'. | ||
| 4 | |||
| 1 | 2014-12-02 Eli Zaretskii <eliz@gnu.org> | 5 | 2014-12-02 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * NEWS: Mention 'bidi-find-overridden-directionality'. | 7 | * NEWS: Mention 'bidi-find-overridden-directionality'. |
| @@ -105,6 +105,13 @@ overridden by directional override control characters. Lisp programs | |||
| 105 | can use this to detect potential phishing of URLs and other links that | 105 | can use this to detect potential phishing of URLs and other links that |
| 106 | exploits bidirectional display reordering. | 106 | exploits bidirectional display reordering. |
| 107 | 107 | ||
| 108 | +++ | ||
| 109 | ** The new function `buffer-substring-with-bidi-context' allows to | ||
| 110 | copy a portion of a buffer into a different location while preserving | ||
| 111 | the visual appearance both of the copied text and the text at | ||
| 112 | destination, even when the copied text includes mixed bidirectional | ||
| 113 | text and directional control characters. | ||
| 114 | |||
| 108 | *** The ls-lisp package uses `string-collate-lessp' to sort file names. | 115 | *** The ls-lisp package uses `string-collate-lessp' to sort file names. |
| 109 | If you want the old, locale-independent sorting, customize the new | 116 | If you want the old, locale-independent sorting, customize the new |
| 110 | option `ls-lisp-use-string-collate' to a nil value. | 117 | option `ls-lisp-use-string-collate' to a nil value. |