diff options
| author | Joakim Verona | 2013-01-22 00:03:23 +0100 |
|---|---|---|
| committer | Joakim Verona | 2013-01-22 00:03:23 +0100 |
| commit | 2adf26f58a2435bcbd7f925f7e1208ceda907520 (patch) | |
| tree | c010555fabe45beeb3028cb03a64c53abae093a5 /lisp | |
| parent | 9054ae6b57b275be298a919a3aed506f950409b6 (diff) | |
| parent | bb677ef7449aba3c2d5d7ede8cc4b87814f01ab3 (diff) | |
| download | emacs-2adf26f58a2435bcbd7f925f7e1208ceda907520.tar.gz emacs-2adf26f58a2435bcbd7f925f7e1208ceda907520.zip | |
auto upstream
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 44 | ||||
| -rw-r--r-- | lisp/frame.el | 1 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 7 | ||||
| -rw-r--r-- | lisp/net/tramp-adb.el | 60 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 3 | ||||
| -rw-r--r-- | lisp/net/tramp-smb.el | 5 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 37 | ||||
| -rw-r--r-- | lisp/textmodes/ispell.el | 83 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-cite.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-vars.el | 12 |
11 files changed, 190 insertions, 70 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d439c661401..6121ff190e8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,47 @@ | |||
| 1 | 2013-01-21 Agustín Martín Domingo <agustin.martin@hispalinux.es> | ||
| 2 | |||
| 3 | * textmodes/ispell.el (ispell-hunspell-dictionary-equivs-alist): | ||
| 4 | New variable to map standard dict names to hunspell ones. | ||
| 5 | (ispell-set-spellchecker-params): Make sure specific dict names | ||
| 6 | are used for standard dicts with hunspell. | ||
| 7 | |||
| 8 | 2013-01-21 Tassilo Horn <tsdh@gnu.org> | ||
| 9 | |||
| 10 | * textmodes/reftex-cite.el (reftex-format-citation): Add format | ||
| 11 | chars for note (%N) and url (%U). | ||
| 12 | * textmodes/reftex-vars.el (reftex-cite-format): Document them. | ||
| 13 | |||
| 14 | 2013-01-21 Juri Linkov <juri@jurta.org> | ||
| 15 | |||
| 16 | * frame.el: Bind `f10' in `esc-map' to `toggle-frame-maximized' | ||
| 17 | in addition to existing separate binding `meta f10' in `global-map'. | ||
| 18 | (Bug#13484) | ||
| 19 | |||
| 20 | 2013-01-21 Michael Albinus <michael.albinus@gmx.de> | ||
| 21 | |||
| 22 | Improve XEmacs compatibility. | ||
| 23 | |||
| 24 | * net/tramp.el (tramp-replace-environment-variables): Make it a defun. | ||
| 25 | |||
| 26 | * net/tramp-adb.el (top): Require `time-date'. | ||
| 27 | (tramp-adb-ls-output-time-less-p): Use `tramp-time-less-p'. | ||
| 28 | (tramp-adb-handle-copy-file, tramp-adb-handle-rename-file): Use | ||
| 29 | `tramp-file-name-handler'. | ||
| 30 | (tramp-adb-maybe-open-connection): Use | ||
| 31 | `tramp-compat-set-process-query-on-exit-flag'. | ||
| 32 | |||
| 33 | * net/tramp-sh.el (tramp-sh-handle-file-acl): Use | ||
| 34 | `tramp-compat-funcall'. | ||
| 35 | |||
| 36 | * net/tramp-smb.el (tramp-smb-handle-file-acl): Use `looking-at' and | ||
| 37 | `tramp-compat-funcall'. | ||
| 38 | |||
| 39 | 2013-01-21 Jürgen Hötzel <juergen@archlinux.org> | ||
| 40 | |||
| 41 | * net/tramp-adb.el (tramp-adb-handle-start-file-process): Complete | ||
| 42 | reimplementation using "adb shell command ..." instead of running | ||
| 43 | remote shell interactively. | ||
| 44 | |||
| 1 | 2013-01-20 Glenn Morris <rgm@gnu.org> | 45 | 2013-01-20 Glenn Morris <rgm@gnu.org> |
| 2 | 46 | ||
| 3 | * emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): | 47 | * emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): |
diff --git a/lisp/frame.el b/lisp/frame.el index 243f524c403..2c17b781caa 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -1707,6 +1707,7 @@ See also `toggle-frame-maximized'." | |||
| 1707 | (define-key ctl-x-5-map "o" 'other-frame) | 1707 | (define-key ctl-x-5-map "o" 'other-frame) |
| 1708 | (define-key global-map [f11] 'toggle-frame-fullscreen) | 1708 | (define-key global-map [f11] 'toggle-frame-fullscreen) |
| 1709 | (define-key global-map [(meta f10)] 'toggle-frame-maximized) | 1709 | (define-key global-map [(meta f10)] 'toggle-frame-maximized) |
| 1710 | (define-key esc-map [f10] 'toggle-frame-maximized) | ||
| 1710 | 1711 | ||
| 1711 | 1712 | ||
| 1712 | ;; Misc. | 1713 | ;; Misc. |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 1f1b46c8532..745e0ede5a8 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-01-21 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * gnus-sum.el (gnus-summary-read-group-1): Protect against not being | ||
| 4 | able to find the article, which can happen in debbugs groups, | ||
| 5 | apparently. | ||
| 6 | |||
| 1 | 2013-01-16 Glenn Morris <rgm@gnu.org> | 7 | 2013-01-16 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * smiley.el (smiley-style): Make the file loadable in batch mode. | 9 | * smiley.el (smiley-style): Make the file loadable in batch mode. |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index ea68a6a2fa5..658863f9f00 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -4058,9 +4058,10 @@ If SELECT-ARTICLES, only select those articles from GROUP." | |||
| 4058 | gnus-auto-select-first) | 4058 | gnus-auto-select-first) |
| 4059 | (progn | 4059 | (progn |
| 4060 | (let ((art (gnus-summary-article-number))) | 4060 | (let ((art (gnus-summary-article-number))) |
| 4061 | (unless (and (not gnus-plugged) | 4061 | (when (and art |
| 4062 | (or (memq art gnus-newsgroup-undownloaded) | 4062 | gnus-plugged |
| 4063 | (memq art gnus-newsgroup-downloadable))) | 4063 | (not (memq art gnus-newsgroup-undownloaded)) |
| 4064 | (not (memq art gnus-newsgroup-downloadable))) | ||
| 4064 | (gnus-summary-goto-article art)))) | 4065 | (gnus-summary-goto-article art)))) |
| 4065 | ;; Don't select any articles. | 4066 | ;; Don't select any articles. |
| 4066 | (gnus-summary-position-point) | 4067 | (gnus-summary-position-point) |
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el index ab13d4cf442..17802d39fa4 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el | |||
| @@ -33,6 +33,7 @@ | |||
| 33 | ;;; Code: | 33 | ;;; Code: |
| 34 | 34 | ||
| 35 | (require 'tramp) | 35 | (require 'tramp) |
| 36 | (require 'time-date) | ||
| 36 | 37 | ||
| 37 | (defvar dired-move-to-filename-regexp) | 38 | (defvar dired-move-to-filename-regexp) |
| 38 | 39 | ||
| @@ -465,7 +466,7 @@ Emacs dired can't find files." | |||
| 465 | (setq time-a (apply 'encode-time (parse-time-string (match-string 0 a)))) | 466 | (setq time-a (apply 'encode-time (parse-time-string (match-string 0 a)))) |
| 466 | (string-match tramp-adb-ls-date-regexp b) | 467 | (string-match tramp-adb-ls-date-regexp b) |
| 467 | (setq time-b (apply 'encode-time (parse-time-string (match-string 0 b)))) | 468 | (setq time-b (apply 'encode-time (parse-time-string (match-string 0 b)))) |
| 468 | (time-less-p time-b time-a))) | 469 | (tramp-time-less-p time-b time-a))) |
| 469 | 470 | ||
| 470 | (defun tramp-adb-ls-output-name-less-p (a b) | 471 | (defun tramp-adb-ls-output-name-less-p (a b) |
| 471 | "Sort \"ls\" output by name, ascending." | 472 | "Sort \"ls\" output by name, ascending." |
| @@ -638,7 +639,7 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." | |||
| 638 | newname (expand-file-name newname)) | 639 | newname (expand-file-name newname)) |
| 639 | 640 | ||
| 640 | (if (file-directory-p filename) | 641 | (if (file-directory-p filename) |
| 641 | (copy-directory filename newname keep-date t) | 642 | (tramp-file-name-handler 'copy-directory filename newname keep-date t) |
| 642 | (with-tramp-progress-reporter | 643 | (with-tramp-progress-reporter |
| 643 | (tramp-dissect-file-name (if (file-remote-p filename) filename newname)) | 644 | (tramp-dissect-file-name (if (file-remote-p filename) filename newname)) |
| 644 | 0 (format "Copying %s to %s" filename newname) | 645 | 0 (format "Copying %s to %s" filename newname) |
| @@ -698,7 +699,10 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." | |||
| 698 | (tramp-flush-file-property v localname) | 699 | (tramp-flush-file-property v localname) |
| 699 | ;; Short track. | 700 | ;; Short track. |
| 700 | (tramp-adb-barf-unless-okay | 701 | (tramp-adb-barf-unless-okay |
| 701 | v (format "mv %s %s" (file-remote-p filename 'localname) localname) | 702 | v (format |
| 703 | "mv %s %s" | ||
| 704 | (tramp-file-name-handler 'file-remote-p filename 'localname) | ||
| 705 | localname) | ||
| 702 | "Error renaming %s to %s" filename newname)) | 706 | "Error renaming %s to %s" filename newname)) |
| 703 | 707 | ||
| 704 | ;; Rename by copy. | 708 | ;; Rename by copy. |
| @@ -907,15 +911,11 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." | |||
| 907 | (cons program args) " ")))) | 911 | (cons program args) " ")))) |
| 908 | (tramp-process-connection-type | 912 | (tramp-process-connection-type |
| 909 | (or (null program) tramp-process-connection-type)) | 913 | (or (null program) tramp-process-connection-type)) |
| 910 | (bmp (and (buffer-live-p buffer) (buffer-modified-p buffer))) | ||
| 911 | (name1 name) | 914 | (name1 name) |
| 912 | (i 0)) | 915 | (i 0)) |
| 913 | (unwind-protect | 916 | (unwind-protect |
| 914 | (save-excursion | 917 | (save-excursion |
| 915 | (save-restriction | 918 | (save-restriction |
| 916 | (unless buffer | ||
| 917 | ;; BUFFER can be nil. We use a temporary buffer. | ||
| 918 | (setq buffer (generate-new-buffer tramp-temp-buffer-name))) | ||
| 919 | (while (get-process name1) | 919 | (while (get-process name1) |
| 920 | ;; NAME must be unique as process name. | 920 | ;; NAME must be unique as process name. |
| 921 | (setq i (1+ i) | 921 | (setq i (1+ i) |
| @@ -923,35 +923,21 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." | |||
| 923 | (setq name name1) | 923 | (setq name name1) |
| 924 | ;; Set the new process properties. | 924 | ;; Set the new process properties. |
| 925 | (tramp-set-connection-property v "process-name" name) | 925 | (tramp-set-connection-property v "process-name" name) |
| 926 | (tramp-set-connection-property v "process-buffer" buffer) | 926 | (when command |
| 927 | ;; Activate narrowing in order to save BUFFER contents. | 927 | (let* ((host (tramp-file-name-host v)) |
| 928 | ;; Clear also the modification time; otherwise we might | 928 | (devices (mapcar 'cadr (tramp-adb-parse-device-names nil))) |
| 929 | ;; be interrupted by `verify-visited-file-modtime'. | 929 | (args (if (> (length host) 0) |
| 930 | (with-current-buffer (tramp-get-connection-buffer v) | 930 | (list "-s" host "shell" command) |
| 931 | (let ((buffer-undo-list t)) | 931 | (list "shell" command))) |
| 932 | (clear-visited-file-modtime) | 932 | (p (apply 'start-process (tramp-get-connection-name v) buffer |
| 933 | (narrow-to-region (point-max) (point-max)) | 933 | (tramp-adb-program) args))) |
| 934 | (if command | 934 | ;; Set sentinel and query flag for this process. |
| 935 | ;; Send the command. | 935 | (tramp-set-connection-property p "vector" v) |
| 936 | (tramp-adb-send-command v command) | 936 | (set-process-sentinel p 'tramp-process-sentinel) |
| 937 | ;; Open the connection. | 937 | (tramp-compat-set-process-query-on-exit-flag p t) |
| 938 | (tramp-adb-maybe-open-connection v)))) | 938 | ;; Return process. |
| 939 | (let ((p (tramp-get-connection-process v))) | 939 | p)))) |
| 940 | ;; Set sentinel and query flag for this process. | 940 | (tramp-set-connection-property v "process-name" nil))))) |
| 941 | (tramp-set-connection-property p "vector" v) | ||
| 942 | (set-process-sentinel p 'tramp-process-sentinel) | ||
| 943 | (tramp-compat-set-process-query-on-exit-flag p t) | ||
| 944 | ;; Return process. | ||
| 945 | p))) | ||
| 946 | ;; Save exit. | ||
| 947 | (with-current-buffer (tramp-get-connection-buffer v) | ||
| 948 | (if (string-match tramp-temp-buffer-name (buffer-name)) | ||
| 949 | (progn | ||
| 950 | (set-process-buffer (tramp-get-connection-process v) nil) | ||
| 951 | (kill-buffer (current-buffer))) | ||
| 952 | (set-buffer-modified-p bmp))) | ||
| 953 | (tramp-set-connection-property v "process-name" nil) | ||
| 954 | (tramp-set-connection-property v "process-buffer" nil))))) | ||
| 955 | 941 | ||
| 956 | ;; Helper functions. | 942 | ;; Helper functions. |
| 957 | 943 | ||
| @@ -1089,7 +1075,7 @@ connection if a previous connection has died for some reason." | |||
| 1089 | (tramp-adb-wait-for-output p) | 1075 | (tramp-adb-wait-for-output p) |
| 1090 | (unless (eq 'run (process-status p)) | 1076 | (unless (eq 'run (process-status p)) |
| 1091 | (tramp-error vec 'file-error "Terminated!")) | 1077 | (tramp-error vec 'file-error "Terminated!")) |
| 1092 | (set-process-query-on-exit-flag p nil) | 1078 | (tramp-compat-set-process-query-on-exit-flag p nil) |
| 1093 | 1079 | ||
| 1094 | ;; Check whether the properties have been changed. If | 1080 | ;; Check whether the properties have been changed. If |
| 1095 | ;; yes, this is a strong indication that we must expire all | 1081 | ;; yes, this is a strong indication that we must expire all |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index d83599a6662..743c8dbe0f9 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -1555,7 +1555,8 @@ be non-negative integers." | |||
| 1555 | (goto-char (point-max)) | 1555 | (goto-char (point-max)) |
| 1556 | (delete-blank-lines) | 1556 | (delete-blank-lines) |
| 1557 | (when (> (point-max) (point-min)) | 1557 | (when (> (point-max) (point-min)) |
| 1558 | (substring-no-properties (buffer-string)))))))) | 1558 | (tramp-compat-funcall |
| 1559 | 'substring-no-properties (buffer-string)))))))) | ||
| 1559 | 1560 | ||
| 1560 | (defun tramp-sh-handle-set-file-acl (filename acl-string) | 1561 | (defun tramp-sh-handle-set-file-acl (filename acl-string) |
| 1561 | "Like `set-file-acl' for Tramp files." | 1562 | "Like `set-file-acl' for Tramp files." |
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el index 0f143100906..65c52ae4f3c 100644 --- a/lisp/net/tramp-smb.el +++ b/lisp/net/tramp-smb.el | |||
| @@ -649,13 +649,14 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." | |||
| 649 | v (format "getfacl \"%s\"" (tramp-smb-get-localname v))) | 649 | v (format "getfacl \"%s\"" (tramp-smb-get-localname v))) |
| 650 | (with-current-buffer (tramp-get-connection-buffer v) | 650 | (with-current-buffer (tramp-get-connection-buffer v) |
| 651 | (goto-char (point-min)) | 651 | (goto-char (point-min)) |
| 652 | (while (looking-at-p "^#") | 652 | (while (looking-at "^#") |
| 653 | (forward-line) | 653 | (forward-line) |
| 654 | (delete-region (point-min) (point))) | 654 | (delete-region (point-min) (point))) |
| 655 | (goto-char (point-max)) | 655 | (goto-char (point-max)) |
| 656 | (delete-blank-lines) | 656 | (delete-blank-lines) |
| 657 | (when (> (point-max) (point-min)) | 657 | (when (> (point-max) (point-min)) |
| 658 | (substring-no-properties (buffer-string)))))))) | 658 | (tramp-compat-funcall |
| 659 | 'substring-no-properties (buffer-string)))))))) | ||
| 659 | 660 | ||
| 660 | (defun tramp-smb-handle-file-attributes (filename &optional id-format) | 661 | (defun tramp-smb-handle-file-attributes (filename &optional id-format) |
| 661 | "Like `file-attributes' for Tramp files." | 662 | "Like `file-attributes' for Tramp files." |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 2c4aac0ac8a..69e82de3f7f 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -1779,28 +1779,23 @@ value of `default-file-modes', without execute permissions." | |||
| 1779 | (or (file-modes filename) | 1779 | (or (file-modes filename) |
| 1780 | (logand (default-file-modes) (tramp-compat-octal-to-decimal "0666")))) | 1780 | (logand (default-file-modes) (tramp-compat-octal-to-decimal "0666")))) |
| 1781 | 1781 | ||
| 1782 | (defalias 'tramp-replace-environment-variables | 1782 | (defun tramp-replace-environment-variables (filename) |
| 1783 | (if (ignore-errors | 1783 | "Replace environment variables in FILENAME. |
| 1784 | (equal "${ tramp?}" | ||
| 1785 | (tramp-compat-funcall | ||
| 1786 | 'substitute-env-vars "${ tramp?}" 'only-defined))) | ||
| 1787 | (lambda (filename) | ||
| 1788 | "Like `substitute-env-vars' with `only-defined' non-nil." | ||
| 1789 | (tramp-compat-funcall 'substitute-env-vars filename 'only-defined)) | ||
| 1790 | (lambda (filename) | ||
| 1791 | "Replace environment variables in FILENAME. | ||
| 1792 | Return the string with the replaced variables." | 1784 | Return the string with the replaced variables." |
| 1793 | (save-match-data | 1785 | (or (ignore-errors |
| 1794 | (let ((idx (string-match "$\\(\\w+\\)" filename))) | 1786 | (tramp-compat-funcall 'substitute-env-vars filename 'only-defined)) |
| 1795 | ;; `$' is coded as `$$'. | 1787 | ;; We need an own implementation. |
| 1796 | (when (and idx | 1788 | (save-match-data |
| 1797 | (or (zerop idx) (not (eq ?$ (aref filename (1- idx))))) | 1789 | (let ((idx (string-match "$\\(\\w+\\)" filename))) |
| 1798 | (getenv (match-string 1 filename))) | 1790 | ;; `$' is coded as `$$'. |
| 1799 | (setq filename | 1791 | (when (and idx |
| 1800 | (replace-match | 1792 | (or (zerop idx) (not (eq ?$ (aref filename (1- idx))))) |
| 1801 | (substitute-in-file-name (match-string 0 filename)) | 1793 | (getenv (match-string 1 filename))) |
| 1802 | t nil filename))) | 1794 | (setq filename |
| 1803 | filename))))) | 1795 | (replace-match |
| 1796 | (substitute-in-file-name (match-string 0 filename)) | ||
| 1797 | t nil filename))) | ||
| 1798 | filename)))) | ||
| 1804 | 1799 | ||
| 1805 | ;; In XEmacs, electricity is implemented via a key map for ?/ and ?~, | 1800 | ;; In XEmacs, electricity is implemented via a key map for ?/ and ?~, |
| 1806 | ;; which calls corresponding functions (see minibuf.el). | 1801 | ;; which calls corresponding functions (see minibuf.el). |
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 52e97b8248d..dbcf3910db8 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -773,6 +773,41 @@ here just for backwards compatibility.") | |||
| 773 | (make-obsolete-variable 'ispell-aspell-supports-utf8 | 773 | (make-obsolete-variable 'ispell-aspell-supports-utf8 |
| 774 | 'ispell-encoding8-command "23.1") | 774 | 'ispell-encoding8-command "23.1") |
| 775 | 775 | ||
| 776 | (defvar ispell-hunspell-dictionary-equivs-alist | ||
| 777 | '(("american" "en_US") | ||
| 778 | ("brasileiro" "pt_BR") | ||
| 779 | ("british" "en_GB") | ||
| 780 | ("castellano" "es_ES") | ||
| 781 | ("castellano8" "es_ES") | ||
| 782 | ("czech" "cs_CZ") | ||
| 783 | ("dansk" "da_DK") | ||
| 784 | ("deutsch" "de_DE") | ||
| 785 | ("deutsch8" "de_DE") | ||
| 786 | ("english" "en_US") | ||
| 787 | ("esperanto" "eo") | ||
| 788 | ("esperanto-tex" "eo") | ||
| 789 | ("finnish" "fi_FI") | ||
| 790 | ("francais7" "fr_FR") | ||
| 791 | ("francais" "fr_FR") | ||
| 792 | ("francais-tex" "fr_FR") | ||
| 793 | ("german" "de_DE") | ||
| 794 | ("german8" "de_DE") | ||
| 795 | ("italiano" "it_IT") | ||
| 796 | ("nederlands" "nl_NL") | ||
| 797 | ("nederlands8" "nl_NL") | ||
| 798 | ("norsk" "nn_NO") | ||
| 799 | ("norsk7-tex" "nn_NO") | ||
| 800 | ("polish" "pl_PL") | ||
| 801 | ("portugues" "pt_PT") | ||
| 802 | ("russian" "ru_RU") | ||
| 803 | ("russianw" "ru_RU") | ||
| 804 | ("slovak" "sk_SK") | ||
| 805 | ("slovenian" "sl_SI") | ||
| 806 | ("svenska" "sv_SE") | ||
| 807 | ("hebrew" "he_IL")) | ||
| 808 | "Alist with matching hunspell dict names for standard dict names in | ||
| 809 | `ispell-dictionary-base-alist'.") | ||
| 810 | |||
| 776 | (defvar ispell-emacs-alpha-regexp | 811 | (defvar ispell-emacs-alpha-regexp |
| 777 | (if (string-match "^[[:alpha:]]+$" "abcde") | 812 | (if (string-match "^[[:alpha:]]+$" "abcde") |
| 778 | "[[:alpha:]]" | 813 | "[[:alpha:]]" |
| @@ -1134,9 +1169,57 @@ aspell is used along with Emacs).") | |||
| 1134 | ispell-encoding8-command) | 1169 | ispell-encoding8-command) |
| 1135 | ispell-aspell-dictionary-alist | 1170 | ispell-aspell-dictionary-alist |
| 1136 | nil)) | 1171 | nil)) |
| 1172 | (ispell-dictionary-base-alist ispell-dictionary-base-alist) | ||
| 1137 | ispell-base-dicts-override-alist ; Override only base-dicts-alist | 1173 | ispell-base-dicts-override-alist ; Override only base-dicts-alist |
| 1138 | all-dicts-alist) | 1174 | all-dicts-alist) |
| 1139 | 1175 | ||
| 1176 | ;; While ispell and aspell (through aliases) use the traditional | ||
| 1177 | ;; dict naming originally expected by ispell.el, hunspell | ||
| 1178 | ;; uses locale based names with no alias. We need to map | ||
| 1179 | ;; standard names to locale based names to make default dict | ||
| 1180 | ;; definitions available for hunspell. | ||
| 1181 | (if ispell-really-hunspell | ||
| 1182 | (let (tmp-dicts-alist) | ||
| 1183 | (dolist (adict ispell-dictionary-base-alist) | ||
| 1184 | (let* ((dict-name (nth 0 adict)) | ||
| 1185 | (dict-equiv | ||
| 1186 | (cadr (assoc dict-name | ||
| 1187 | ispell-hunspell-dictionary-equivs-alist))) | ||
| 1188 | (ispell-args (nth 5 adict)) | ||
| 1189 | (ispell-args-has-d (member "-d" ispell-args)) | ||
| 1190 | skip-dict) | ||
| 1191 | ;; Remove "-d" option from `ispell-args' if present | ||
| 1192 | (if ispell-args-has-d | ||
| 1193 | (let ((ispell-args-after-d | ||
| 1194 | (cdr (cdr ispell-args-has-d))) | ||
| 1195 | (ispell-args-before-d | ||
| 1196 | (butlast ispell-args (length ispell-args-has-d)))) | ||
| 1197 | (setq ispell-args | ||
| 1198 | (nconc ispell-args-before-d | ||
| 1199 | ispell-args-after-d)))) | ||
| 1200 | ;; Unless default dict, re-add "-d" option with the mapped value | ||
| 1201 | (if dict-name | ||
| 1202 | (if dict-equiv | ||
| 1203 | (nconc ispell-args (list "-d" dict-equiv)) | ||
| 1204 | (message | ||
| 1205 | "ispell-set-spellchecker-params: Missing hunspell equiv for \"%s\". Skipping." | ||
| 1206 | dict-name) | ||
| 1207 | (setq skip-dict t))) | ||
| 1208 | |||
| 1209 | (unless skip-dict | ||
| 1210 | (add-to-list 'tmp-dicts-alist | ||
| 1211 | (list | ||
| 1212 | dict-name ; dict name | ||
| 1213 | (nth 1 adict) ; casechars | ||
| 1214 | (nth 2 adict) ; not-casechars | ||
| 1215 | (nth 3 adict) ; otherchars | ||
| 1216 | (nth 4 adict) ; many-otherchars-p | ||
| 1217 | ispell-args ; ispell-args | ||
| 1218 | (nth 6 adict) ; extended-character-mode | ||
| 1219 | (nth 7 adict) ; dict encoding | ||
| 1220 | )))) | ||
| 1221 | (setq ispell-dictionary-base-alist tmp-dicts-alist)))) | ||
| 1222 | |||
| 1140 | (run-hooks 'ispell-initialize-spellchecker-hook) | 1223 | (run-hooks 'ispell-initialize-spellchecker-hook) |
| 1141 | 1224 | ||
| 1142 | ;; Add dicts to ``ispell-dictionary-alist'' unless already present. | 1225 | ;; Add dicts to ``ispell-dictionary-alist'' unless already present. |
diff --git a/lisp/textmodes/reftex-cite.el b/lisp/textmodes/reftex-cite.el index 3b294e62b01..079101b56ee 100644 --- a/lisp/textmodes/reftex-cite.el +++ b/lisp/textmodes/reftex-cite.el | |||
| @@ -1043,6 +1043,7 @@ While entering the regexp, completion on knows citation keys is possible. | |||
| 1043 | ((= l ?k) (reftex-get-bib-field "key" entry)) | 1043 | ((= l ?k) (reftex-get-bib-field "key" entry)) |
| 1044 | ((= l ?m) (reftex-get-bib-field "month" entry)) | 1044 | ((= l ?m) (reftex-get-bib-field "month" entry)) |
| 1045 | ((= l ?n) (reftex-get-bib-field "number" entry)) | 1045 | ((= l ?n) (reftex-get-bib-field "number" entry)) |
| 1046 | ((= l ?N) (reftex-get-bib-field "note" entry)) | ||
| 1046 | ((= l ?o) (reftex-get-bib-field "organization" entry)) | 1047 | ((= l ?o) (reftex-get-bib-field "organization" entry)) |
| 1047 | ((= l ?p) (reftex-get-bib-field "pages" entry)) | 1048 | ((= l ?p) (reftex-get-bib-field "pages" entry)) |
| 1048 | ((= l ?P) (car (split-string | 1049 | ((= l ?P) (car (split-string |
| @@ -1050,6 +1051,7 @@ While entering the regexp, completion on knows citation keys is possible. | |||
| 1050 | "[- .]+"))) | 1051 | "[- .]+"))) |
| 1051 | ((= l ?s) (reftex-get-bib-field "school" entry)) | 1052 | ((= l ?s) (reftex-get-bib-field "school" entry)) |
| 1052 | ((= l ?u) (reftex-get-bib-field "publisher" entry)) | 1053 | ((= l ?u) (reftex-get-bib-field "publisher" entry)) |
| 1054 | ((= l ?U) (reftex-get-bib-field "url" entry)) | ||
| 1053 | ((= l ?r) (reftex-get-bib-field "address" entry)) | 1055 | ((= l ?r) (reftex-get-bib-field "address" entry)) |
| 1054 | ((= l ?t) (reftex-get-bib-field "title" entry)) | 1056 | ((= l ?t) (reftex-get-bib-field "title" entry)) |
| 1055 | ((= l ?T) (reftex-abbreviate-title | 1057 | ((= l ?T) (reftex-abbreviate-title |
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el index db08ca3a514..2a5c9c55866 100644 --- a/lisp/textmodes/reftex-vars.el +++ b/lisp/textmodes/reftex-vars.el | |||
| @@ -1125,12 +1125,12 @@ In the format, the following percent escapes will be expanded. | |||
| 1125 | %e Works like %a, but on list of editor names. (%2e and %E work a well) | 1125 | %e Works like %a, but on list of editor names. (%2e and %E work a well) |
| 1126 | 1126 | ||
| 1127 | It is also possible to access all other BibTeX database fields: | 1127 | It is also possible to access all other BibTeX database fields: |
| 1128 | %b booktitle %c chapter %d edition %h howpublished | 1128 | %b booktitle %c chapter %d edition %h howpublished |
| 1129 | %i institution %j journal %k key %m month | 1129 | %i institution %j journal %k key %m month |
| 1130 | %n number %o organization %p pages %P first page | 1130 | %n number %N note %o organization %p pages |
| 1131 | %r address %s school %u publisher %t title | 1131 | %P first page %r address %s school %u publisher |
| 1132 | %v volume %y year | 1132 | %U url %t title %v volume %y year |
| 1133 | %B booktitle, abbreviated %T title, abbreviated | 1133 | %B booktitle, abbreviated %T title, abbreviated |
| 1134 | 1134 | ||
| 1135 | Usually, only %l is needed. The other stuff is mainly for the echo area | 1135 | Usually, only %l is needed. The other stuff is mainly for the echo area |
| 1136 | display, and for (setq reftex-comment-citations t). | 1136 | display, and for (setq reftex-comment-citations t). |