diff options
| author | Eli Zaretskii | 2015-11-29 19:52:16 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-11-29 19:52:16 +0200 |
| commit | 36255fba58b6c73fcf1c810877cc128091fa2a68 (patch) | |
| tree | 425398ceaa2701c4d010b77dd77b1f7c7f51b687 /etc | |
| parent | f3bd8262a2f5ea104ca0394683098e3c2efe3024 (diff) | |
| download | emacs-36255fba58b6c73fcf1c810877cc128091fa2a68.tar.gz emacs-36255fba58b6c73fcf1c810877cc128091fa2a68.zip | |
Improve documentation of string-collate-* functions
* doc/lispref/strings.texi (Text Comparison): Improve wording and
indexing of 'string-collate-equalp' and 'string-collate-lessp'.
* etc/NEWS: Move the entry of 'string-collate-equalp' and
'string-collate-lessp' to "Lisp Changes" section and mark it as
documented.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 37 |
1 files changed, 20 insertions, 17 deletions
| @@ -181,23 +181,6 @@ for use in Emacs bug reports. | |||
| 181 | hiding character but the default `.' can be used by let-binding the | 181 | hiding character but the default `.' can be used by let-binding the |
| 182 | variable `read-hide-char'. | 182 | variable `read-hide-char'. |
| 183 | 183 | ||
| 184 | ** The new functions `string-collate-lessp' and `string-collate-equalp' | ||
| 185 | preserve the collation order as defined by the system's locale(1) | ||
| 186 | environment. For the time being this is implemented for modern POSIX | ||
| 187 | systems and for MS-Windows, for other systems they fall back to their | ||
| 188 | counterparts `string-lessp' and `string-equal'. | ||
| 189 | |||
| 190 | *** The ls-lisp package uses `string-collate-lessp' to sort file names. | ||
| 191 | If you want the old, locale-independent sorting, customize the new | ||
| 192 | option `ls-lisp-use-string-collate' to a nil value. | ||
| 193 | |||
| 194 | *** The MS-Windows specific variable `w32-collate-ignore-punctuation', | ||
| 195 | if set to a non-nil value, causes the above 2 functions to ignore | ||
| 196 | symbol and punctuation characters when collating strings. This | ||
| 197 | emulates the behavior of modern Posix platforms when the locale's | ||
| 198 | codeset is "UTF-8" (as in "en_US.UTF-8"). This is needed because | ||
| 199 | MS-Windows doesn't support UTF-8 as codeset in its locales. | ||
| 200 | |||
| 201 | +++ | 184 | +++ |
| 202 | ** The new function `bidi-find-overridden-directionality' allows to | 185 | ** The new function `bidi-find-overridden-directionality' allows to |
| 203 | find characters whose directionality was, perhaps maliciously, | 186 | find characters whose directionality was, perhaps maliciously, |
| @@ -1199,6 +1182,26 @@ evaluated (and should return a string) when the closure is built. | |||
| 1199 | ** New function `string-greaterp', which return the opposite result of | 1182 | ** New function `string-greaterp', which return the opposite result of |
| 1200 | `string-lessp'. | 1183 | `string-lessp'. |
| 1201 | 1184 | ||
| 1185 | +++ | ||
| 1186 | ** The new functions `string-collate-lessp' and `string-collate-equalp' | ||
| 1187 | preserve the collation order as defined by the system's locale(1) | ||
| 1188 | environment. For the time being this is implemented for modern POSIX | ||
| 1189 | systems and for MS-Windows, for other systems they fall back to their | ||
| 1190 | counterparts `string-lessp' and `string-equal'. | ||
| 1191 | |||
| 1192 | --- | ||
| 1193 | *** The ls-lisp package uses `string-collate-lessp' to sort file names. | ||
| 1194 | If you want the old, locale-independent sorting, customize the new | ||
| 1195 | option `ls-lisp-use-string-collate' to a nil value. | ||
| 1196 | |||
| 1197 | +++ | ||
| 1198 | *** The MS-Windows specific variable `w32-collate-ignore-punctuation', | ||
| 1199 | if set to a non-nil value, causes the above 2 functions to ignore | ||
| 1200 | symbol and punctuation characters when collating strings. This | ||
| 1201 | emulates the behavior of modern Posix platforms when the locale's | ||
| 1202 | codeset is "UTF-8" (as in "en_US.UTF-8"). This is needed because | ||
| 1203 | MS-Windows doesn't support UTF-8 as codeset in its locales. | ||
| 1204 | |||
| 1202 | ** New function `alist-get', which is also a valid place (aka lvalue). | 1205 | ** New function `alist-get', which is also a valid place (aka lvalue). |
| 1203 | 1206 | ||
| 1204 | ** New function `funcall-interactively', which works like `funcall' | 1207 | ** New function `funcall-interactively', which works like `funcall' |