diff options
| author | Chong Yidong | 2012-08-03 16:15:24 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-08-03 16:15:24 +0800 |
| commit | 385b01989fcb49ac2cd4cd03bf5c32cab4374a2e (patch) | |
| tree | 0ed83e6a494404ec102683e6a345617e711db5ae | |
| parent | b9e74744d6f6a756efe2e944b3a427e28169ad16 (diff) | |
| download | emacs-385b01989fcb49ac2cd4cd03bf5c32cab4374a2e.tar.gz emacs-385b01989fcb49ac2cd4cd03bf5c32cab4374a2e.zip | |
* sort.el (sort-regexp-fields): Doc fix.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/sort.el | 29 |
2 files changed, 21 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8d449a05934..5481e389c76 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-08-03 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * sort.el (sort-regexp-fields): Doc fix. | ||
| 4 | |||
| 1 | 2012-08-03 Tassilo Horn <tsdh@gnu.org> | 5 | 2012-08-03 Tassilo Horn <tsdh@gnu.org> |
| 2 | 6 | ||
| 3 | * textmodes/reftex.el (reftex-compile-variables): Make keyvals | 7 | * textmodes/reftex.el (reftex-compile-variables): Make keyvals |
diff --git a/lisp/sort.el b/lisp/sort.el index 8cfe69f9458..44f90fff379 100644 --- a/lisp/sort.el +++ b/lisp/sort.el | |||
| @@ -401,18 +401,23 @@ the sort order." | |||
| 401 | 401 | ||
| 402 | ;;;###autoload | 402 | ;;;###autoload |
| 403 | (defun sort-regexp-fields (reverse record-regexp key-regexp beg end) | 403 | (defun sort-regexp-fields (reverse record-regexp key-regexp beg end) |
| 404 | "Sort the region lexicographically as specified by RECORD-REGEXP and KEY. | 404 | "Sort the text in the region region lexicographically. |
| 405 | RECORD-REGEXP specifies the textual units which should be sorted. | 405 | If called interactively, prompt for two regular expressions, |
| 406 | For example, to sort lines RECORD-REGEXP would be \"^.*$\" | 406 | RECORD-REGEXP and KEY-REGEXP. |
| 407 | KEY specifies the part of each record (ie each match for RECORD-REGEXP) | 407 | |
| 408 | is to be used for sorting. | 408 | RECORD-REGEXP specifies the textual units to be sorted. |
| 409 | If it is \"\\\\digit\" then the digit'th \"\\\\(...\\\\)\" match field from | 409 | For example, to sort lines, RECORD-REGEXP would be \"^.*$\". |
| 410 | RECORD-REGEXP is used. | 410 | |
| 411 | If it is \"\\\\&\" then the whole record is used. | 411 | KEY-REGEXP specifies the part of each record (i.e. each match for |
| 412 | Otherwise, it is a regular-expression for which to search within the record. | 412 | RECORD-REGEXP) to be used for sorting. |
| 413 | If a match for KEY is not found within a record then that record is ignored. | 413 | If it is \"\\\\digit\", use the digit'th \"\\\\(...\\\\)\" |
| 414 | 414 | match field specified by RECORD-REGEXP. | |
| 415 | With a negative prefix arg sorts in reverse order. | 415 | If it is \"\\\\&\", use the whole record. |
| 416 | Otherwise, KEY-REGEXP should be a regular expression with which | ||
| 417 | to search within the record. If a match for KEY-REGEXP is not | ||
| 418 | found within a record, that record is ignored. | ||
| 419 | |||
| 420 | With a negative prefix arg, sort in reverse order. | ||
| 416 | 421 | ||
| 417 | The variable `sort-fold-case' determines whether alphabetic case affects | 422 | The variable `sort-fold-case' determines whether alphabetic case affects |
| 418 | the sort order. | 423 | the sort order. |