summaryrefslogtreecommitdiff
path: root/lisp/textmodes
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* | Remove some references to XEmacsStefan Kangas2021-11-171-2/+0
| | | | | | | | | | | | | | | | | | * lisp/emulation/viper-cmd.el (viper-start-R-mode): * lisp/emulation/viper-init.el (viper-window-display-p): * lisp/emulation/viper-mous.el (viper-surrounding-word): * lisp/mail/footnote.el (footnote-mode): * lisp/textmodes/reftex-index.el: Remove some comments referring to XEmacs.
* | Make html-mode--html-yank-handler more resilientLars Ingebrigtsen2021-11-081-1/+2
| | | | | | | | | | * lisp/textmodes/sgml-mode.el (html-mode--html-yank-handler): The HTML may not be valid, so suppress errors.
* | Rename 'register-yank-media-handler'Lars Ingebrigtsen2021-11-081-2/+2
| | | | | | | | | | | | | | | | | | * lisp/textmodes/sgml-mode.el (html-mode): * lisp/gnus/message.el (message-mode): * doc/lispref/frames.texi (Yanking Media): Adjust. * lisp/yank-media.el (yank-media): Adjust doc string. (yank-media-handler): Rename from `register-' because that may cause confusion with register.el functions.
* | Allow 'C-x n d' to work in texinfo-modeLars Ingebrigtsen2021-11-071-0/+16
| | | | | | | | | | | | | | * lisp/textmodes/texinfo.el (texinfo-mode): Set beginning/end-of-defun functions to allow narrowing to the current node. (texinfo--beginning-of-defun, texinfo--end-of-defun): New functions.
* | Make paragraph/filling functions in texinfo-mode work betterLars Ingebrigtsen2021-11-071-3/+39
| | | | | | | | | | | | | | | | | | * lisp/textmodes/texinfo.el (texinfo-mode): Make paragraph definitions more traditional. This makes (forward-paragraph 1) behave better. (texinfo-mode): Set a new filling function. (texinfo--fill-paragraph): New filling function. (texinfo-fillable-commands): New variable (bug#49558).
* | Fix html-mode--image-yank-handler promptingLars Ingebrigtsen2021-11-071-4/+4
| | | | | | | | | | * lisp/textmodes/sgml-mode.el (html-mode--image-yank-handler): Fix two format statements and rearrange images.
* | Allow yanking images to html-modeLars Ingebrigtsen2021-11-071-0/+19
| | | | | | | | | | | | | | * lisp/net/mailcap.el (mailcap-mime-type-to-extension): Autoload. * lisp/textmodes/sgml-mode.el (html-mode--image-yank-handler): New function. (html-mode): Accept image/*.
* | Support yank-media in html-modeLars Ingebrigtsen2021-11-061-0/+6
| | | | | | | | | | | | * lisp/textmodes/sgml-mode.el (html-mode--html-yank-handler): New function. (html-mode): Handle text/html.
* | Merge from origin/emacs-28Eli Zaretskii2021-10-301-2/+2
|\| | | | | | | | | 20ebd91a73 Improve documentation of string truncation APIs 3f998a3fc8 * lisp/textmodes/css-mode.el: Fix typo. (Bug#51488)
| * * lisp/textmodes/css-mode.el: Fix typo. (Bug#51488)Imran Khan2021-10-291-2/+2
| | | | | | | | Copyright-paperwork-exempt: yes
* | Merge from origin/emacs-28Glenn Morris2021-10-291-2/+2
|\| | | | | | | | | | | | | | | | | 7e2b973d60 * lisp/textmodes/text-mode.el (text-mode-context-menu): Re... da6d889e90 ; * etc/NEWS: Use active voice for 'repeat-mode', etc. e3171e7e86 Allow automatic use of color fonts for emoji on macOS # Conflicts: # etc/NEWS
| * * lisp/textmodes/text-mode.el (text-mode-context-menu): Rename recently added.Juri Linkov2021-10-271-2/+2
| |
* | Tweak how auto-fill fills after a periodLars Ingebrigtsen2021-10-111-6/+2
| | | | | | | | | | * lisp/textmodes/fill.el (fill-nobreak-p): Don't break immediately after a space after a period (bug#17321).
* | Merge from origin/emacs-28Glenn Morris2021-10-081-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | af01b674ce (origin/emacs-28) ; Fix spacing in previous commit 915e044d60 Use the correct label in the warning 6e83a4100a ; * admin/make-tarball.txt: Should configure --with-native... 525602d682 ; * etc/TODO (display): Add entry about Default_Ignorables. 65de510c16 ; Fix 'restore-buffer-modified-p' doc string typo 9d8202b45e Add Emacs 27 compatibility hack 89d64fca75 Pacify GCC 10.3 -Wmaybe-uninitialized bb8ef1aa30 * lisp/tab-bar.el (tab-detach, tab-window-detach): New ali... 7ae70054aa ; * src/composite.h (LGSTRING_FONT): Add comment about its... 1af00e67d6 Include the refcards in the release tarball 3c29fb705c ; * src/Makefile.in (../native-lisp): Make the long recipe...
| * ; Fix spacing in previous commitTassilo Horn2021-10-081-1/+1
| |
| * Use the correct label in the warningArash Esbati2021-10-081-2/+2
| | | | | | | | | | | | * lisp/textmodes/reftex-toc.el (reftex-toc-rename-label): Add missing space in the prompt. Use the new user defined label in the warning (bug#36235).
* | Improve finding external documents in reftextArash Esbati2021-10-061-1/+11
| | | | | | | | | | | | | | * lisp/textmodes/reftex-parse.el (reftex-parse-from-file): Extend regexp in order to support \externalcitedocument macro and a second optional argument provided by LaTeX package xr-hyper (bug#51054).
* | Merge from origin/emacs-28Glenn Morris2021-10-053-4/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 63abe976ce (origin/emacs-28) Document minibuffer-default-prompt-forma... b5afbedc90 Backward compatibility option for 'nobreak-char-display' ea1b728a06 ; * lisp/dired.el: Fix typo. 984eafeb98 Unbreak the build after Gnulib update 5946370cd1 Check, whether an FUSE mount has been broken in Tramp 90575a6c0c Disable 'nobreak-char-display' in Eldoc buffers 570e2c9a17 Fix small error in comint-send-input fd7bb31412 Update documentation of search-whitespace-regexp 1f4ced47a1 Fix cc-compat.el syntax error b431f54c1b Mention `seq-uniq' in `delete-dups' documentation 0a7bab689c ; Minor stylistic fixes found by checkdoc e2861e2d08 ; * etc/NEWS: Fix typo. 1a65d49931 Port recent Gnulib changes to MS-Windows 68a256c892 Update from Gnulib 63cb65dcce * Fix mh tests for native comp builds (bug#50975) e606cc6f40 * Fix `batch-native-compile' not to spawn a subprocess 894dfe70da Fix native-compilation build from tarball on Cygwin 2ce5e08058 Remove U+FE0F from script-representative-chars # Conflicts: # etc/NEWS
| * ; Minor stylistic fixes found by checkdocStefan Kangas2021-10-053-4/+4
| |