aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update uses of if-let and when-letMark Oteiza2017-09-122-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/dom.el (dom-previous-sibling): * lisp/emacs-lisp/package.el (package--with-work-buffer): (package--sort-deps-in-alist, package--sort-by-dependence): (package-install-from-archive, package-install): (package-menu-execute, package-menu--populate-new-package-list): * lisp/filenotify.el (file-notify--rm-descriptor): (file-notify--event-watched-file, file-notify--event-file-name): (file-notify--event-file1-name, file-notify-rm-watch): (file-notify-valid-p): * lisp/gnus/message.el (message-toggle-image-thumbnails): * lisp/gnus/nnimap.el (nnimap-request-move-article): * lisp/ibuf-ext.el (ibuffer-repair-saved-filters): * lisp/mpc.el (mpc-format): * lisp/net/eww.el (eww-tag-meta, eww-process-text-input): (eww-save-history): * lisp/net/shr.el (shr-tag-base, shr-tag-object, shr-make-table-1): * lisp/progmodes/prog-mode.el (prettify-symbols--post-command-hook): * lisp/svg.el (svg-remove): * lisp/textmodes/css-mode.el (css--named-color): (css--colon-inside-funcall): * lisp/textmodes/sgml-mode.el (html-current-buffer-classes): (html-current-buffer-ids): Use if-let* and when-let* instead.
* Merge Emacs 25.3 fixesPaul Eggert2017-09-121-0/+35
| | | | | | | | | | | The security patches released for Emacs 25.3 were less drastic than what we had immediately put into master. Adjust master to match 25.3 (Bug#28350). * lisp/textmodes/enriched.el (enriched-translations): Re-enable FUNCTION and display translations that are safe. (enriched-handle-display-prop): Bring back. (enriched-decode-display-prop): Bring back, but disable the unsafe part.
* Remove unsafe enriched mode translationsLars Ingebrigtsen2017-09-091-32/+0
| | | | | | | | * lisp/gnus/mm-view.el (mm-inline-text): Do not worry about enriched or richtext type. * lisp/textmodes/enriched.el (enriched-translations): Remove translations for FUNCTION, display (Bug#28350). (enriched-handle-display-prop, enriched-decode-display-prop): Remove.
* Font-lock FDO desktop files correctlyMark Oteiza2017-08-271-10/+22
| | | | | | | | | | | | | Single and double quotes do not have a special meaning in desktop files. https://standards.freedesktop.org/desktop-entry-spec/latest/ * etc/NEWS: Mention new mode. * lisp/files.el (auto-mode-alist): Split out an entry for handling the .desktop extension with conf-desktop-mode. * lisp/textmodes/conf-mode.el (conf-desktop-font-lock-keywords): New variable with rules for booleans and format specifiers. (conf-unix-mode): Remove desktop file entry example from docstring. (conf-desktop-mode): New derived major mode.
* Refine conf-toml-mode font-lockTom Tromey2017-08-261-2/+28
| | | | | | | Bug#28218 * lisp/textmodes/conf-mode.el (conf-toml-font-lock-keywords): Use conf-toml-recognize-section. Use \s- in variable regexp. (conf-toml-recognize-section): New function.
* 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.
* Add conf-toml-modeTom Tromey2017-08-231-0/+34
| | | | | | | | * etc/NEWS: Mention conf-toml-mode. * lisp/files.el (auto-mode-alist): Add entry for .toml. * lisp/textmodes/conf-mode.el (conf-toml-mode-syntax-table) (conf-toml-font-lock-keywords): New defvars. (conf-toml-mode): New mode.
* ; * 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.
* Support indentation of detached Less CSS rulesetsSimen Heggestøyl2017-08-151-3/+6
| | | | | | | * lisp/textmodes/css-mode.el (css-smie-rules): Provide better support for indentation of detached rulesets passed to Less mixins. * test/manual/indent/less-css-mode.less: New file.
* Fixes and tweaks for the new Less CSS modeSimen Heggestøyl2017-08-151-145/+119
| | | | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: Add an entry for the new mode. * lisp/textmodes/less-css-mode.el (less-css): Tweak docstring. (less-css-lessc-command): Tweak docstring. Don't mark it as safe. Don't autoload. (less-css-compile-at-save, less-css-lessc-options) (less-css-output-directory): Tweak docstrings. Don't autoload. (less-css-output-file-name): Tweak docstring. Don't mark it as safe. (less-css-input-file-name): Tweak docstring. Don't autoload. (less-css-compile-maybe): Use `when' for one-armed `if'. (less-css--output-path): Tweak docstring. (less-css--maybe-shell-quote-command): Remove function. (less-css-compile): Don't autoload. Tweak docstring and message. Fix compiler warning. Use `string-join' instead of `mapconcat'. (less-css-font-lock-keywords): Use `font-lock-variable-name-face' for variables. (less-css-mode-syntax-table, less-css-mode-map): New variables. (less-css-mode): Change status line mode name from "LESS" to "Less". Tweak docstring. Move syntax table definitions to `less-css-mode-syntax-table'. (less-css-indent-line): Remove function.
* New major mode: Less CSS modeSteve Purcell2017-08-151-0/+258
| | | | * lisp/textmodes/less-css-mode.el: New file.
* Make a case-sensitive match for stringsArash Esbati2017-08-121-1/+2
| | | | | | * lisp/textmodes/reftex.el (reftex-typekey-check): Temporarily let-bind `case-fold-search' to nil in order to be case-sensitive when matching a string. (Bug#27518)
* 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.
* Change default CSS property faceSimen Heggestøyl2017-07-301-1/+1
| | | | | | * lisp/textmodes/css-mode.el (css-property): Inherit from `font-lock-keyword-face' instead of `font-lock-variable-name-face' to distinguish CSS properties from variables.
* artist.el: Avoid error with keyboard command invocationStephen Berman2017-07-291-1/+1
| | | | | | | * lisp/textmodes/artist.el (artist-mouse-choose-operation): Call x-popup-menu with t instead of last-nonmenu-event as the value of the position argument; this allows invoking the command from the keyboard without raising an error (bug#27819).
* Remove `:options' from `css-electric-keys'Simen Heggestøyl2017-06-201-1/+0
| | | | | * lisp/textmodes/css-mode.el (css-electric-keys): Remove `:options` since it just duplicates the default value.
* Complete CSS property values less eagerly (Bug#27392)Simen Heggestøyl2017-06-171-4/+5
| | | | | | | | | | * lisp/textmodes/css-mode.el (css--complete-property-value): Be less eager by looking for a colon after the property which values are being completed for. * test/lisp/textmodes/css-mode-tests.el (css-test-complete-property): Add a test case ensuring that properties that are prefixes of other properties don't hinder further completion.
* Fix highlighting of CSS selectors with double hyphensSimen Heggestøyl2017-06-111-2/+2
| | | | | | * lisp/textmodes/css-mode.el (css--font-lock-keywords): Fix highlighting of selectors that contain double hyphens. They would be mistaken for a variable.
* ; Update some more Maintainer: header commentsGlenn Morris2017-06-051-1/+1
| | | | | ; This removes some people who are absent from commit logs or mailing ; lists for upwards of a decade.
* Support a new CSS indentation styleSimen Heggestøyl2017-06-031-1/+4
| | | | | | | | | * lisp/textmodes/css-mode.el (css-smie-rules): Indent after property immediately followed by a newline. * test/manual/indent/css-mode.css: Add test for the change above. * test/manual/indent/scss-mode.scss: Ditto.
* Don't autoload new dns-mode commandGlenn Morris2017-05-241-1/+0
| | | | | * lisp/textmodes/dns-mode.el (dns-mode-ipv6-to-nibbles): Remove autoload cookie.
* New dns-mode command for IPv6 address conversionPeder O. Klingenberg2017-05-231-1/+98
| | | | | | | | | | | This converts IPv6 addresses to a format suitable for reverse lookup zone files. (Bug#26820) * lisp/textmodes/dns-mode.el (dns-mode-map, dns-mode-menu): Add dns-mode-ipv6-to-nibbles. (dns-mode-ipv6-to-nibbles, dns-mode-reverse-and-expand-ipv6): New functions. * test/lisp/dns-mode-tests.el: New file. ; * etc/NEWS: Mention this.
* Fix mhtml-mode fontification bugTom Tromey2017-05-201-8/+10
| | | | | | | Bug#26922 * lisp/textmodes/mhtml-mode.el (mhtml-syntax-propertize): Call sgml-syntax-propertize-inside if not in a submode. * test/manual/indent/html-multi-4.html: New file.
* Expand docstring for CSS modeSimen Heggestøyl2017-05-181-2/+18
| | | | | * lisp/textmodes/css-mode.el (css-completion-at-point, css-mode): Expand docstrings.
* ; Spelling fixesPaul Eggert2017-05-061-1/+1
|
* Decruftify dns-mode.el a little bitGlenn Morris2017-05-051-8/+42
| | | | | | | | | | | * lisp/textmodes/dns-mode.el (dns-mode-control-entities): New constant. (dns-mode-control-entity, dns-mode-bad-control-entity) (dns-mode-type, dns-mode-class): New faces. (dns-mode-control-entity-face, dns-mode-bad-control-entity-face) (dns-mode-type-face, dns-mode-class): Make these variables use the new faces, and mark as obsolete. (dns-mode-font-lock-keywords): Use dns-mode-control-entities.
* Tweak dns-mode font-lockPeder O. Klingenberg2017-05-051-0/+1
| | | | | * lisp/textmodes/dns-mode.el (dns-mode-font-lock-keywords): Highlight $TTL as a control entity. (Bug#26780)
* Add color highlighting to css-modeTom Tromey2017-05-031-35/+382
| | | | | | | | | | | | | | | | | | | | | | | Bug#25525 * lisp/textmodes/css-mode.el (css--color-map): New constant. (css-value-class-alist): Use css--color-map. (css--number-regexp, css--percent-regexp) (css--number-or-percent-regexp, css--angle-regexp): New constants. (css--color-skip-blanks, css--rgb-color, css--hsl-color): New functions. (css--colors-regexp): New constant. (css--hex-color, css--named-color, css--compute-color) (css--contrasty-color, css--fontify-colors) (css--fontify-region): New functions. (css-mode): Set font-lock-fontify-region-function. (css-mode-syntax-table): Set syntax on more characters. (css-fontify-colors): New defcustom. (scss-mode-syntax-table): Define syntax for ?$ and ?%. * test/lisp/textmodes/css-mode-tests.el (css-test-property-values): Update. (css-test-rgb-parser, css-test-hsl-parser) (css-test-named-color): New tests. * etc/NEWS: Add entry.
* Don't lose key bindings on mis-spelled text in flyspell-modeEli Zaretskii2017-04-301-1/+6
| | | | | | | | | * lisp/textmodes/flyspell.el (flyspell-mouse-map): Bind mouse-2 explicitly. (make-flyspell-overlay): If the mis-spelled text already has a 'keymap' property, make that keymap the parent of flyspell-mouse-map, so as not to lose the parent's bindings. (Bug#26672)
* Don't pass the value of point to 'push-mark', as that's the default.Bartosz Duszel2017-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/bib-mode.el (mark-bib): * lisp/simple.el (mark-whole-buffer, yank): * lisp/ses.el (ses--advice-yank, ses-mark-row, ses-mark-column): * lisp/progmodes/xscheme.el (xscheme-yank): * lisp/progmodes/verilog-mode.el (verilog-mark-defun): * lisp/progmodes/perl-mode.el (perl-mark-function): * lisp/progmodes/pascal.el (pascal-mark-defun): * lisp/progmodes/meta-mode.el (meta-mark-defun): * lisp/progmodes/icon.el (mark-icon-function): * lisp/progmodes/cc-cmds.el (c-mark-function): * lisp/obsolete/vip.el (ex-goto): * lisp/obsolete/vi.el (vi-put-before): * lisp/mouse.el (mouse-yank-primary): * lisp/menu-bar.el (menu-bar-select-yank): * lisp/mail/sendmail.el (mail-yank-original): * lisp/hexl.el (hexl-beginning-of-buffer, hexl-end-of-buffer): * lisp/emulation/viper-cmd.el (viper-mark-beginning-of-buffer) (viper-mark-end-of-buffer): * lisp/cedet/semantic/senator.el (senator-mark-defun): * lisp/allout.el (allout-mark-topic): Remove unnecessary argument `(point)' from calls to `push-mark'. (Bug#25565)
* Avoid unnecessary loading of subr-x at run-timeGlenn Morris2017-04-181-1/+1
| | | | | | | | | | * lisp/doc-view.el, lisp/filenotify.el, lisp/info-look.el: * lisp/svg.el, lisp/emacs-lisp/byte-opt.el, lisp/net/shr.el: * lisp/textmodes/sgml-mode.el, test/lisp/dom-tests.el: No need to load subr-x at run-time. * lisp/gnus/nnheader.el: No need to load subr-x. ; * lisp/emacs-lisp/subr-x.el, lisp/gnus/message.el, lisp/net/nsm.el: ; Comments.
* 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.
* Fix highlighting of short selectors in CSS modeSimen Heggestøyl2017-04-161-1/+1
| | | | | | * lisp/textmodes/css-mode.el (css--font-lock-keywords): Highlight selectors where the part before a colon is only one character long, such as `a:hover'.
* Add grid layout module to CSS property listSimen Heggestøyl2017-04-131-3/+44
| | | | | | * lisp/textmodes/css-mode.el (css-property-alist) (css-value-class-alist): Add new properties and value classes from CSS Grid Layout Module.
* * lisp/textmodes/rst.el (rst-package-emacs-version-alist): Fixes.Glenn Morris2017-04-071-2/+2
|
* * lisp/textmodes/rst.el (rst-toc-link-keymap): Move before first use.Tom Tromey2017-04-071-6/+6
|
* ; Spelling and punctuation fixesPaul Eggert2017-04-061-1/+1
|
* add mhtml-mode.elTom Tromey2017-04-051-0/+390
| | | | | | | | * etc/NEWS: Update. * lisp/textmodes/mhtml-mode.el: New file. * test/manual/indent/html-multi.html: New file. * test/lisp/textmodes/mhtml-mode-tests.el: New file. * doc/emacs/text.texi (HTML Mode): Mention mhtml-mode.
* change sgml-mode to help multi-html modeTom Tromey2017-04-051-16/+31
| | | | | | | | * lisp/textmodes/sgml-mode.el (sgml-syntax-propertize-rules): New defconst. (sgml-syntax-propertize): Use it. (sgml--find-<>-backward): New function. (sgml-parse-tag-backward): Use it.
* Add one more CSS pseudo-classSimen Heggestøyl2017-03-291-3/+3
| | | | | * lisp/textmodes/css-mode.el (css-pseudo-class-ids): Add `focus-within'.
* Update list of CSS pseudo-classesSimen Heggestøyl2017-03-291-5/+7
| | | | | * lisp/textmodes/css-mode.el (css-pseudo-class-ids): Update list of pseudo-classes.
* 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)
* Fixups after merge from emacs-25Paul Eggert2017-03-191-1/+1
| | | | | | | * etc/NEWS: Remove stray entry. * etc/NEWS.25: Copy from Emacs emacs-25 etc/NEWS. * lisp/textmodes/rst.el (rst-package-emacs-version-alist): Make it nondecreasing.
* Merge from origin/emacs-25Paul Eggert2017-03-191-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | 5569e64 ; Spelling fixes 24a5f57 * lisp/net/eww.el (eww-tag-meta): Handle single quoted URLs (... 9b89896 * lisp/progmodes/sql.el (sql-product-alist): Doc tweak 69b50f5 * lisp/progmodes/sql.el (sql-product-alist): Doc fix. (Bug#2... 42eae54 Improve documentation of dabbrevs b0ade0d Clarify that easy-menu-add is a nop (Bug#25382) 3c69f2c * lisp/textmodes/rst.el (rst-package-emacs-version-alist): Fi... # Conflicts: # lisp/textmodes/rst.el
| * * lisp/textmodes/rst.el (rst-package-emacs-version-alist): Fix entry.Glenn Morris2017-01-111-1/+1
| |
| * Revert "Add DNS keywords and remove duplications"Eli Zaretskii2017-01-111-5/+2
| | | | | | | | This reverts commit 1cb9aa5b14867983d0013a61709b4d0af18364ff.