aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add biblatex alias entry types for compability with bibtexOlaf Trygve Berglihn2022-04-121-0/+23
| | | | | | | * lisp/textmodes/bibtex.el (bibtex-biblatex-entry-alist): Add biblatex alias entry types for compability with bibtex (bug#54877). Copyright-paperwork-exempt: yes
* Improve LaTeX symbol prettificationArash Esbati2022-03-171-14/+108
| | | | | * lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Support macros which used to be part of textcomp package.
* doctex-mode: Try and fix bug#35140Stefan Monnier2022-03-151-9/+4
| | | | | | | * lisp/textmodes/tex-mode.el (doctex-syntax-propertize-rules): Add support for the new ^^X and consider the first ^ of ^^A to be the closing char for the previous comment. (doctex-font-lock-^^A): Simplify accordingly.
* Tweak how bibtex-mark-entry places pointLars Ingebrigtsen2022-03-071-3/+3
| | | | | | * lisp/textmodes/bibtex.el (bibtex-mark-entry): Make `C-M-h' behave like in other modes (with point at the beginning of the region) (bug#4717).
* Don't throw errors while propertizing in sgml-modeLars Ingebrigtsen2022-02-281-5/+5
| | | | | * lisp/textmodes/sgml-mode.el (sgml-syntax-propertize): Don't throw an error when propertizing (bug#54195).
* Merge from origin/emacs-28Stefan Kangas2022-02-251-0/+3
|\ | | | | | | 5c77aed2d6 Mention flyspell-prog-mode in flyspell-mode doc string
| * Mention flyspell-prog-mode in flyspell-mode doc stringLars Ingebrigtsen2022-02-241-0/+3
| | | | | | | | | | * lisp/textmodes/flyspell.el (flyspell-mode): Mention flyspell-prog-mode (bug#54131).
* | Make 'ispell-change-dictionary' completion work betterLars Ingebrigtsen2022-02-211-5/+10
| | | | | | | | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell--aspell-found-dictionaries): New variable (bug#24050). (ispell-find-aspell-dictionaries): Save the list of actually identified dictionary. (ispell-valid-dictionary-list): Use it to filter out non-installed dictionaries.
* | Merge from origin/emacs-28Eli Zaretskii2022-02-181-18/+33
|\ \ | |/ | | | | | | | | 1e4b04c Improve documentation of filling and justification commands 9fd396e * lisp/progmodes/subword.el (superword-mode): Doc fix. (Bug#... e303cb1 Fix indexing of module functions that return complex types.
| * Improve documentation of filling and justification commandsEli Zaretskii2022-02-181-18/+33
| | | | | | | | | | | | | | | | | | | | * doc/lispref/text.texi (Filling): * lisp/textmodes/fill.el (fill-region-as-paragraph) (default-justification, set-justification, justify-current-line): Clarify "canonicalization" of spaces and the meaning of justification styles. (Bug#54047) (set-justification-left, set-justification-right) (set-justification-full): Improve wording of doc strings.
* | (with-demoted-errors): Warn on missing `format` argStefan Monnier2022-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `format` arg has been mandatory for a while, but the backward compatibility code that handled the case of a missing `format` arg made it hard to notice when using the old calling convention. * lisp/subr.el (with-demoted-errors): Warn on missing `format` arg. * lisp/emacs-lisp/smie.el (smie-indent--separator-outdent): Don't abuse `with-demoted-errors`. (smie-indent-line, smie-auto-fill): * test/lisp/emacs-lisp/ert-tests.el (ert-test-with-demoted-errors): * lisp/vc/vc-hooks.el (vc-refresh-state): * lisp/vc/vc-annotate.el (vc-annotate-background-mode): * lisp/vc/diff-mode.el (diff-syntax-fontify-hunk): * lisp/textmodes/reftex-toc.el (reftex-re-enlarge): * lisp/progmodes/sh-script.el (sh-smie-sh-rules): * lisp/progmodes/octave.el (inferior-octave-startup): * lisp/pcmpl-gnu.el (pcmpl-gnu-make-all-targets): * lisp/org/org-refile.el (org-refile): * lisp/org/org-capture.el (org-capture-store-last-position): * lisp/nxml/nxml-mode.el (nxml-mode): * lisp/notifications.el (notifications-notify): * lisp/gnus/mm-view.el (mm-display-inline-fontify): * lisp/finder.el (finder-unload-function): * lisp/files.el (safe-local-variable-p, backup-buffer-copy * lisp/autorevert.el (auto-revert-notify-handler): Pass `format` arg to `with-demoted-errors`.
* | Tweak href/superscript fix in tex-modeLars Ingebrigtsen2022-01-271-6/+3
| | | | | | | | | | * lisp/textmodes/tex-mode.el (tex-font-lock-keywords-1): Fix superscripts in href in a better way.
* | Merge from origin/emacs-28Stefan Kangas2022-01-271-14/+4
|\ \ | |/ | | | | | | | | | | | | c9524819ea Partially revert a fill-region-as-paragraph regression 6075ea0b79 Fix 'make_lispy_position' when there's an image at EOB # Conflicts: # test/lisp/textmodes/fill-tests.el
| * Partially revert a fill-region-as-paragraph regressionLars Ingebrigtsen2022-01-261-14/+4
| | | | | | | | | | | | * lisp/textmodes/fill.el (fill-region-as-paragraph): Revert e186af261 (bug#53537), because it leads to regressions. (But leave tests in place.)
* | Fix \href{a_b} in tex-modeLars Ingebrigtsen2022-01-241-0/+5
| | | | | | | | | | | | * lisp/textmodes/tex-mode.el (tex-font-lock-keywords-2): Fontify href parameters like constants so that _ aren't fontified like subscripts.
* | Revert "Fix tex-mode handling of _ chars in href{} commands"Lars Ingebrigtsen2022-01-241-11/+1
| | | | | | | | | | | | This reverts commit 487a0be7f7eb0ca9402247f13a11e39aa2946d05. This will be fixed a different way.
* | Fix tex-mode handling of _ chars in href{} commandsLars Ingebrigtsen2022-01-241-1/+11
| | | | | | | | | | | | * lisp/textmodes/tex-mode.el (tex--current-command): New function (bug#23102). (tex-font-lock-suscript): Don't subscript _ chars in href.
* | Put the old label into the future history in reftex-change-labelLars Ingebrigtsen2022-01-221-2/+2
| | | | | | | | | | | | * lisp/textmodes/reftex-global.el (reftex-change-label): Put the old label into the future history so that it can be edited easily (bug#53417).
* | Remove matching of whitespaces in LaTeX environment namesArash Esbati2022-01-201-4/+3
| | | | | | | | | | | | * lisp/textmodes/ispell.el (ispell-tex-skip-alists): Don't match arbitrary number of whitespaces in LaTeX environment names. (bug#53390)
* | * lisp/textmodes/paragraphs.el (repunctuate-sentences): Use filter variable.Juri Linkov2022-01-051-9/+13
| | | | | | | | | | | | | | | | | | (repunctuate-sentences-filter)<defun>: Reimplement without using match data. (repunctuate-sentences-filter)<defvar>: New variable. (repunctuate-sentences): Use new variable. Remove regexp group from spaces as was before. https://lists.gnu.org/archive/html/emacs-devel/2022-01/msg00395.html
* | ; Add 2022 to copyright years.Eli Zaretskii2022-01-012-2/+2
| |
* | Merge from origin/emacs-28Eli Zaretskii2022-01-0147-47/+47
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year. 86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year ebe8772f65 ; Minor fixes related to copyright years 23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye... 8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t. 19dcb237b5 ; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
| * ; Add 2022 to copyright years.Eli Zaretskii2022-01-0147-47/+47
| |
* | * lisp/textmodes/paragraphs.el (repunctuate-sentences-filter): New function.Juri Linkov2021-12-291-2/+16
| | | | | | | | | | (repunctuate-sentences): Use it on isearch-filter-predicate to skip unnecessary matches. (bug#52769)
* | * lisp/textmodes/sgml-mode.el (sgml-mode): Set skeleton-end-newline to nil.Juri Linkov2021-12-291-0/+1
| | | | | | | | | | | | Prevent skeleton.el from adding a newline to each inserted skeleton. Those which do want a newline do that explicitly in their define-skeleton form. This is what texinfo-mode does (bug#52864).
* | Fix bug#52467 by adding a new custom variable 'display-comint-buffer-action'Sam Steingold2021-12-281-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/window.el (display-comint-buffer-action): New `defcustom`, defaults to 'display-buffer-same-window' for backward compatibility. * lisp/cmuscheme.el (run-scheme, switch-to-scheme): Pass 'display-comint-buffer-action' to 'pop-to-buffer' instead of using 'pop-to-buffer-same-window'. * lisp/eshell/eshell.el (eshell): Likewise. * lisp/shell.el (shell): Likewise. * lisp/org/ol-eshell.el (org-eshell-open): Likewise. * lisp/progmodes/inf-lisp.el (inferior-lisp): Likewise. * lisp/progmodes/project.el (project-shell, project-eshell): Likewise. * lisp/textmodes/tex-mode.el (tex-display-shell, tex-compile-default) (tex-recenter-output-buffer): Pass 'display-comint-buffer-action' to 'pop-to-buffer'.
* | * lisp/textmodes/paragraphs.el (repunctuate-sentences): Region for NO-QUERY.Juri Linkov2021-12-281-2/+4
| | | | | | | | | | Use region boundaries also for the case when NO-QUERY arg is non-nil (bug#52769).
* | * lisp/textmodes/paragraphs.el (repunctuate-sentences): Support region.Juri Linkov2021-12-281-4/+8
| | | | | | | | | | Add optional args 'start' and 'end', and pass them as region boundaries to query-replace-regexp (bug#52769).
* | Make some variable aliases obsoleteStefan Kangas2021-12-204-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/make-mode.el (makefile-query-one-target-method): * lisp/skeleton.el (skeleton-transformation, skeleton-filter): * lisp/textmodes/artist.el (artist-text-renderer): * lisp/textmodes/bibtex.el (bibtex-autokey-name-case-convert): (bibtex-autokey-titleword-case-convert): * lisp/textmodes/ispell.el (ispell-format-word): * lisp/textmodes/sgml-mode.el (sgml-transformation): * lisp/vc/add-log.el (change-log-time-zone-rule): Make variable aliases obsolete.
* | Recognize starred environmentsArash Esbati2021-12-151-6/+10
| | | | | | | | | | * lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin): Add missing starred environments from sidecap and rotating packages.
* | Fix bibtex-biblatex-entry-alist sorting when using latexLars Ingebrigtsen2021-12-111-0/+18
| | | | | | | | | | | | * lisp/textmodes/bibtex.el (bibtex-biblatex-entry-alist): Sort PhdThesis and TechReport correctly when using the latex variant (bug#52354).
* | Convert etc-authors-mode-map to defvar-keymapStefan Kangas2021-12-081-6/+4
| | | | | | | | | | * lisp/textmodes/etc-authors-mode.el (etc-authors-mode-map): Convert to defvar-keymap.
* | ; * lisp/textmodes/texinfo.el: Remove stale comment.Stefan Kangas2021-12-081-1/+0
| | | | | | | | The referenced variable was removed two decades ago.
* | Fix pixel-fill--fill-line infloop for certain unbreakable linesLars Ingebrigtsen2021-12-041-10/+9
| | | | | | | | | | * lisp/textmodes/pixel-fill.el (pixel-fill--fill-line): Fix infloops for certain line widths (bug#52271).
* | Fix recent changes related to 'glyphless-display-mode'Eli Zaretskii2021-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/glyphless-mode.el (glyphless-mode-types): Fix spelling of "bidirectional". * lisp/international/characters.el (char-acronym-table): Fix acronyms for LRI and RLI: use their accepted shorthands. (glyphless-char-display-control): Fix spelling of doc string. * doc/lispref/display.texi (Glyphless Chars): Fix spelling and add a cross-reference.
* | Add a bidi-control target for `glyphless-char-display-control'Lars Ingebrigtsen2021-12-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/display.texi (Glyphless Chars): Document bidi-control. * lisp/international/characters.el (char-acronym-table): Add the ISOLATE characters. (update-glyphless-char-display): Implement bidi-control, and mark all Cf characters we don't know about as UNK. (glyphless--bidi-control-characters): New variable. (glyphless-char-display-control): Add a new type -- bidi-control. * lisp/textmodes/glyphless-mode.el (glyphless-mode-types): Add a new type -- bidi-control.
* | Fix table-fixed-width-mode when typing fastLars Ingebrigtsen2021-12-011-48/+54
| | | | | | | | | | * lisp/textmodes/table.el (table-with-cache-buffer): Use the value of table-fixed-width-mode in the correct buffer (bug#26701).
* | Fix fencepost error in pixel-fill--fill-lineLars Ingebrigtsen2021-12-011-4/+5
| | | | | | | | | | * lisp/textmodes/pixel-fill.el (pixel-fill--fill-line): Don't add a newline (and continuation) if we're at the end of the line.
* | Add a new minor mode `glyphless-display-mode'Lars Ingebrigtsen2021-12-011-0/+67
| | | | | | | | | | | | | | * doc/emacs/display.texi (Text Display): Mention it. * doc/lispref/display.texi (Glyphless Chars): Document it. * lisp/textmodes/glyphless-mode.el: New minor mode (bug#27544).
* | Make pixel-fill-region handle space regions betterLars Ingebrigtsen2021-12-011-4/+11
| | | | | | | | | | * lisp/textmodes/pixel-fill.el (pixel-fill-region): Preserve the face on the replacement spaces.
* | Preserve newlines at the end of pixel-fill-regionLars Ingebrigtsen2021-12-011-4/+12
| | | | | | | | | | * lisp/textmodes/pixel-fill.el (pixel-fill-region): Preserve newlines at the end.
* | Improve documentation of pixel-fillEli Zaretskii2021-11-301-2/+3
| | | | | | | | | | | | | | * doc/lispref/text.texi (Filling): Describe the arguments of 'pixel-fill-region'. Add index entry. * lisp/textmodes/pixel-fill.el (pixel-fill-region): Doc fix.
* | Document pixel-fill-regionLars Ingebrigtsen2021-11-301-0/+22
| | | | | | | | | | | | | | * doc/lispref/text.texi (Filling): Document pixel-fill-region. * lisp/textmodes/pixel-fill.el (pixel-fill-width): Add new helper function.
* | Add new package pixel-fill.elLars Ingebrigtsen2021-11-301-0/+202
| | | | | | | | | | | | | | | | | | | | * lisp/net/shr.el (shr-char-breakable-p, shr-char-nospace-p) (shr-char-kinsoku-bol-p, shr-char-kinsoku-eol-p) (shr-find-fill-point): Moved to pixel-fill.el and renamed. (shr-pixel-region): Made obsolete. (shr-fill-line): Use pixel-fill-region. * lisp/textmodes/pixel-fill.el: New package.
* | Make Re: recognition in ispell-message less ambiguousLars Ingebrigtsen2021-11-291-1/+1
| | | | | | | | | | * lisp/textmodes/ispell.el (ispell-message): Require a "Re" as a word, not as a word ending (bug#52104).
* | Make fill-region-as-paragraph clear the markers it createsIkumi Keita2021-11-291-1/+5
| | | | | | | | | | | | | | * lisp/textmodes/fill.el (fill-region-as-paragraph): Clear temporary markers (bug#52175). Copyright-paperwork-exempt: yes
* | * lisp/textmodes/flyspell.el: Pop up the menu under cursor from keyboard.Juri Linkov2021-11-221-11/+2
| | | | | | | | | | | | * lisp/textmodes/flyspell.el (flyspell-emacs-popup): Use popup-menu-normalize-position with point when no mouse is involved, instead of the incorrect use of mouse-position (bug#52025).
* | Use substitute-command-keys for literal key sequencesStefan Kangas2021-11-223-52/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/abbrev.el (expand-region-abbrevs): * lisp/calc/calc-graph.el (calc-graph-show-dumb): * lisp/calc/calc-help.el (calc-help-for-help): * lisp/calc/calc-mode.el (calc-auto-why): * lisp/calc/calc.el (calc-do): * lisp/calculator.el (calculator-mode): * lisp/dired-aux.el (dired-create-files) (dired-do-create-files-regexp, dired-create-files-non-directory): * lisp/dired-x.el (dired-virtual): * lisp/dired.el (dired-mark-region, dired-unmark-all-files): * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): * lisp/emacs-lisp/re-builder.el (reb-enter-subexp-mode): * lisp/epa-ks.el (epa-ks--display-keys): * lisp/erc/erc.el (erc-toggle-debug-irc-protocol): * lisp/files.el (save-some-buffers): * lisp/gnus/gnus-dired.el (gnus-dired-find-file-mailcap) (gnus-dired-print): * lisp/gnus/gnus-group.el (gnus-keep-same-level): * lisp/gnus/gnus-score.el (gnus-score-find-trace): * lisp/gnus/gnus.el (to-list): * lisp/gnus/message.el (message--send-mail-maybe-partially): * lisp/mail/supercite.el (sc-set-variable): * lisp/minibuffer.el (minibuffer-inactive-mode): * lisp/progmodes/etags.el (select-tags-table): * lisp/progmodes/idlw-shell.el (idlwave-shell-mode) (idlwave-shell-char-mode-loop): * lisp/replace.el (query-replace-help): * lisp/simple.el (set-variable): * lisp/subr.el (read-char-from-minibuffer): * lisp/textmodes/ispell.el (ispell-help, ispell-message): * lisp/textmodes/reftex-global.el (reftex-find-duplicate-labels): * lisp/textmodes/reftex-vars.el (reftex-toc-include-file-boundaries) (reftex-toc-include-labels, reftex-toc-include-index-entries) (reftex-toc-include-context, reftex-toc-follow-mode) (reftex-index-include-context, reftex-index-follow-mode) (reftex-enable-partial-scans) (reftex-auto-update-selection-buffers) (reftex-highlight-selection): * lisp/time.el (display-time-update): * lisp/vc/ediff-help.el (ediff-help-for-quick-help): * lisp/vc/ediff-init.el (ediff-keep-variants): * lisp/vc/ediff-ptch.el (ediff-fixup-patch-map) (ediff-patch-file-internal): * lisp/windmove.el (windmove-delete-default-keybindings): Use 'substitute-command-keys' for literal key sequences. * lisp/userlock.el (userlock--fontify-key): Remove function. (ask-user-about-lock, ask-user-about-lock-help) (ask-user-about-supersession-threat) (ask-user-about-supersession-help): Use 'substitute-command-keys' for literal key sequences. * lisp/ibuffer.el (ibuffer-unmark-all): Use 'substitute-command-keys' for command.
* | Merge from origin/emacs-28Stefan Kangas2021-11-191-1/+1
|\ \ | |/ | | | | | | | | | | | | | | 02853edba7 Fix sorting of menus in `context-menu-local' (bug#50067). 14271d050a Fix flyspell-correct-word selected from context menu opene... bf824843f4 * lisp/repeat.el (describe-repeat-maps): Print all bound k... 6fc94fb99e * lisp/tab-bar.el: Use 'mouse-1' for history buttons like ... 5eeaf85767 Improve documentation of window hooks 7404f4b4e0 Improve doc string of 'highlight-nonselected-windows'
| * Fix flyspell-correct-word selected from context menu opened with the keyboardJuri Linkov2021-11-181-1/+1
| | | | | | | | | | | | | | | | | | | | * lisp/mouse.el (context-menu-open): Call interactively a command returned by `context-menu-map' such as `flyspell-correct-word' (bug#50067). * lisp/textmodes/flyspell.el (flyspell-correct-word): Handle the case when it's called by a key bound to `context-menu-open'. Then it should work the same way as `C-c $' typed on misspelled word where the arg `event' of `flyspell-correct-word-before-point' is nil.