aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii2014-12-04 11:31:33 +0200
committerEli Zaretskii2014-12-04 11:31:33 +0200
commitf1827846d715cfef05afe52ad2a9df2289df6952 (patch)
tree048ee9690b7bcc87353137fe72031fe083908371 /etc
parent2bef807c322b44cf63db85e4b60001a76cbe3d9f (diff)
downloademacs-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/ChangeLog4
-rw-r--r--etc/NEWS7
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 @@
12014-12-04 Eli Zaretskii <eliz@gnu.org>
2
3 * NEWS: Mention 'buffer-substring-with-bidi-context'.
4
12014-12-02 Eli Zaretskii <eliz@gnu.org> 52014-12-02 Eli Zaretskii <eliz@gnu.org>
2 6
3 * NEWS: Mention 'bidi-find-overridden-directionality'. 7 * NEWS: Mention 'bidi-find-overridden-directionality'.
diff --git a/etc/NEWS b/etc/NEWS
index f3890a51aad..ae92fa957b9 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -105,6 +105,13 @@ overridden by directional override control characters. Lisp programs
105can use this to detect potential phishing of URLs and other links that 105can use this to detect potential phishing of URLs and other links that
106exploits bidirectional display reordering. 106exploits bidirectional display reordering.
107 107
108+++
109** The new function `buffer-substring-with-bidi-context' allows to
110copy a portion of a buffer into a different location while preserving
111the visual appearance both of the copied text and the text at
112destination, even when the copied text includes mixed bidirectional
113text 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.
109If you want the old, locale-independent sorting, customize the new 116If you want the old, locale-independent sorting, customize the new
110option `ls-lisp-use-string-collate' to a nil value. 117option `ls-lisp-use-string-collate' to a nil value.