diff options
| author | Roland Winkler | 2012-09-23 07:46:53 -0500 |
|---|---|---|
| committer | Roland Winkler | 2012-09-23 07:46:53 -0500 |
| commit | 2f438239765fd8583a3ed86007544221a2d6b5a2 (patch) | |
| tree | 59f9478a9156b3717ab6693ece898cf1e5f24001 | |
| parent | 936ad0418d9ee623f4a4fcd6b40e3f9220892d98 (diff) | |
| download | emacs-2f438239765fd8583a3ed86007544221a2d6b5a2.tar.gz emacs-2f438239765fd8583a3ed86007544221a2d6b5a2.zip | |
lisp/textmodes/bibtex.el: minor bugfixes
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/textmodes/bibtex.el | 32 |
2 files changed, 24 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 77c95a9d19e..39e0cba4e3e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2012-09-23 Roland Winkler <winkler@gnu.org> | 1 | 2012-09-23 Roland Winkler <winkler@gnu.org> |
| 2 | 2 | ||
| 3 | * textmodes/bibtex.el (bibtex-autokey-transcriptions): Transcribe | ||
| 4 | also LaTeX hyphenation. | ||
| 5 | (bibtex-reformat): Bug fix. Do not quote twice the elements of | ||
| 6 | bibtex-reformat-previous-options. | ||
| 7 | |||
| 8 | 2012-09-23 Roland Winkler <winkler@gnu.org> | ||
| 9 | |||
| 3 | * proced.el (proced-renice-command): New variable. | 10 | * proced.el (proced-renice-command): New variable. |
| 4 | (proced-marked-processes): New function. | 11 | (proced-marked-processes): New function. |
| 5 | (proced-with-processes-buffer): New macro. | 12 | (proced-with-processes-buffer): New macro. |
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 31656918fad..e0d93b68056 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el | |||
| @@ -1002,6 +1002,7 @@ See `bibtex-generate-autokey' for details." | |||
| 1002 | ("\\\\`\\|\\\\'\\|\\\\\\^\\|\\\\~\\|\\\\=\\|\\\\\\.\\|\\\\u\\|\\\\v\\|\\\\H\\|\\\\t\\|\\\\c\\|\\\\d\\|\\\\b" . "") | 1002 | ("\\\\`\\|\\\\'\\|\\\\\\^\\|\\\\~\\|\\\\=\\|\\\\\\.\\|\\\\u\\|\\\\v\\|\\\\H\\|\\\\t\\|\\\\c\\|\\\\d\\|\\\\b" . "") |
| 1003 | ;; braces, quotes, concatenation. | 1003 | ;; braces, quotes, concatenation. |
| 1004 | ("[`'\"{}#]" . "") | 1004 | ("[`'\"{}#]" . "") |
| 1005 | ("\\\\-" . "") ; \- -> | ||
| 1005 | ;; spaces | 1006 | ;; spaces |
| 1006 | ("\\\\?[ \t\n]+\\|~" . " ")) | 1007 | ("\\\\?[ \t\n]+\\|~" . " ")) |
| 1007 | "Alist of (OLD-REGEXP . NEW-STRING) pairs. | 1008 | "Alist of (OLD-REGEXP . NEW-STRING) pairs. |
| @@ -4893,21 +4894,22 @@ If mark is active reformat entries in region, if not in whole buffer." | |||
| 4893 | (if use-previous-options | 4894 | (if use-previous-options |
| 4894 | bibtex-reformat-previous-options | 4895 | bibtex-reformat-previous-options |
| 4895 | (setq bibtex-reformat-previous-options | 4896 | (setq bibtex-reformat-previous-options |
| 4896 | (mapcar (lambda (option) | 4897 | (delq nil |
| 4897 | (if (y-or-n-p (car option)) (cdr option))) | 4898 | (mapcar (lambda (option) |
| 4898 | `(("Realign entries (recommended)? " . 'realign) | 4899 | (if (y-or-n-p (car option)) (cdr option))) |
| 4899 | ("Remove empty optional and alternative fields? " . 'opts-or-alts) | 4900 | `(("Realign entries (recommended)? " . realign) |
| 4900 | ("Remove delimiters around pure numerical fields? " . 'numerical-fields) | 4901 | ("Remove empty optional and alternative fields? " . opts-or-alts) |
| 4901 | (,(concat (if bibtex-comma-after-last-field "Insert" "Remove") | 4902 | ("Remove delimiters around pure numerical fields? " . numerical-fields) |
| 4902 | " comma at end of entry? ") . 'last-comma) | 4903 | (,(concat (if bibtex-comma-after-last-field "Insert" "Remove") |
| 4903 | ("Replace double page dashes by single ones? " . 'page-dashes) | 4904 | " comma at end of entry? ") . last-comma) |
| 4904 | ("Delete whitespace at the beginning and end of fields? " . 'whitespace) | 4905 | ("Replace double page dashes by single ones? " . page-dashes) |
| 4905 | ("Inherit booktitle? " . 'inherit-booktitle) | 4906 | ("Delete whitespace at the beginning and end of fields? " . whitespace) |
| 4906 | ("Force delimiters? " . 'delimiters) | 4907 | ("Inherit booktitle? " . inherit-booktitle) |
| 4907 | ("Unify case of entry types and field names? " . 'unify-case) | 4908 | ("Force delimiters? " . delimiters) |
| 4908 | ("Enclose parts of field entries by braces? " . 'braces) | 4909 | ("Unify case of entry types and field names? " . unify-case) |
| 4909 | ("Replace parts of field entries by string constants? " . 'strings) | 4910 | ("Enclose parts of field entries by braces? " . braces) |
| 4910 | ("Sort fields? " . 'sort-fields)))))) | 4911 | ("Replace parts of field entries by string constants? " . strings) |
| 4912 | ("Sort fields? " . sort-fields))))))) | ||
| 4911 | ;; Do not include required-fields because `bibtex-reformat' | 4913 | ;; Do not include required-fields because `bibtex-reformat' |
| 4912 | ;; cannot handle the error messages of `bibtex-format-entry'. | 4914 | ;; cannot handle the error messages of `bibtex-format-entry'. |
| 4913 | ;; Use `bibtex-validate' to check for required fields. | 4915 | ;; Use `bibtex-validate' to check for required fields. |