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
João Távora
4f38bdec74
Examine tex-chktex--process in the correct buffer
...
As in other Flymake backends, the process sentinel might run in
arbitrary buffers where this variable's value doesn't make sense.
For a way to trigger a problem due to this, see discussion starting in
https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00645.html
* lisp/textmodes/tex-mode.el (tex-chktex): Use
with-current-buffer.
2017-11-03 19:06:01 +00:00
Simen Heggestøyl
a9f8706fa8
Fix completion of colon after CSS property (Bug#29056)
...
* lisp/textmodes/css-mode.el (css-completion-at-point): Don't insert
": ;" after completing a CSS property unless the rest of the line is
empty.
2017-11-02 20:39:39 +01:00
Tom Tromey
056587c45f
Extend mhtml submode region when in comment
...
* lisp/textmodes/mhtml-mode.el (mhtml-syntax-propertize): Extend
submode when start happens to be in a comment.
2017-10-29 13:03:51 -06:00
Tom Tromey
4c4ad80848
Fix mthml submode lighting at end of buffer
...
* lisp/textmodes/mhtml-mode.el (mhtml--submode-lighter): Handle end of
buffer correctly.
2017-10-29 12:05:28 -06:00
Tom Tromey
557e252aa2
Remember more variables in mhtml-mode
...
* lisp/textmodes/mhtml-mode.el (mhtml--crucial-variable-prefix): Add
"completion-" and "major-mode".
(mhtml--variable-prefix): Remove "major-mode".
2017-10-29 11:50:16 -06:00
Mark Oteiza
2ebdde6e9c
Add ChkTeX flymake backend for latex-mode
...
* lisp/textmodes/tex-mode.el (tex-flymake): New custom group.
(tex-chktex-program, tex-chktex-extra-flags): New custom variables.
(latex-mode): Add backend to flymake-diagnostic-functions.
(tex-chktex--process): New variable.
(tex-chktex-command, tex-chktex): New functions.
2017-10-28 20:32:50 -04:00
Glenn Morris
5b59841791
Fix doc typos
...
* lisp/simple.el (line-move-ignore-invisible):
* lisp/sort.el (sort-regexp-fields):
* lisp/cedet/ede.el (project-add-file):
* lisp/gnus/message.el (message-bogus-recipient-p):
* lisp/international/mule.el (define-coding-system):
* lisp/progmodes/ebrowse.el (ebrowse-member-buffer-object-menu):
* lisp/progmodes/xscheme.el (xscheme-allow-output-p)
(scheme-interaction-mode, scheme-debugger-mode)
(xscheme-yank-pop, xscheme-yank-push): Doc fixes.
2017-10-28 17:10:25 -07:00
Daniel Lublin
196106d37d
Support Certification Authority Authorization in dns-mode.el
...
* lisp/textmodes/dns-mode.el (dns-mode-types): Add "CAA".
(Bug#28911)
Copyright-paperwork-exempt: yes
2017-10-27 16:59:42 +03:00
Paul Eggert
3aee7be62e
Avoid unnecessary rounding errors in timestamps
...
Avoid the rounding errors of float-time when it’s easy. E.g.,
replace (< (float-time a) (float-time b)) with (time-less-p a b).
* lisp/desktop.el (desktop-save):
* lisp/ecomplete.el (ecomplete-add-item):
* lisp/epg.el (epg-wait-for-completion):
* lisp/files.el (dir-locals-find-file, dir-locals-read-from-dir):
* lisp/image-dired.el (image-dired-get-thumbnail-image)
(image-dired-create-thumb-1):
* lisp/info.el (info-insert-file-contents):
* lisp/ls-lisp.el (ls-lisp-format-time):
* lisp/net/ange-ftp.el (ange-ftp-file-newer-than-file-p)
(ange-ftp-verify-visited-file-modtime):
* lisp/net/rcirc.el (rcirc-ctcp-sender-PING):
* lisp/textmodes/remember.el (remember-store-in-mailbox):
* lisp/url/url-cookie.el (url-cookie-expired-p):
Bypass float-time to avoid rounding errors.
* lisp/files.el (dir-locals-find-file):
2017-10-22 01:07:32 -07:00