summaryrefslogtreecommitdiff
path: root/lisp/textmodes/ispell.el
Commit message (Collapse)AuthorAgeFilesLines
* Improve error message when Hunspell dictionaries are misconfiguredEli Zaretskii2018-08-111-0/+6
| | | | | | | * lisp/textmodes/ispell.el (ispell-find-hunspell-dictionaries): Produce a meaningful error message if Hunspell dictionaries are misconfigured. (Bug#32319)
* Merge from origin/emacs-26Glenn Morris2018-07-201-2/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3e72298 Improve documentation of 'pcase-defmacro rx' ba9b9bb Fix TTY colors breakage by 'clear-face-cache' f56ad42 * admin/MAINTAINERS: Add files maintained by me (Michael Albi... 7a258fa Adapt shadowfile.el for Tramp (Bug#4526, Bug#4846) cb50077 Fix auth-source-delete (Bug#26184) a4767a6 Avoid assertion violations in gnutls.c 90110f8 Don't use a literal "C-u" in ispell.el help message text f4e7f6d Improve documentation of 'seqp' ed13639 Clarify usage and dependencies between several Flyspell features Conflicts: etc/NEWS test/lisp/auth-source-tests.el
| * Don't use a literal "C-u" in ispell.el help message textEli Zaretskii2018-07-141-2/+3
| | | | | | | | | | * lisp/textmodes/ispell.el (ispell-command-loop): Use "\\[universal-argument]" instead of a literal "C-u". (Bug#32142)
| * Call enchant-lsmod correctly when Enchant is installed with a suffixReuben Thomas2018-06-101-2/+3
| | | | | | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Cope with a version suffix on the binary name, so enchant-2 is converted to enchant-lsmod-2, not enchant-2-lsmod. (Bug#31761) (cherry picked from commit a402d9aacbecf4bf0b9afde592a3b90c71f96832)
| * Don't remove highlight of misspelled word on pdict saveEli Zaretskii2018-06-021-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell-pdict-save): Don't restart flyspell-mode, as bug#11963, which this was supposed to fix, is fixed better by ispell-command-loop, when the user types 'i' or 'a'. Restarting Flyspell mode when the personal dictionary is saved caused bug#31372 as side effect. (ispell-command-loop): Test 'flyspell-mode', not whether flyspell-unhighlight-at is fboundp, to determine whether Flyspell mode is turned on in the current buffer. (flyspell-unhighlight-at): Add declare-function form for it. (cherry picked from commit 91e582a31ada28fab5ae55bdbf959a9d30796587)
* | Optionally add argument description in minor mode DOC (bug#10754)John Shahid2018-07-011-3/+0
| | | | | | | | | | | | | | | | | | | | | | Add a paragraph to minor mode's docstring documenting the mode's ARG usage if the supplied docstring doesn't already contain the word "ARG". * easy-mmode.el (easy-mmode--arg-docstring): New const. (easy-mmode--arg-docstring): New function. (define-minor-mode): Use them. Remove argument documentation from all minor modes.
* | * lisp/textmodes/ispell.el (ispell-menu-map): Init in declarationStefan Monnier2018-06-121-82/+70
| | | | | | | | | | (ispell-menu-map-needed): Remove, now that the menu doesn't include the list of dictionaries any more, so it's basically constant.
* | * lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Use \' i.s.o $.Stefan Monnier2018-06-101-3/+5
| |
* | Merge from origin/emacs-26Glenn Morris2018-05-071-2/+8
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | 1d732d6 (origin/emacs-26) Fix gud-statement for pdb 91a68b5 ; * msdos/INSTALL: Add info about GCC versions. 7ddcc9a Document 'custom-group' 58f9e15 A minor addition to etc/DEBUG 4590414 Avoid errors in ispell.el when Enchant returns empty extra chars d0d75f9 Make 'ispell-initialize-spellchecker-hook' work again b90ce66 Handle selected_window change in prepare_menu_bars (Bug#31312) 79ad0b3 ; * INSTALL: Fix Emacs version number. (Bug#31358) 91de88b Fix report-emacs-bug via mailclient on MS-Windows f4b5ff2 Port collation tests to glibc 2.27
| * Avoid errors in ispell.el when Enchant returns empty extra charsDaniel Pittman2018-05-041-2/+4
| | | | | | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell--get-extra-word-characters): Handle the case of empty extra characters returned by the Enchant '-lsmod' command. (Bug#31344) Copyright-paperwork-exempt: yes
| * Make 'ispell-initialize-spellchecker-hook' work againEli Zaretskii2018-05-041-0/+4
| | | | | | | | | | * lisp/textmodes/ispell.el (ispell-base-dicts-override-alist): Defvar it to allow dynamic binding. (Bug#31341)
* | Don't remove highlight of misspelled word on pdict saveEli Zaretskii2018-05-061-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell-pdict-save): Don't restart flyspell-mode, as bug#11963, which this was supposed to fix, is fixed better by ispell-command-loop, when the user types 'i' or 'a'. Restarting Flyspell mode when the personal dictionary is saved caused bug#31372 as side effect. (ispell-command-loop): Test 'flyspell-mode', not whether flyspell-unhighlight-at is fboundp, to determine whether Flyspell mode is turned on in the current buffer. (flyspell-unhighlight-at): Add declare-function form for it.
* | * lisp/textmodes/ispell.el (ispell-use-framepop-p): Doc fix.Glenn Morris2018-05-021-1/+3
| |
* | The tedious game of whack-a-mole with compiler warnings continuesGlenn Morris2018-04-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/abbrev.el (edit-abbrevs-map): * lisp/emacs-lock.el (emacs-lock-from-exiting): * lisp/htmlfontify.el (hfy-optimisations): * lisp/ielm.el (inferior-emacs-lisp-mode-hook) (inferior-emacs-lisp-mode-map): * lisp/isearch.el (isearch-lazy-highlight-word): * lisp/select.el (x-select-enable-clipboard, x-select-enable-primary): * lisp/shell.el (shell-dirtrack-mode): * lisp/skeleton.el (skeleton-transformation, skeleton-filter): * lisp/startup.el (inhibit-splash-screen, inhibit-startup-message): * lisp/window.el (even-window-heights): * lisp/calendar/timeclock.el (timeclock-modeline-display): * lisp/cedet/semantic/db-mode.el (semanticdb-mode-hook) (semanticdb-global-mode): * lisp/emacs-lisp/edebug.el (gud-inhibit-global-bindings): * lisp/emacs-lisp/warnings.el (display-warning-minimum-level) (log-warning-minimum-level): * lisp/erc/erc-dcc.el (erc-dcc-chat-filter-hook): * lisp/gnus/nnspool.el (news-path): * lisp/org/org-agenda.el (org-agenda-search-view-search-words-only) (org-agenda-remove-tags-when-in-prefix) (org-agenda-align-tags-to-column, org-agenda-keymap): * lisp/org/org.el (org-special-ctrl-a) (org-log-state-notes-into-drawer) (org-agenda-multi-occur-extra-files): * lisp/progmodes/flymake-proc.el (flymake-err-line-patterns) (flymake-check-file-limit): * lisp/progmodes/make-mode.el (makefile-query-one-target-method): * lisp/progmodes/octave.el (inferior-octave-startup-hook): * lisp/progmodes/python.el (python-buffer) (python-preoutput-result): * lisp/progmodes/sql.el (sql-dialect): * lisp/textmodes/artist.el (artist-text-renderer): * lisp/textmodes/bibtex.el (bibtex-autokey-name-case-convert) (bibtex-autokey-titleword-case-convert): * lisp/textmodes/flyspell.el (flyspell-generic-check-word-p): * lisp/textmodes/ispell.el (ispell-format-word): * lisp/textmodes/rst.el (rst-preferred-decorations): * lisp/textmodes/sgml-mode.el (sgml-transformation): Move aliases before targets, to silence new compiler warning. * lisp/term/ns-win.el (ns-option-modifier, ns-right-option-modifier): Silence warning.
* | Call enchant-lsmod correctly when Enchant is installed with a suffixReuben Thomas2018-03-161-2/+3
| | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Cope with a version suffix on the binary name, so enchant-2 is converted to enchant-lsmod-2, not enchant-2-lsmod.
* | Replace (default-value 'enable-multibyte-characters) with tStefan Monnier2018-01-251-5/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | Since Emacs-24, (default-value 'enable-multibyte-characters) can't be changed any more, so we can remove all code which checks this value. * lisp/x-dnd.el (x-dnd-handle-file-name): * lisp/w32-fns.el (w32-set-default-process-coding-system): * lisp/textmodes/ispell.el (ispell-send-string): * lisp/term/internal.el (dos-codepage-setup): * lisp/tar-mode.el (tar-header-block-tokenize, tar--extract): * lisp/startup.el (command-line): * lisp/server.el (server-process-filter): * lisp/net/browse-url.el (browse-url-file-url): * lisp/menu-bar.el (menu-bar-options-menu, menu-bar-describe-menu): * lisp/mail/sendmail.el (mail-setup): * lisp/mail/rmail.el (rmail-mode, rmail-get-new-mail): * lisp/mail/rfc2047.el (rfc2047-encode-message-header): * lisp/mail/emacsbug.el (report-emacs-bug): * lisp/international/mule-diag.el (mule-diag): * lisp/files.el (find-file-noselect-1): * lisp/dos-fns.el (dos-set-default-process-coding-system): * lisp/arc-mode.el (archive-mode): * lisp/international/mule-cmds.el (mule-menu-keymap) (set-default-coding-systems, set-language-info) (set-language-environment, standard-display-european-internal) (set-locale-environment): Simplify code.
* Update copyright year to 2018Paul Eggert2018-01-011-1/+1
| | | | Run admin/update-copyright.
* Improve detection of speller version in ispell.elEli Zaretskii2017-12-221-13/+17
| | | | | | * lisp/textmodes/ispell.el (ispell-check-version): Accept more general forms of version numbers for Aspell, Hunspell, and Enchant, to include various beta and prereleases. (Bug#29801)
* Fix errors in flyspell-post-command-hookEli Zaretskii2017-09-191-2/+4
| | | | | | | * lisp/textmodes/ispell.el (ispell-get-decoded-string): Handle the case of a nil Nth element of the language dictionary slot. This avoids errors in 'flyspell-post-command-hook' when switching dictionaries with some spell-checkers. (Bug#28501)
* Prefer HTTPS to FTP and HTTP in documentationPaul Eggert2017-09-131-1/+1
| | | | | | | | | | | | | Most of this change is to boilerplate commentary such as license URLs. This change was prompted by ftp://ftp.gnu.org's going-away party, planned for November. Change these FTP URLs to https://ftp.gnu.org instead. Make similar changes for URLs to other organizations moving away from FTP. Also, change HTTP to HTTPS for URLs to gnu.org and fsf.org when this works, as this will further help defend against man-in-the-middle attacks (for this part I omitted the MS-DOS and MS-Windows sources and the test tarballs to keep the workload down). HTTPS is not fully working to lists.gnu.org so I left those URLs alone for now.
* Avoid using string-to-multibyte in ispell.elReuben Thomas2017-08-241-13/+3
| | | | | | | | * lisp/textmodes/ispell.el (ispell-get-decoded-string): Use decode-coding-string instead. Note that decode-coding-string returns a string that satisfies multibyte-string-p even if its input is pure ASCII and the third argument is t, so the result of ispell-get-decoded-string is always a multibyte string.
* ; * lisp/textmodes/ispell.el: `subr-x' is only needed at compile time.Noam Postavsky2017-08-201-1/+1
|
* Add missing requireReuben Thomas2017-08-201-0/+1
| | | | * lisp/textmodes/ispell.el: Require subr-x. (Thanks, Eli Zaretskii.)
* Remove old comments and a redundant FIXMEReuben Thomas2017-08-201-26/+4
| | | | | * lisp/textmodes/ispell.el (ispell-process-line): Remove some old commented code, a redundant FIXME, and outdated usage instructions.
* Add Enchant support to ispell.el (Bug#17742)Reuben Thomas2017-08-201-14/+78
| | | | | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell-program-name): Add “enchant”. (ispell-really-enchant): Add variable. (ispell-check-version): If using Enchant, check it’s new enough (at least 1.6.1). (Like the ispell check, this is absolute: cannot work without.) (ispell-enchant-dictionary-alist): Add variable. (ispell-find-enchant-dictionaries): Add function, based on ispell-find-aspell-dictionaries. (ispell-set-spellchecker-params): Allow dictionary auto-detection for Enchant, and call ispell-find-enchant-dictionaries to find them. Use old ispell name to locale mapping code for Enchant too. (ispell-send-replacement): Make it work with Enchant.
* Revert "Add Enchant support to ispell.el (Bug#17742)"Reuben Thomas2017-08-071-65/+14
| | | | This reverts commit 7136e6723d87b51ae3089f5ceef6b14621bfaf87.
* Add Enchant support to ispell.el (Bug#17742)Reuben Thomas2017-08-071-14/+65
| | | | | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell-program-name): Add “enchant”. (ispell-really-enchant): Add variable. (ispell-check-version): If using Enchant, check it’s new enough (at least 1.6.1). (Like the ispell check, this is absolute: cannot work without.) (ispell-enchant-dictionary-alist): Add variable. (ispell-find-enchant-dictionaries): Add function, based on ispell-find-aspell-dictionaries. (ispell-set-spellchecker-params): Allow dictionary auto-detection for Enchant, and call ispell-find-enchant-dictionaries to find them. Use old ispell name to locale mapping code for Enchant too. (ispell-send-replacement): Make it work with Enchant.
* ispell.el: use user-error rather than debug-ignored-errorsGlenn Morris2017-04-171-4/+1
| | | | | * lisp/textmodes/ispell.el (ispell-get-word): Use user-error. (debug-ignored-errors): No longer modify.
* Support in ispell.el multiple dictionaries loaded by HunspellEli Zaretskii2017-03-251-11/+21
| | | | | | * lisp/textmodes/ispell.el (ispell-find-hunspell-dictionaries): Support Hunspell configurations that load more than one dictionary by default. Doc fix. (Bug#25830)
* Avoid infloop in 'ispell-region'Eli Zaretskii2017-01-071-1/+8
| | | | | | | * lisp/textmodes/ispell.el (ispell-begin-skip-region-regexp): Protect against 'ispell-skip-region-alist' being nil. Reported by Ernest Adrogué <nfdisco@gmail.com>, see http://lists.gnu.org/archive/html/help-gnu-emacs/2017-01/msg00007.html.
* Merge from origin/emacs-25Paul Eggert2017-01-011-1/+1
|\ | | | | | | | | 2e2a806 Fix copyright years by hand 5badc81 Update copyright year to 2017
| * Update copyright year to 2017Paul Eggert2016-12-311-1/+1
| | | | | | | | Run admin/update-copyright.
* | Keep default CASECHARS/NOT-CASECHARS for ispell built-in dictionariesReuben Thomas2016-12-211-2/+2
| | | | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell-set-spellchecker-params): Do not override CASECHARS and NOT-CASECHARS. The ispell dictionaries retain their hardwired values, and all other dictionaries are given sensible defaults.
* | Reinstate ispell character offset (bug#25219)Alan Third2016-12-181-1/+4
| | | | | | | | | | * lisp/textmodes/ispell.el (ispell-process-line): insert -1 where ispell-offset used to be.
* | Remove support for aspell < 0.60 (from 2004)Reuben Thomas2016-12-131-19/+16
| | | | | | | | | | lisp/textmodes/ispell.el (ispell-check-version): Require Aspell 0.60. (ispell-aspell-dictionary-alist): Remove check that we have Aspell 0.60.
* | Minor docstring and comment fixes to ispell.elReuben Thomas2016-12-131-2/+2
| | | | | | | | | | | | | | lisp/textmodes/ispell.el (ispell-aspell-dictionary-alist): Mention ispell-aspell-dictionary-alist, not ispell-dictionary-alist. (ispell-set-spellchecker-params): Change double-single quotes to single single quotes in comment.
* | Remove unused variableReuben Thomas2016-12-131-2/+0
| | | | | | | | * lisp/textmodes/ispell.el (current-ispell-directory): Remove.
* | Remove XEmacs-specific ispell-with-no-warningsReuben Thomas2016-12-131-8/+4
| | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell-with-no-warnings): Remove this defmacro, needed only for XEmacs. (ispell-command-loop, ispell-message): Use with-no-warnings directly.
* | Remove meaningless defconst ispell-versionReuben Thomas2016-12-131-10/+3
| | | | | | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell-version): Since ispell.el is now firmly part of Emacs, and the version hasn’t changed since 2003, and isn’t used anywhere, remove it. 3rd-party code can better use the Emacs version, or feature or function checks. (ispell-check-version): No longer report ispell.el version.
* | Remove boundp test for always-bound symbolReuben Thomas2016-12-131-2/+1
| | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell-message): mail-yank-prefix is defvar’d at the top of the file, so remove a test to see if it is bound.
* | Remove support for ispell < 3.1.12Reuben Thomas2016-12-131-8/+2
| | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell-offset): Remove. (ispell-check-version): Require ispell >= 3.1.12, released in 1994. (ispell-process-line): No longer use ispell-offset.
* | Remove unused constantReuben Thomas2016-12-131-4/+0
| | | | | | | | * lisp/textmodes/ispell.el (ispell-required-version): Remove.
* | Remove support for old versions of supercite and GNUS from ispell.elReuben Thomas2016-12-131-7/+2
| | | | | | | | | | * lisp/textmodes/ispell.el (ispell-message): Require supercite >= 3.0 and GNUS >= 5. Not exactly the bleeding edge!
* | Remove remaining mentions of XEmacs from ispell.elReuben Thomas2016-12-131-3/+2
| | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell-valid-dictionary-list): (ispell-add-per-file-word-list): Remove mentions of XEmacs from comments.
* | Remove XEmacs-specific minibuffer handling code from ispell.elReuben Thomas2016-12-131-7/+5
| | | | | | | | | | * lisp/textmodes/ispell.el (ispell-init-process): Assume we are not in XEmacs.
* | Remove XEmacs-specific horizontal scrollbar handling in ispell.elReuben Thomas2016-12-131-8/+2
| | | | | | | | | | * lisp/textmodes/ispell.el (ispell-command-loop): Remove XEmacs-specific code.
* | Remove XEmacs-specific code dealing with enable-multibyte-charactersReuben Thomas2016-12-131-16/+3
| | | | | | | | | | * lisp/textmodes/ispell.el (ispell-decode-string): (ispell-init-process): Remove XEmacs-specific guard.
* | Remove XEmacs-specific code from ispell.elReuben Thomas2016-12-131-45/+10
| | | | | | | | | | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell-menu-xemacs): Remove (ispell-menu-map-needed): Remove XEmacs-specific check. (ispell-word): Remove XEmacs-specific extent code. (ispell-init-process): Remove XEmacs workaround for local add-hook. Assume we have set-process-query-on-exit-flag. (ispell-kill-ispell, ispell-change-dictionary): Remove XEmacs workaround for called-interactively-p.
* | Remove some commented-out codeReuben Thomas2016-12-131-6/+1
| | | | | | | | | | lisp/textmodes/ispell.el (ispell-process) ispell-valid-dictionary-list): Remove commented-out code.
* | Remove XEmacs and old Emacs highlighting codeReuben Thomas2016-12-131-19/+3
| | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell-highlight-spelling-error-xemacs): Remove. (ispell-highlight-spelling-error): Assume display-color-p exists.