Noam Postavsky
e62ad04963
Fix sgml-mode handling of quotes within parens (Bug#36347)
...
* lisp/textmodes/sgml-mode.el (sgml-syntax-propertize): Use
syntax-ppss-table if set. This is only needed on the release branch,
on master the caller (syntax-propertize) already does this.
(sgml-mode): Set syntax-ppss-table to sgml-tag-syntax-table. This
correctly classifies parens as punctuation, so they won't confuse the
parser.
* test/lisp/textmodes/sgml-mode-tests.el (sgml-tests--quotes-syntax):
New test copied from master, with two cases added for this bug.
2019-06-25 18:58:23 -04:00
Mauro Aranda
eadf044e06
Remove repeated function call in picture.el
...
* lisp/textmodes/picture.el (picture-mode-map): Remove repeated
define-key call. (Bug#35772)
2019-05-20 14:22:58 -04:00
Noam Postavsky
7dab3ee7ab
Recognize single quote attribute values in nxml and sgml (Bug#35381)
...
* lisp/textmodes/sgml-mode.el (sgml-specials): Add single quote.
(sgml-syntax-propertize-rules): Handle single quote.
* test/lisp/nxml/nxml-mode-tests.el (nxml-mode-font-lock-quotes): New
test.
* test/lisp/textmodes/sgml-mode-tests.el
(sgml-delete-tag-bug-8203-should-not-delete-apostrophe): Now passes.
2019-05-09 06:42:40 -04:00
Eli Zaretskii
3aaa2d2058
Fix Hunspell invocation for discovering its dictionaries
...
* lisp/textmodes/ispell.el
(ispell-find-hunspell-dictionaries): Invoke Hunspell with the
-a switch, to prevent it from initializing its curses UI.
(Bug#34272)
2019-02-11 18:07:35 +02:00
Philip K
0f716557c5
Reinitialize ispell-really-enchant when changing the speller
...
* lisp/textmodes/ispell.el (ispell-check-version): Reset also
ispell-really-enchant. (Bug#34019)
Copyright-paperwork-exempt: yes
2019-01-12 13:23:12 +02:00
Leo Liu
9845044fb6
Speed up loading css-mode
...
lisp/textmodes/css-mode.el: Remove (require 'eww) which is redundant
and slow. (Bug#33939)
2019-01-08 05:16:03 +08:00
Leo Liu
2cf20b67cf
* lisp/textmodes/mhtml-mode.el: Avoid loading flyspell. (Bug#33939)
2019-01-07 07:31:33 +08:00
Paul Eggert
26bed8ba10
Update copyright year to 2019
...
Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
2019-01-01 01:01:13 +00:00
Eli Zaretskii
2925ce5a7e
Support Hunspell 1.7.0 in ispell.el
...
* lisp/textmodes/ispell.el
(ispell-find-hunspell-dictionaries): Invoke Hunspell with an
additional command-line argument, to work around a misfeature
in Hunspell 1.7.0 that prevents it from reporting the loaded
dictionary. (Bug#33493)
2018-11-26 19:31:24 +02:00
Basil L. Contovounesios
7bc9ce7431
Fix duplicate custom group names in bibtex.el
...
* lisp/textmodes/bibtex.el (bibtex-BibTeX-entry-alist):
Change :group from BibTeX to bibtex. (bug#32436)
2018-08-17 15:22:06 -04:00
Eli Zaretskii
a0ef733886
Fix Flyspell mode when several languages are mixed in a buffer
...
* lisp/textmodes/flyspell.el (flyspell-external-point-words):
Handle "misspelled" words that actually belong to a language
unsupported by the current dictionary. (Bug#32280) Fix the test
for Ispell the program.
2018-08-07 18:35:12 +03:00
Eli Zaretskii
90110f8499
Don't use a literal "C-u" in ispell.el help message text
...
* lisp/textmodes/ispell.el (ispell-command-loop): Use
"\\[universal-argument]" instead of a literal "C-u". (Bug#32142)
2018-07-14 18:53:40 +03:00
Eli Zaretskii
ed13639c0f
Clarify usage and dependencies between several Flyspell features
...
* lisp/textmodes/flyspell.el (flyspell-region)
(flyspell-small-region, flyspell-persistent-highlight):
Documentation improvements. (Bug#32142)
2018-07-14 10:43:32 +03:00
Eli Zaretskii
d6a1b69cf3
Another documentation improvement in flyspell.el
...
* lisp/textmodes/flyspell.el (flyspell-persistent-highlight): Doc
fix.
2018-07-12 19:24:06 +03:00
Eli Zaretskii
9b49a8ed4a
Improve documentation of Flyspell
...
For the background, see
http://lists.gnu.org/archive/html/help-gnu-emacs/2018-07/msg00099.html .
* doc/emacs/fixit.texi (Spelling): Add a couple of caveats.
* lisp/textmodes/flyspell.el: Update commentary.
2018-07-12 18:59:18 +03:00
Simen Heggestøyl
0b69807015
Make a minor update to the CSS mode docstring
...
* lisp/textmodes/css-mode.el (css-mode): Mention 'fill-paragraph'.
2018-06-24 14:31:43 +02:00
Reuben Thomas
4c3fae3cf2
Call enchant-lsmod correctly when Enchant is installed with a suffix
...
* 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 a402d9aacb
)
2018-06-10 19:53:39 +03:00
Eli Zaretskii
35c1ab1419
Don't remove highlight of misspelled word on pdict save
...
* 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 91e582a31a
)
2018-06-02 12:35:42 +03:00
Roland Winkler
43a9c268c7
Move window-point in bibtex-search-entry
...
* lisp/textmodes/bibtex.el (bibtex-search-entry): Move window-point
to record found.
2018-05-24 13:38:48 -05:00
Daniel Pittman
4590414265
Avoid errors in ispell.el when Enchant returns empty extra chars
...
* 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
2018-05-04 17:37:10 +03:00
Eli Zaretskii
d0d75f9b4e
Make 'ispell-initialize-spellchecker-hook' work again
...
* lisp/textmodes/ispell.el (ispell-base-dicts-override-alist):
Defvar it to allow dynamic binding. (Bug#31341)
2018-05-04 17:25:33 +03:00
Eli Zaretskii
3bdc9a1683
Fix flyspell-auto-correct-previous-word broken by recent change
...
* lisp/textmodes/flyspell.el (flyspell-auto-correct-word): Keep
flyspell-auto-correct-region also when repeatedly invoking
flyspell-auto-correct-previous-word. (Bug#31188)
2018-04-17 20:45:51 +03:00
Robert Pluim
60e10c5031
Remove repetitions in documentation strings
...
* lisp/bindings.el (right-word): Remove repetition
(left-word): Likewise.
* lisp/image-mode.el (image-mode-as-hex): Likewise.
* lisp/cedet/semantic/tag-ls.el (semantic-tag-similar-p): Likewise.
* lisp/textmodes/reftex-vars.el (reftex-view-crossref-extra): Likewise
2018-04-13 12:10:37 +02:00
Alex Branham
663aafe1ff
* lisp/textmodes/bibtex.el (bibtex-mark-entry): activate mark
2018-03-20 08:47:44 +02:00
Glenn Morris
685175404f
Replace some obsolete aliases in code
...
* lisp/net/eudc-bob.el (eudc-bob-mail-keymap):
* lisp/textmodes/reftex-toc.el (reftex-make-separate-toc-frame):
Replace obsolete aliases.
2018-03-07 15:44:08 -05:00
Eli Zaretskii
b80e15b6a6
Prevent Flyspell from changing unrelated words
...
* lisp/textmodes/flyspell.el (flyspell-auto-correct-word): Avoid
using stale cached data from previous invocations of this command.
(Bug#30462)
2018-03-03 12:47:47 +02:00
Glenn Morris
69a8f45e15
* lisp/textmodes/flyspell.el (flyspell-get-word): Doc fix.
2018-02-20 20:31:30 -05:00
Eli Zaretskii
226aca32a7
Fix documentation of 'flyspell-auto-correct-word'
...
* lisp/textmodes/flyspell.el (flyspell-get-word): Elaborate in the
doc string on how the function looks for the word to spell-check.
(flyspell-word, flyspell-auto-correct-word): Refer to
'flyspell-get-word' for details about finding the word.
(Bug#30462)
2018-02-20 06:22:57 +02:00
Eli Zaretskii
42f9dc4473
; * lisp/textmodes/flyspell.el (flyspell-auto-correct-word): Fix a typo.
2018-02-17 18:12:23 +02:00
Glenn Morris
69107f347b
; Fix doc typos related to indefinite articles
2018-02-16 17:33:57 -05:00
Glenn Morris
66a4e651f3
; Fix doc typos related to indefinite articles
2018-02-16 15:16:15 -05:00
Eli Zaretskii
9f5d8da5cc
; * lisp/textmodes/flyspell.el (flyspell-auto-correct-word): Fix last change.
2018-02-16 16:30:02 +02:00
Eli Zaretskii
f73905af2d
Fix the doc string of flyspell-auto-correct-word
...
* lisp/textmodes/flyspell.el (flyspell-auto-correct-word): Doc
fix. (Bug#30462)
2018-02-16 16:23:43 +02:00
Basil L. Contovounesios
e209034536
Fix shr and CSS 4 color maps
...
* lisp/net/shr-color.el (shr-color-html-colors-alist): Fix typos.
Add RebeccaPurple.
* lisp/textmodes/css-mode.el (css--color-map): Add fuchsia-magenta
and aqua-cyan aliases.
* test/lisp/textmodes/css-mode-tests.el (css-test-property-values):
Bump color count.
2018-02-07 22:14:00 +01:00
Charles A. Roelli
80463a43da
Improve documentation of fill-separate-heterogeneous-words-with-space
...
* lisp/textmodes/fill.el
(fill-separate-heterogeneous-words-with-space): Fix grammar.
2018-01-10 21:30:43 +01:00
Eli Zaretskii
ab31bf3c5f
* lisp/textmodes/picture.el (picture-mode-exit): Doc fix. (Bug#29949)
2018-01-02 21:34:58 +02:00
Eli Zaretskii
ed44d92fa6
* lisp/textmodes/picture.el (picture-open-line): Doc fix. (Bug#29948)
2018-01-02 21:24:34 +02:00
Paul Eggert
5c7dd8a783
Update copyright year to 2018
...
Run admin/update-copyright.
2018-01-01 00:57:59 -08:00
Eli Zaretskii
d60faf3275
Improve detection of speller version in ispell.el
...
* 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)
2017-12-22 11:11:29 +02:00
Dmitry Gutov
aca827b0d0
Merge branch 'widen-less' into emacs-26
2017-12-21 00:34:07 +02:00
Simen Heggestøyl
63b6281fdd
Fix off-by-one error in 'css--hex-color'
...
* lisp/textmodes/css-mode.el (css--hex-color): Fix off-by-one error.
* test/lisp/textmodes/css-mode-tests.el (css-test-hex-color): New test
for 'css--hex-color'.
2017-12-16 09:46:54 +01:00
Glenn Morris
c2a88ec8e8
* lisp/textmodes/tex-mode.el: Ensure uncompiled file is loadable.
2017-12-14 22:01:32 -08:00
Dmitry Gutov
7e9eef0ffd
Consolidate 'widen' calls
...
* lisp/progmodes/prog-mode.el (prog-indentation-context):
Un-document all elements but the first.
(prog-widen): Remove.
(http://lists.gnu.org/archive/html/emacs-devel/2017-12/msg00321.html )
* doc/lispref/text.texi (Mode-Specific Indent): Update.
* lisp/progmodes/ruby-mode.el (ruby-calculate-indent):
Don't call widen.
* lisp/progmodes/python.el
(python-indent-guess-indent-offset)
(python-info-current-defun): Replace prog-widen with widen;
these functions are not called during indentation.
(python-indent-context)
(python-indent--calculate-indentation)
(python-info-dedenter-opening-block-message)
(python-info-line-ends-backslash-p)
(python-info-beginning-of-backslash)
(python-info-continuation-line-p)
(python-info-current-defun): Remove 'widen' calls.
* lisp/indent.el (indent-according-to-mode)
(indent-for-tab-command, indent-region): Move them here.
* lisp/textmodes/mhtml-mode.el (mhtml-indent-line):
Bind prog-indentation-context to one-element list.
2017-12-14 11:18:51 +02:00
Glenn Morris
ce31e726ad
Fixes for defcustoms, prompted by cus-test-opts
...
* lisp/files.el (save-some-buffers-default-predicate):
* lisp/time.el (display-time-world-list):
* lisp/gnus/gnus-art.el (gnus-article-show-cursor):
* lisp/progmodes/cc-vars.el (c-noise-macro-with-parens-names):
* lisp/progmodes/verilog-mode.el (verilog-auto-wire-type):
* lisp/textmodes/less-css-mode.el (less-css-output-directory)
(less-css-output-file-name, less-css-input-file-name):
* lisp/vc/emerge.el (emerge-metachars):
* lisp/vc/vc-hg.el (vc-hg-symbolic-revision-styles):
Fix :types.
* lisp/net/newst-backend.el (newsticker-url-list-defaults): Fix url.
2017-12-13 15:29:24 -05:00
Glenn Morris
52d2a690f6
Add missing :version tags revealed by cusver-check
...
* lisp/comint.el (comint-move-point-for-matching-input):
* lisp/epa.el (epa-replace-original-text):
* lisp/image-dired.el (image-dired-cmd-optipng-program)
(image-dired-cmd-optipng-options):
* lisp/emacs-lisp/bytecomp.el (byte-compile-cond-use-jump-table):
* lisp/gnus/gnus-cloud.el (gnus-cloud-storage-method)
(gnus-cloud-interactive):
* lisp/net/mailcap.el (mailcap-user-mime-data):
* lisp/progmodes/cc-vars.el (c-asymmetry-fontification-flag)
(c-noise-macro-names, c-noise-macro-with-parens-names):
* lisp/progmodes/flymake.el (flymake-start-on-flymake-mode)
(flymake-wrap-around):
* lisp/progmodes/grep.el (grep-use-null-filename-separator):
* lisp/progmodes/js.el (js-indent-align-list-continuation):
* lisp/progmodes/perl-mode.el (perl-flymake-command):
* lisp/progmodes/python.el (python-flymake-command)
(python-flymake-command-output-pattern, python-flymake-msg-alist):
* lisp/progmodes/ruby-mode.el (ruby-flymake-use-rubocop-if-available)
(ruby-rubocop-config):
* lisp/textmodes/less-css-mode.el (less-css):
* lisp/textmodes/tex-mode.el (tex-chktex-program)
(tex-chktex-extra-flags): Add missing :version tags.
2017-12-12 23:21:24 -08:00
Glenn Morris
f5d0360234
Escape column-zero doc parens
...
* lisp/htmlfontify.el (hfy-display-class):
* lisp/calendar/icalendar.el (icalendar--do-create-ical-alarm):
* lisp/net/shr.el (shr-external-rendering-functions):
* lisp/progmodes/cc-vars.el (c-asymmetry-fontification-flag):
* lisp/textmodes/tildify.el (tildify-tildify):
Escape column-zero doc parens. A shame bug#21871 remains unfixed.
2017-12-12 23:18:35 -08:00
Paul Eggert
a89f0b6f33
maint: shorten https://lists.gnu.org/archive/html/ ... links
2017-11-25 22:48:12 -08:00
Tom Tromey
cfa2a944d4
Change font-lock-extend-region-multiline handling in mhtml-mode
...
Bug#29159
* lisp/textmodes/mhtml-mode.el (mhtml-mode): Remove
font-lock-extend-region-multiline from
font-lock-extend-region-functions.
(mhtml--extend-font-lock-region): Call font-lock-extend-region-multiline.
2017-11-25 13:25:37 -07:00
Tom Tromey
6aa0a26b46
Don't enable cursor-sensor-mode in mhtml-mode
...
* lisp/textmodes/mhtml-mode.el (mhtml--last-submode): Update doc
string.
(mhtml-mode): Don't call cursor-sensor-mode.
2017-11-12 11:56:05 -07:00
Glenn Morris
383abc8898
; Fix some comment typos
2017-11-03 15:18:32 -04:00