diff options
| author | Paul Eggert | 2015-03-03 14:52:04 -0800 |
|---|---|---|
| committer | Paul Eggert | 2015-03-03 14:52:04 -0800 |
| commit | 98284ef51c67fa69796946466337d426ab81f9ee (patch) | |
| tree | e43f8d3ab77f67a2fca1dd016037693674b91c26 | |
| parent | 518eab2f7db71929e4877daa5ebd06b1416e69e6 (diff) | |
| parent | c4ade119ccd1904795b2e8d76cd93aedc86d1b09 (diff) | |
| download | emacs-98284ef51c67fa69796946466337d426ab81f9ee.tar.gz emacs-98284ef51c67fa69796946466337d426ab81f9ee.zip | |
Merge from origin/emacs-24
c4ade11 textmodes/ispell.el: Look for aspell .dat files also under dict-dir
e28ec9a ispell.el: Extend to aspell current hunspell handling of aliases
Conflicts:
lisp/ChangeLog
| -rw-r--r-- | admin/ChangeLog | 1 | ||||
| -rw-r--r-- | doc/lispref/ChangeLog | 1 | ||||
| -rw-r--r-- | doc/misc/ChangeLog | 1 | ||||
| -rw-r--r-- | etc/ChangeLog | 3 | ||||
| -rw-r--r-- | etc/NEWS | 42 | ||||
| -rw-r--r-- | etc/NEWS.24 | 36 | ||||
| -rw-r--r-- | lisp/ChangeLog | 23 | ||||
| -rw-r--r-- | lisp/erc/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/textmodes/ispell.el | 67 | ||||
| -rw-r--r-- | src/ChangeLog | 4 |
10 files changed, 87 insertions, 92 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog index bcc43c52af2..092bfa9ad59 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | * MAINTAINERS: Add myself to section 2 | 3 | * MAINTAINERS: Add myself to section 2 |
| 4 | 4 | ||
| 5 | 2015-03-03 Glenn Morris <rgm@gnu.org> | 5 | 2015-03-03 Glenn Morris <rgm@gnu.org> |
| 6 | 2015-03-03 Glenn Morris <rgm@gnu.org> | ||
| 7 | 6 | ||
| 8 | * admin.el (manual-meta-string): Use bug-gnu-emacs@gnu email address | 7 | * admin.el (manual-meta-string): Use bug-gnu-emacs@gnu email address |
| 9 | rather than webmasters@gnu. | 8 | rather than webmasters@gnu. |
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 50cc9cb43b3..42bff7c865a 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | * processes.texi (Synchronous Processes): Update documentation of | 3 | * processes.texi (Synchronous Processes): Update documentation of |
| 4 | call-process-shell-command and process-file-shell-command. | 4 | call-process-shell-command and process-file-shell-command. |
| 5 | 5 | ||
| 6 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | ||
| 7 | 2015-03-03 Daniel Colascione <dancol@dancol.org> | 6 | 2015-03-03 Daniel Colascione <dancol@dancol.org> |
| 8 | 7 | ||
| 9 | * control.texi (Generators): Correct missing word. Clarify which | 8 | * control.texi (Generators): Correct missing word. Clarify which |
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index c00cb2f722a..c721b250112 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | for erc-format-nick-function and erc-rename-buffers options. | 4 | for erc-format-nick-function and erc-rename-buffers options. |
| 5 | (Connecting): fix typo | 5 | (Connecting): fix typo |
| 6 | 6 | ||
| 7 | 2015-03-03 Michael Albinus <michael.albinus@gmx.de> | ||
| 8 | 2015-03-02 Daniel Colascione <dancol@dancol.org> | 7 | 2015-03-02 Daniel Colascione <dancol@dancol.org> |
| 9 | 8 | ||
| 10 | * cl.texi (Iteration Clauses): Mention iterator support. | 9 | * cl.texi (Iteration Clauses): Mention iterator support. |
diff --git a/etc/ChangeLog b/etc/ChangeLog index 9c11e18fb69..cd5c54037c8 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,8 +1,7 @@ | |||
| 1 | 2015-03-03 Kelvin White <kwhite@gnu.org> | 1 | 2015-03-03 Kelvin White <kwhite@gnu.org> |
| 2 | 2 | ||
| 3 | * NEWS: Add section to include ERC changes | 3 | * NEWS.24: Add section to include ERC changes. |
| 4 | 4 | ||
| 5 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | ||
| 6 | 2015-03-02 Daniel Colascione <dancol@dancol.org> | 5 | 2015-03-02 Daniel Colascione <dancol@dancol.org> |
| 7 | 6 | ||
| 8 | * NEWS: Mention finalizers. | 7 | * NEWS: Mention finalizers. |
| @@ -14,24 +14,21 @@ and NEWS.1-17 for changes in older Emacs versions. | |||
| 14 | You can narrow news to a specific version by calling `view-emacs-news' | 14 | You can narrow news to a specific version by calling `view-emacs-news' |
| 15 | with a prefix argument or by typing C-u C-h C-n. | 15 | with a prefix argument or by typing C-u C-h C-n. |
| 16 | 16 | ||
| 17 | Temporary note: | ||
| 18 | +++ indicates that all necessary documentation updates are complete. | ||
| 19 | (This means all relevant manuals in doc/ AND lisp doc-strings.) | ||
| 20 | --- means no change in the manuals is needed. | ||
| 21 | When you add a new item, use the appropriate mark if you are sure it applies, | ||
| 22 | otherwise leave it unmarked. | ||
| 23 | |||
| 17 | 24 | ||
| 18 | * Installation Changes in Emacs 25.1 | 25 | * Installation Changes in Emacs 25.1 |
| 19 | 26 | ||
| 20 | +++ | 27 | +++ |
| 21 | |||
| 22 | ** Building Emacs now requires C99 or later. | 28 | ** Building Emacs now requires C99 or later. |
| 23 | 29 | ||
| 24 | ** The default value of `history-length' has increased to 100. | ||
| 25 | |||
| 26 | ** The variable `redisplay-dont-pause' is obsolete. | ||
| 27 | |||
| 28 | ** Building Emacs now requires GNU make, version 3.81 or later. | 30 | ** Building Emacs now requires GNU make, version 3.81 or later. |
| 29 | 31 | ||
| 30 | ** `call-process-shell-command' and `process-file-shell-command' no longer | ||
| 31 | take "&rest args". | ||
| 32 | |||
| 33 | ** The option `browse-url-firefox-startup-arguments' no longer has an effect. | ||
| 34 | |||
| 35 | ** By default, Emacs no longer works on IRIX. We expect that Emacs | 32 | ** By default, Emacs no longer works on IRIX. We expect that Emacs |
| 36 | users are not affected by this, as SGI stopped supporting IRIX in | 33 | users are not affected by this, as SGI stopped supporting IRIX in |
| 37 | December 2013. If you are affected, please send a bug report. You | 34 | December 2013. If you are affected, please send a bug report. You |
| @@ -39,41 +36,18 @@ should be able to work around the problem either by porting the Emacs | |||
| 39 | undumping code to GCC under IRIX, or by configuring --with-wide-int, | 36 | undumping code to GCC under IRIX, or by configuring --with-wide-int, |
| 40 | or by sticking with Emacs 24.4. | 37 | or by sticking with Emacs 24.4. |
| 41 | 38 | ||
| 42 | ** ERC | ||
| 43 | |||
| 44 | ** 'configure' now prefers gnustep-config when configuring GNUstep. | 39 | ** 'configure' now prefers gnustep-config when configuring GNUstep. |
| 45 | If gnustep-config is not available, the old heuristics are used. | 40 | If gnustep-config is not available, the old heuristics are used. |
| 46 | 41 | ||
| 47 | +++ | ||
| 48 | *** New option `erc-rename-buffers'. | ||
| 49 | |||
| 50 | *** New faces `erc-my-nick-prefix-face' and `erc-nick-prefix-face'. | ||
| 51 | |||
| 52 | *** `erc-format-@nick' displays all user modes instead of only op and voice. | ||
| 53 | |||
| 54 | *** The display of irc commands in the current buffer has been disabled. | ||
| 55 | |||
| 56 | *** `erc-version' now follows the Emacs version. | ||
| 57 | |||
| 58 | ** Obsolete packages | ||
| 59 | |||
| 60 | *** cc-compat.el | ||
| 61 | |||
| 62 | --- | 42 | --- |
| 63 | ** The configure option `--with-pkg-config-prog' has been removed. | 43 | ** The configure option `--with-pkg-config-prog' has been removed. |
| 64 | Use './configure PKG_CONFIG=/full/name/of/pkg-config' if you need to. | 44 | Use './configure PKG_CONFIG=/full/name/of/pkg-config' if you need to. |
| 65 | 45 | ||
| 66 | *** crisp.el (moved to elpa.gnu.org) | ||
| 67 | |||
| 68 | ** The configure option '--enable-silent-rules' is now the default, | 46 | ** The configure option '--enable-silent-rules' is now the default, |
| 69 | and silent rules are now quieter. To get the old behavior where | 47 | and silent rules are now quieter. To get the old behavior where |
| 70 | 'make' chatters a lot, configure with '--disable-silent-rules' or | 48 | 'make' chatters a lot, configure with '--disable-silent-rules' or |
| 71 | build with 'make V=1'. | 49 | build with 'make V=1'. |
| 72 | 50 | ||
| 73 | *** tpu-edt.el, ws-mode.el | ||
| 74 | These emulations of old editors are believed to be no longer relevant | ||
| 75 | - contact emacs-devel@gnu.org if you disagree. | ||
| 76 | |||
| 77 | --- | 51 | --- |
| 78 | ** The configure option '--with-gameuser' now allows to specify a | 52 | ** The configure option '--with-gameuser' now allows to specify a |
| 79 | group instead of a user if its argument is prefixed by ':' (a colon). | 53 | group instead of a user if its argument is prefixed by ':' (a colon). |
| @@ -86,8 +60,6 @@ be installed setgid. The option now defaults to the 'games' group. | |||
| 86 | It has no particular connection to Emacs and has not changed in years, | 60 | It has no particular connection to Emacs and has not changed in years, |
| 87 | so if you want to use it, you can always take a copy from an older Emacs. | 61 | so if you want to use it, you can always take a copy from an older Emacs. |
| 88 | 62 | ||
| 89 | *** vi.el, vip.el (try M-x viper instead) | ||
| 90 | |||
| 91 | 63 | ||
| 92 | * Startup Changes in Emacs 25.1 | 64 | * Startup Changes in Emacs 25.1 |
| 93 | 65 | ||
diff --git a/etc/NEWS.24 b/etc/NEWS.24 index 969713a3393..7d9e1f0d83f 100644 --- a/etc/NEWS.24 +++ b/etc/NEWS.24 | |||
| @@ -14,41 +14,45 @@ and NEWS.1-17 for changes in older Emacs versions. | |||
| 14 | You can narrow news to a specific version by calling `view-emacs-news' | 14 | You can narrow news to a specific version by calling `view-emacs-news' |
| 15 | with a prefix argument or by typing C-u C-h C-n. | 15 | with a prefix argument or by typing C-u C-h C-n. |
| 16 | 16 | ||
| 17 | Temporary note: | ||
| 18 | +++ indicates that all necessary documentation updates are complete. | ||
| 19 | (This means all relevant manuals in doc/ AND lisp doc-strings.) | ||
| 20 | --- means no change in the manuals is needed. | ||
| 21 | When you add a new item, use the appropriate mark if you are sure it applies, | ||
| 22 | otherwise leave it unmarked. | ||
| 23 | |||
| 24 | 17 | ||
| 25 | * Changes in Emacs 24.5 | 18 | * Changes in Emacs 24.5 |
| 26 | 19 | ||
| 27 | --- | 20 | ** This is mainly a bug-fix release, but there are some other changes. |
| 21 | |||
| 28 | ** The default value of `history-length' has increased to 100. | 22 | ** The default value of `history-length' has increased to 100. |
| 29 | 23 | ||
| 30 | +++ | 24 | ** The variable `redisplay-dont-pause' is obsolete. |
| 31 | ** `redisplay-dont-pause' is declared as obsolete. | ||
| 32 | 25 | ||
| 33 | 26 | ||
| 34 | * Changes in Specialized Modes and Packages in Emacs 24.5 | 27 | * Changes in Specialized Modes and Packages in Emacs 24.5 |
| 35 | 28 | ||
| 36 | ** `call-process-shell-command' and `process-file-shell-command' | 29 | ** `call-process-shell-command' and `process-file-shell-command' no longer |
| 37 | don't take "&rest args" any more. | 30 | take "&rest args". |
| 31 | |||
| 32 | ** The option `browse-url-firefox-startup-arguments' no longer has an effect. | ||
| 33 | |||
| 34 | ** ERC | ||
| 35 | |||
| 36 | *** New option `erc-rename-buffers'. | ||
| 37 | |||
| 38 | *** New faces `erc-my-nick-prefix-face' and `erc-nick-prefix-face'. | ||
| 39 | |||
| 40 | *** `erc-format-@nick' displays all user modes instead of only op and voice. | ||
| 41 | |||
| 42 | *** The display of irc commands in the current buffer has been disabled. | ||
| 43 | |||
| 44 | *** `erc-version' now follows the Emacs version. | ||
| 38 | 45 | ||
| 39 | ** Obsolete packages | 46 | ** Obsolete packages |
| 40 | 47 | ||
| 41 | *** cc-compat.el | 48 | *** cc-compat.el |
| 42 | 49 | ||
| 43 | --- | 50 | *** crisp.el (moved to elpa.gnu.org) |
| 44 | *** crisp.el - moved to elpa.gnu.org. | ||
| 45 | 51 | ||
| 46 | --- | ||
| 47 | *** tpu-edt.el, ws-mode.el | 52 | *** tpu-edt.el, ws-mode.el |
| 48 | These emulations of old editors are believed to be no longer relevant | 53 | These emulations of old editors are believed to be no longer relevant |
| 49 | - contact emacs-devel@gnu.org if you disagree. | 54 | - contact emacs-devel@gnu.org if you disagree. |
| 50 | 55 | ||
| 51 | --- | ||
| 52 | *** vi.el, vip.el (try M-x viper instead) | 56 | *** vi.el, vip.el (try M-x viper instead) |
| 53 | 57 | ||
| 54 | 58 | ||
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ad4a05f9129..60e2b50e5c4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,21 @@ | |||
| 1 | 2015-03-03 AgustÃn MartÃn Domingo <agustin6martin@gmail.com> | ||
| 2 | |||
| 3 | * textmodes/ispell.el (ispell-aspell-find-dictionary): Make sure | ||
| 4 | .dat files for aspell dicts are also searched for in location | ||
| 5 | described by `ispell-aspell-dict-dir', matching aspell's dict-dir | ||
| 6 | variable. | ||
| 7 | |||
| 8 | 2015-03-03 AgustÃn MartÃn Domingo <agustin6martin@gmail.com> | ||
| 9 | |||
| 10 | * textmodes/ispell.el (ispell-dicts-name2locale-equivs-alist) | ||
| 11 | (ispell-hunspell-fill-dictionary-entry) | ||
| 12 | (ispell-find-hunspell-dictionaries) | ||
| 13 | (ispell-set-spellchecker-params): New generic name for | ||
| 14 | `ispell-hunspell-dictionary-equivs-alist'. | ||
| 15 | (ispell-aspell-add-aliases): Also use | ||
| 16 | `ispell-dicts-name2locale-equivs-alist' to get aspell aliases for | ||
| 17 | standard dict names. | ||
| 18 | |||
| 1 | 2015-03-03 Glenn Morris <rgm@gnu.org> | 19 | 2015-03-03 Glenn Morris <rgm@gnu.org> |
| 2 | 20 | ||
| 3 | * net/browse-url.el (browse-url-firefox-startup-arguments): | 21 | * net/browse-url.el (browse-url-firefox-startup-arguments): |
| @@ -26,7 +44,6 @@ | |||
| 26 | with PAGER=cat. (Bug#19870) | 44 | with PAGER=cat. (Bug#19870) |
| 27 | 45 | ||
| 28 | 2015-03-03 Glenn Morris <rgm@gnu.org> | 46 | 2015-03-03 Glenn Morris <rgm@gnu.org> |
| 29 | 2015-03-03 Glenn Morris <rgm@gnu.org> | ||
| 30 | 47 | ||
| 31 | * textmodes/flyspell.el (flyspell-duplicate-distance): | 48 | * textmodes/flyspell.el (flyspell-duplicate-distance): |
| 32 | Bump :version. | 49 | Bump :version. |
| @@ -48,7 +65,6 @@ | |||
| 48 | Search as full word with defined casechars, not as substring. | 65 | Search as full word with defined casechars, not as substring. |
| 49 | 66 | ||
| 50 | 2015-03-03 Juri Linkov <juri@linkov.net> | 67 | 2015-03-03 Juri Linkov <juri@linkov.net> |
| 51 | 2015-03-03 Juri Linkov <juri@linkov.net> | ||
| 52 | 68 | ||
| 53 | Better support for the case of typing RET on the prompt in comint. | 69 | Better support for the case of typing RET on the prompt in comint. |
| 54 | * comint.el (comint-get-old-input-default): Go to the field end | 70 | * comint.el (comint-get-old-input-default): Go to the field end |
| @@ -72,7 +88,6 @@ | |||
| 72 | :end-of-capability setting. | 88 | :end-of-capability setting. |
| 73 | 89 | ||
| 74 | 2015-03-03 Juri Linkov <juri@linkov.net> | 90 | 2015-03-03 Juri Linkov <juri@linkov.net> |
| 75 | 2015-03-03 Juri Linkov <juri@linkov.net> | ||
| 76 | 91 | ||
| 77 | Revert the previous change of comint-line-beginning-position callers, | 92 | Revert the previous change of comint-line-beginning-position callers, |
| 78 | and modify comint-line-beginning-position instead. | 93 | and modify comint-line-beginning-position instead. |
| @@ -100,7 +115,6 @@ | |||
| 100 | (Bug#19763) | 115 | (Bug#19763) |
| 101 | 116 | ||
| 102 | 2015-03-03 Nicolas Petton <nicolas@petton.fr> | 117 | 2015-03-03 Nicolas Petton <nicolas@petton.fr> |
| 103 | 2015-03-03 Nicolas Petton <nicolas@petton.fr> | ||
| 104 | 118 | ||
| 105 | * emacs-lisp/authors.el (authors-ignored-files) | 119 | * emacs-lisp/authors.el (authors-ignored-files) |
| 106 | (authors-renamed-files-alist): Additions. | 120 | (authors-renamed-files-alist): Additions. |
| @@ -121,7 +135,6 @@ | |||
| 121 | (authors-valid-file-names, authors-renamed-files-alist): Additions. | 135 | (authors-valid-file-names, authors-renamed-files-alist): Additions. |
| 122 | 136 | ||
| 123 | 2015-03-03 Alan Mackenzie <acm@muc.de> | 137 | 2015-03-03 Alan Mackenzie <acm@muc.de> |
| 124 | 2015-03-03 Alan Mackenzie <acm@muc.de> | ||
| 125 | 138 | ||
| 126 | CC Mode: Stop Font Lock forcing fontification from BOL. Fixes | 139 | CC Mode: Stop Font Lock forcing fontification from BOL. Fixes |
| 127 | debbugs#19669. | 140 | debbugs#19669. |
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog index 22ebae4576c..4f5fced1bd5 100644 --- a/lisp/erc/ChangeLog +++ b/lisp/erc/ChangeLog | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | package.el compatibility | 4 | package.el compatibility |
| 5 | 5 | ||
| 6 | 2015-03-03 Glenn Morris <rgm@gnu.org> | 6 | 2015-03-03 Glenn Morris <rgm@gnu.org> |
| 7 | 2015-03-03 Glenn Morris <rgm@gnu.org> | ||
| 8 | 7 | ||
| 9 | * erc.el (erc-rename-buffers): Doc fix. Add :version. | 8 | * erc.el (erc-rename-buffers): Doc fix. Add :version. |
| 10 | 9 | ||
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 82a09a0f89a..498def0b966 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -775,7 +775,7 @@ here just for backwards compatibility.") | |||
| 775 | (make-obsolete-variable 'ispell-aspell-supports-utf8 | 775 | (make-obsolete-variable 'ispell-aspell-supports-utf8 |
| 776 | 'ispell-encoding8-command "23.1") | 776 | 'ispell-encoding8-command "23.1") |
| 777 | 777 | ||
| 778 | (defvar ispell-hunspell-dictionary-equivs-alist | 778 | (defvar ispell-dicts-name2locale-equivs-alist |
| 779 | '(("american" "en_US") | 779 | '(("american" "en_US") |
| 780 | ("brasileiro" "pt_BR") | 780 | ("brasileiro" "pt_BR") |
| 781 | ("british" "en_GB") | 781 | ("british" "en_GB") |
| @@ -807,7 +807,7 @@ here just for backwards compatibility.") | |||
| 807 | ("slovenian" "sl_SI") | 807 | ("slovenian" "sl_SI") |
| 808 | ("svenska" "sv_SE") | 808 | ("svenska" "sv_SE") |
| 809 | ("hebrew" "he_IL")) | 809 | ("hebrew" "he_IL")) |
| 810 | "Alist with matching hunspell dict names for standard dict names in | 810 | "Alist with known matching locales for standard dict names in |
| 811 | `ispell-dictionary-base-alist'.") | 811 | `ispell-dictionary-base-alist'.") |
| 812 | 812 | ||
| 813 | (defvar ispell-emacs-alpha-regexp | 813 | (defvar ispell-emacs-alpha-regexp |
| @@ -1056,27 +1056,35 @@ Assumes that value contains no whitespace." | |||
| 1056 | "For aspell dictionary DICT-NAME, return a list of parameters if an | 1056 | "For aspell dictionary DICT-NAME, return a list of parameters if an |
| 1057 | associated data file is found or nil otherwise. List format is that | 1057 | associated data file is found or nil otherwise. List format is that |
| 1058 | of `ispell-dictionary-base-alist' elements." | 1058 | of `ispell-dictionary-base-alist' elements." |
| 1059 | |||
| 1060 | ;; Make sure `ispell-aspell-dict-dir' is defined | ||
| 1061 | (or ispell-aspell-dict-dir | ||
| 1062 | (setq ispell-aspell-dict-dir | ||
| 1063 | (ispell-get-aspell-config-value "dict-dir"))) | ||
| 1064 | |||
| 1059 | ;; Make sure `ispell-aspell-data-dir' is defined | 1065 | ;; Make sure `ispell-aspell-data-dir' is defined |
| 1060 | (or ispell-aspell-data-dir | 1066 | (or ispell-aspell-data-dir |
| 1061 | (setq ispell-aspell-data-dir | 1067 | (setq ispell-aspell-data-dir |
| 1062 | (ispell-get-aspell-config-value "data-dir"))) | 1068 | (ispell-get-aspell-config-value "data-dir"))) |
| 1063 | ;; Try finding associated datafile | 1069 | |
| 1064 | (let* ((datafile1 | 1070 | ;; Try finding associated datafile. aspell will look for master .dat |
| 1065 | (concat ispell-aspell-data-dir "/" | 1071 | ;; file in `dict-dir' and `data-dir'. Associated .dat files must be |
| 1066 | ;; Strip out variant, country code, etc. | 1072 | ;; in the same directory as master file. |
| 1067 | (and (string-match "^[[:alpha:]]+" dict-name) | 1073 | (let ((data-file |
| 1068 | (match-string 0 dict-name)) ".dat")) | 1074 | (catch 'datafile |
| 1069 | (datafile2 | 1075 | (dolist ( tmp-path (list ispell-aspell-dict-dir |
| 1070 | (concat ispell-aspell-data-dir "/" | 1076 | ispell-aspell-data-dir )) |
| 1071 | ;; Strip out anything but xx_YY. | 1077 | ;; Try xx.dat first, strip out variant, country code, etc, |
| 1072 | (and (string-match "^[[:alpha:]_]+" dict-name) | 1078 | ;; then try xx_YY.dat (without stripping country code). |
| 1073 | (match-string 0 dict-name)) ".dat")) | 1079 | (dolist (tmp-regexp (list "^[[:alpha:]]+" |
| 1074 | (data-file | 1080 | "^[[:alpha:]_]+")) |
| 1075 | (if (file-readable-p datafile1) | 1081 | (let ((fullpath |
| 1076 | datafile1 | 1082 | (concat tmp-path "/" |
| 1077 | (if (file-readable-p datafile2) | 1083 | (and (string-match tmp-regexp dict-name) |
| 1078 | datafile2))) | 1084 | (match-string 0 dict-name)) ".dat"))) |
| 1079 | otherchars) | 1085 | (if (file-readable-p fullpath) |
| 1086 | (throw 'datafile fullpath))))))) | ||
| 1087 | otherchars) | ||
| 1080 | 1088 | ||
| 1081 | (if data-file | 1089 | (if data-file |
| 1082 | (with-temp-buffer | 1090 | (with-temp-buffer |
| @@ -1128,6 +1136,13 @@ Return the new dictionary alist." | |||
| 1128 | (realdict (assoc realname alist))) | 1136 | (realdict (assoc realname alist))) |
| 1129 | (when (and realdict (not already-exists-p)) | 1137 | (when (and realdict (not already-exists-p)) |
| 1130 | (push (cons aliasname (cdr realdict)) alist)))))) | 1138 | (push (cons aliasname (cdr realdict)) alist)))))) |
| 1139 | ;; Add entries for standard dict-names with found locale-matching entry | ||
| 1140 | (dolist (dict-map-entry ispell-dicts-name2locale-equivs-alist) | ||
| 1141 | (let ((name (car dict-map-entry)) | ||
| 1142 | (locale (cadr dict-map-entry))) | ||
| 1143 | (unless (assoc name alist) ;; skip if already present | ||
| 1144 | (if (assoc locale alist) | ||
| 1145 | (push (cons name (cdr (assoc locale alist))) alist))))) | ||
| 1131 | alist)) | 1146 | alist)) |
| 1132 | 1147 | ||
| 1133 | ;; Make ispell.el work better with hunspell. | 1148 | ;; Make ispell.el work better with hunspell. |
| @@ -1151,12 +1166,12 @@ all uninitialized dicts using that affix file." | |||
| 1151 | (if (cadr (assoc dict ispell-dictionary-alist)) | 1166 | (if (cadr (assoc dict ispell-dictionary-alist)) |
| 1152 | (message "ispell-hfde: Non void entry for %s. Skipping.\n" dict) | 1167 | (message "ispell-hfde: Non void entry for %s. Skipping.\n" dict) |
| 1153 | (let ((dict-alias | 1168 | (let ((dict-alias |
| 1154 | (cadr (assoc dict ispell-hunspell-dictionary-equivs-alist))) | 1169 | (cadr (assoc dict ispell-dicts-name2locale-equivs-alist))) |
| 1155 | (use-for-dicts (list dict)) | 1170 | (use-for-dicts (list dict)) |
| 1156 | (dict-args-cdr (cdr (ispell-parse-hunspell-affix-file dict))) | 1171 | (dict-args-cdr (cdr (ispell-parse-hunspell-affix-file dict))) |
| 1157 | newlist) | 1172 | newlist) |
| 1158 | ;; Get a list of uninitialized dicts using the same affix file. | 1173 | ;; Get a list of uninitialized dicts using the same affix file. |
| 1159 | (dolist (dict-equiv-alist-entry ispell-hunspell-dictionary-equivs-alist) | 1174 | (dolist (dict-equiv-alist-entry ispell-dicts-name2locale-equivs-alist) |
| 1160 | (let ((dict-equiv-key (car dict-equiv-alist-entry)) | 1175 | (let ((dict-equiv-key (car dict-equiv-alist-entry)) |
| 1161 | (dict-equiv-value (cadr dict-equiv-alist-entry))) | 1176 | (dict-equiv-value (cadr dict-equiv-alist-entry))) |
| 1162 | (if (or (member dict dict-equiv-alist-entry) | 1177 | (if (or (member dict dict-equiv-alist-entry) |
| @@ -1221,7 +1236,7 @@ Return a list in `ispell-dictionary-alist' format." | |||
| 1221 | "Look for installed hunspell dictionaries. | 1236 | "Look for installed hunspell dictionaries. |
| 1222 | Will initialize `ispell-hunspell-dictionary-alist' and | 1237 | Will initialize `ispell-hunspell-dictionary-alist' and |
| 1223 | `ispell-hunspell-dictionary-alist' after values found | 1238 | `ispell-hunspell-dictionary-alist' after values found |
| 1224 | and remove `ispell-hunspell-dictionary-equivs-alist' | 1239 | and remove `ispell-dicts-name2locale-equivs-alist' |
| 1225 | entries if a specific dict was found." | 1240 | entries if a specific dict was found." |
| 1226 | (let ((hunspell-found-dicts | 1241 | (let ((hunspell-found-dicts |
| 1227 | (split-string | 1242 | (split-string |
| @@ -1260,15 +1275,15 @@ entries if a specific dict was found." | |||
| 1260 | "-- ispell-fhd: Skipping entry: %s\n" dict))))) | 1275 | "-- ispell-fhd: Skipping entry: %s\n" dict))))) |
| 1261 | ;; Remove entry from aliases alist if explicit dict was found. | 1276 | ;; Remove entry from aliases alist if explicit dict was found. |
| 1262 | (let (newlist) | 1277 | (let (newlist) |
| 1263 | (dolist (dict ispell-hunspell-dictionary-equivs-alist) | 1278 | (dolist (dict ispell-dicts-name2locale-equivs-alist) |
| 1264 | (if (assoc (car dict) ispell-hunspell-dict-paths-alist) | 1279 | (if (assoc (car dict) ispell-hunspell-dict-paths-alist) |
| 1265 | (ispell-print-if-debug | 1280 | (ispell-print-if-debug |
| 1266 | "-- ispell-fhd: Excluding %s alias. Standalone dict found.\n" | 1281 | "-- ispell-fhd: Excluding %s alias. Standalone dict found.\n" |
| 1267 | (car dict)) | 1282 | (car dict)) |
| 1268 | (add-to-list 'newlist dict))) | 1283 | (add-to-list 'newlist dict))) |
| 1269 | (setq ispell-hunspell-dictionary-equivs-alist newlist)) | 1284 | (setq ispell-dicts-name2locale-equivs-alist newlist)) |
| 1270 | ;; Add known hunspell aliases | 1285 | ;; Add known hunspell aliases |
| 1271 | (dolist (dict-equiv ispell-hunspell-dictionary-equivs-alist) | 1286 | (dolist (dict-equiv ispell-dicts-name2locale-equivs-alist) |
| 1272 | (let ((dict-equiv-key (car dict-equiv)) | 1287 | (let ((dict-equiv-key (car dict-equiv)) |
| 1273 | (dict-equiv-value (cadr dict-equiv)) | 1288 | (dict-equiv-value (cadr dict-equiv)) |
| 1274 | (exclude-aliases (list ;; Exclude TeX aliases | 1289 | (exclude-aliases (list ;; Exclude TeX aliases |
| @@ -1365,7 +1380,7 @@ aspell is used along with Emacs).") | |||
| 1365 | (let* ((dict-name (nth 0 adict)) | 1380 | (let* ((dict-name (nth 0 adict)) |
| 1366 | (dict-equiv | 1381 | (dict-equiv |
| 1367 | (cadr (assoc dict-name | 1382 | (cadr (assoc dict-name |
| 1368 | ispell-hunspell-dictionary-equivs-alist))) | 1383 | ispell-dicts-name2locale-equivs-alist))) |
| 1369 | (ispell-args (nth 5 adict)) | 1384 | (ispell-args (nth 5 adict)) |
| 1370 | (ispell-args-has-d (member "-d" ispell-args)) | 1385 | (ispell-args-has-d (member "-d" ispell-args)) |
| 1371 | skip-dict) | 1386 | skip-dict) |
diff --git a/src/ChangeLog b/src/ChangeLog index b1d9822f2f4..8acca6cca3f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -21,19 +21,16 @@ | |||
| 21 | mouse_position_for_popup only for X frames. (Bug#19862) | 21 | mouse_position_for_popup only for X frames. (Bug#19862) |
| 22 | 22 | ||
| 23 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | 23 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> |
| 24 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | ||
| 25 | 24 | ||
| 26 | * buffer.c (syms_of_buffer): Doc fix. (Bug#19841) | 25 | * buffer.c (syms_of_buffer): Doc fix. (Bug#19841) |
| 27 | 26 | ||
| 28 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | 27 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> |
| 29 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | ||
| 30 | 28 | ||
| 31 | * xfaces.c (map_tty_color): Use assoc_no_quit instead of | 29 | * xfaces.c (map_tty_color): Use assoc_no_quit instead of |
| 32 | assq_no_quit to fetch color definition by its string name. | 30 | assq_no_quit to fetch color definition by its string name. |
| 33 | (Bug#19802) | 31 | (Bug#19802) |
| 34 | 32 | ||
| 35 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | 33 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> |
| 36 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | ||
| 37 | 34 | ||
| 38 | * xdisp.c (move_it_in_display_line_to): Handle the case where the | 35 | * xdisp.c (move_it_in_display_line_to): Handle the case where the |
| 39 | last character of a screen line is whitespace, and we are under | 36 | last character of a screen line is whitespace, and we are under |
| @@ -41,7 +38,6 @@ | |||
| 41 | (Bug#19769) | 38 | (Bug#19769) |
| 42 | 39 | ||
| 43 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | 40 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> |
| 44 | 2015-03-03 Eli Zaretskii <eliz@gnu.org> | ||
| 45 | 41 | ||
| 46 | * xdisp.c (handle_stop, handle_single_display_spec) | 42 | * xdisp.c (handle_stop, handle_single_display_spec) |
| 47 | (next-element_from_image): Don't reset the | 43 | (next-element_from_image): Don't reset the |