summaryrefslogtreecommitdiff
path: root/doc/emacs/display.texi
Commit message (Collapse)AuthorAgeFilesLines
* Add @kindex in manuals for existing keybindings on 'C-x x/w' (bug#13167)Juri Linkov2024-01-131-0/+1
| | | | | | | | | | | | | | * doc/emacs/buffers.texi (Misc Buffer): Add @kindex for 'C-x x r', 'C-x x u', 'C-x x i'. * doc/emacs/display.texi (Line Truncation): Add @kindex for 'C-x x t'. * doc/emacs/files.texi (Reverting): Add @kindex for 'C-x x g'. * doc/emacs/windows.texi (Change Window): Use new keybinding 'C-x w 0' instead of 'M-x delete-windows-on'. * doc/misc/info.texi (Create Info buffer): Add @kindex for 'C-x x n'.
* ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
|
* Mention "visual line" in user manualEli Zaretskii2023-11-231-3/+4
| | | | | | * doc/emacs/display.texi (Visual Line Mode): * doc/emacs/basic.texi (Continuation Lines, Moving Point): Mention "visual line". (Bug#67382)
* Doc fix; more consistently refer to "text terminals"Stefan Kangas2023-10-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the Emacs Lisp manual, we refer to "text terminals" and "graphical terminals" (see Info node `(elisp) Frames'). But in some places, including the user manual, the alternative terminology "non-window terminals" is used instead. In other places, we use the terminology "non-windowing display" instead of the more canonical "non-graphical display". This is less clear than it could be. Let's consolidate our terminology to prefer the wording from the Emacs Lisp manual; in other words, prefer "text" and "non-graphical" to "non-window". * doc/emacs/frames.texi (Non-Window Terminals): Rename node from this... (Text Terminals): ...to this. (Bug#66282) * doc/emacs/display.texi (Standard Faces): * doc/emacs/emacs.texi (Top): * doc/emacs/misc.texi (emacsclient Options): * doc/misc/viper.texi (Rudimentary Changes) (Packages that Change Keymaps): * doc/emacs/frames.texi (Frames, Frame Commands, Mouse Avoidance): Replace instances of "non-window terminals" with "text terminals". * doc/misc/ediff.texi (Quick Help Customization): (Window and Frame Configuration): * lisp/vc/ediff.el (ediff-windows-wordwise) (ediff-windows-linewise): Prefer saying 'non-graphical display' to 'non-windowing display'. * lisp/net/tramp.el (tramp-default-method): * lisp/printing.el (pr-find-command): Capitalize 'Windows' where it clearly refers to the non-free operating system with that name.
* ; Improve documentation of Isearch command propertiesEli Zaretskii2023-05-231-1/+4
| | | | | | | * doc/emacs/display.texi (Scrolling): * doc/emacs/search.texi (Not Exiting Isearch): Improve documentation and indexing of 'scroll-command', 'isearch-scroll', and 'isearch-move' properties.
* Fix typo in section 14.1 of Emacs ManualShynur2023-03-311-1/+1
| | | | | | * doc/emacs/display.texi (Scrolling): Fix typo. (Bug#62569) Copyright-paperwork-exempt: yes
* Explain effect of variable-pitch fonts on fill-columnEli Zaretskii2023-02-221-1/+5
| | | | | | | | | * doc/emacs/text.texi (Fill Commands): * doc/emacs/display.texi (Displaying Boundaries): * lisp/display-fill-column-indicator.el (display-fill-column-indicator-mode): Document caveats of using variable-pitch fonts with 'fill-column' and its indicator. (Bug#61677)
* Make highlighting more regular across TS modes (bug#61205)Dmitry Gutov2023-02-051-2/+2
| | | | | | | | | | | | | | | | | | | | | * doc/emacs/display.texi (Parser-based Font Lock): Update description of treesit-font-lock-level, moving 'property' to level 4. * lisp/treesit.el (treesit-font-lock-level): Likewise, in docstring. * lisp/progmodes/c-ts-mode.el (c-ts-base-mode): Do that here. * lisp/progmodes/cmake-ts-mode.el (cmake-ts-mode): Add a comment. * lisp/progmodes/go-ts-mode.el (go-ts-mode): Add 'definition' to level 1. Move 'function', 'property' and 'variable' to level 4. (go-ts-mode--font-lock-settings): Move a bunch of existing rules to 'definition'. Add highlighting of function parameters. * lisp/progmodes/rust-ts-mode.el (rust-ts-mode) (rust-ts-mode--font-lock-settings): Same. And also change "scoped identifiers" highlights to only match capitalized names.
* Document tree-sitter features in the user manualEli Zaretskii2023-01-291-20/+111
| | | | | | | | | | | | | | | * lisp/progmodes/c-ts-mode.el (c-ts-mode-map): Bind "C-c .", for consistency with CC mode. * lisp/treesit.el (treesit-font-lock-level): Doc fix. * doc/emacs/programs.texi (C Indent, Custom C Indent): Document the indentation features of 'c-ts-mode'. (Moving by Defuns): Document 'treesit-defun-tactic'. * doc/emacs/files.texi (Visiting): Document 'treesit-max-buffer-size'. * doc/emacs/display.texi (Traditional Font Lock) (Parser-based Font Lock): New subsections. * doc/emacs/emacs.texi (Top): Update top-level menu.
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-011-1/+1
|
* ; Improve markup of long key sequencesEli Zaretskii2022-12-281-2/+2
| | | | | * doc/emacs/display.texi (Text Scale): Avoid breaking key sequences between lines by using @w{..}.
* * doc/emacs/display.texi (Text Scale): Improve section about repeating keys.Juri Linkov2022-12-281-6/+6
| | | | | Mention that it's possible to use repeating keys without the modifiers and copy an example from etc/NEWS.
* ; Fix quoting of non-nil in texinfo sourcesStefan Kangas2022-10-271-1/+1
|
* ; * doc/emacs/display.texi (Icons): Improve indexing and wording.Eli Zaretskii2022-07-291-1/+2
|
* Add support for user-customizable iconsLars Ingebrigtsen2022-07-281-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/custom.texi (Specific Customization): Mention it. * doc/emacs/display.texi (Icons): New node. * doc/lispref/display.texi (Icons): New node. * lisp/button.el (buttonize): (button--properties, buttonize-region): Allow not overriding faces. * lisp/cus-edit.el (custom-save-all): Save icons. (custom-icon): New widget. (custom-icon-value-create, custom-toggle-hide-icon) (custom--icons-widget-value, custom-icon-set): Helper functions for the widget. (customize-icon): Main command. (custom-icon-state-set, custom-icon-state): Helper functions. (custom-theme-set-icons): Function to be used by theme writers. (custom-set-icons): Function to be used in .emacs. (custom-save-icons): New function. * lisp/custom.el (custom-push-theme): Add icons. * lisp/emacs-lisp/icons.el: New file. * test/lisp/emacs-lisp/icons-tests.el: Add some tests.
* ; Fix typos in the manualJuri Linkov2022-07-131-1/+1
|
* ; Minor fixes for 'global-text-scale-adjust'Eli Zaretskii2022-07-021-0/+1
| | | | | | | | | | * doc/emacs/display.texi (Text Scale): Improve indexing. * lisp/mwheel.el (mouse-wheel-global-text-scale): Doc fix. * lisp/face-remap.el (global-text-scale-adjust-resizes-frames): Fix a typo. (global-text-scale-adjust-limits): Doc fix. (Bug#48307)
* Command for global adjustments to the default faceGregory Heytings2022-07-021-0/+16
| | | | | | | | | | | | | | | | | * lisp/face-remap.el (global-text-scale-adjust): New command. (text-scale-adjust): Refer to the new related command. (global-text-scale-adjust-resizes-frames): New user option. * lisp/mwheel.el (mouse-wheel-scroll-amount): Add the new command to the mouse wheel scrolling events. (mouse-wheel-global-text-scale): New function. (mouse-wheel-mode): Use the new function with mouse-wheel-mode. * doc/emacs/display.texi (Text Scale): Document the new command and the new user option. * etc/NEWS: Mention the new command and its bindings, and the new user option.
* ; Fix recent change of documentation of face-remapEli Zaretskii2022-06-201-13/+19
| | | | | | * lisp/face-remap.el (text-scale-adjust): * doc/emacs/display.texi (Text Scale): Fix wording of recent changes to documentation.
* Update font scaling documentation to not talk about "face height"Stefan Kangas2022-06-201-19/+23
| | | | | | | | | | | | | | * lisp/play/gamegrid.el (gamegrid-init-buffer): * lisp/mwheel.el (mouse-wheel-scroll-amount): (mouse-wheel-text-scale): * lisp/faces.el (set-face-attribute): * lisp/face-remap.el (text-scale-mode-step): (text-scale-increase): (text-scale-adjust): * lisp/cus-face.el (custom-face-attributes): * doc/emacs/frames.texi (Mouse Commands): * doc/emacs/display.texi (Text Scale): Talk about font sized instead of "face height" (bug#46853).
* Add a new user option battery-update-functionsLars Ingebrigtsen2022-06-031-1/+3
| | | | | | | * doc/emacs/display.texi (Optional Mode Line): Document it. * lisp/battery.el (battery-update-functions): New user option (bug#55770). (battery-update): Use it.
* Merge from origin/emacs-28Stefan Kangas2022-05-271-1/+1
|\ | | | | | | | | 9283508fb2 Fix format specifiers in tramp-adb.el a9f17ccce3 ; Fix some doc typos and minor language issues
| * ; Fix some doc typos and minor language issuesŠtěpán Němec2022-05-261-1/+1
| |
* | Document \807 etc. in raw byte displayPaul Eggert2022-04-281-0/+11
| | | | | | | | | | * doc/emacs/display.texi (Display Custom): Mention potential confusion in raw byte display.
* | Add new minor mode word-wrap-whitespace-modeLars Ingebrigtsen2022-04-231-2/+12
| | | | | | | | | | * doc/emacs/display.texi (Visual Line Mode): Document it. * lisp/textmodes/word-wrap-mode.el: New minor mode.
* | ; Improve documentation of 'font-lock-ignore'Eli Zaretskii2022-04-021-0/+5
| | | | | | | | | | | | | | | | * etc/NEWS: * lisp/font-lock.el (font-lock-ignore): * doc/lispref/modes.texi (Customizing Keywords): Clarify the documentation of 'font-lock-ignore'. * doc/emacs/display.texi (Font Lock): Mention 'font-lock-ignore'.
* | Merge from origin/emacs-28Eli Zaretskii2022-01-011-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-011-1/+1
| |
* | Document some missing commands related to text scalingPo Lu2021-12-261-0/+14
| | | | | | | | | | * doc/emacs/display.texi (Text Scale): Document `text-scale-pinch' and `mouse-wheel-text-scale'.
* | Add new face `variable-pitch-text'Lars Ingebrigtsen2021-12-011-1/+18
| | | | | | | | | | | | | | | | | | | | * doc/emacs/display.texi (Standard Faces): Mention in. * lisp/faces.el (variable-pitch-text): New face. * lisp/gnus/gnus-art.el (gnus-header): Use it. * lisp/net/shr.el (shr-text): Use it.
* | Add a new minor mode `glyphless-display-mode'Lars Ingebrigtsen2021-12-011-0/+6
| | | | | | | | | | | | | | * 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).
* | Add an intermediary face for mode lines: `mode-line-active'Lars Ingebrigtsen2021-11-261-2/+22
|/ | | | | | | | | | | | | | | * doc/emacs/display.texi (Standard Faces): Document the new face. * lisp/faces.el (mode-line-active): New face. (mode-line): Don't inherit from vaiable-pitch. * src/xfaces.c (lookup_basic_face, realize_basic_faces) (syms_of_xfaces): * src/xdisp.c (window_box_height, window_text_pixel_size) (display_mode_lines, Fformat_mode_line): * src/dispextern.h (CURRENT_MODE_LINE_ACTIVE_FACE_ID_3) (CURRENT_MODE_LINE_ACTIVE_FACE_ID, enum face_id): Rename from *MODE_LINE_FACE_ID to *MODE_LINE_ACTIVE_FACE_ID.
* Document redisplay-skip-fontification-on-inputLars Ingebrigtsen2021-09-251-0/+8
| | | | | * doc/emacs/display.texi (Scrolling): Mention redisplay-skip-fontification-on-input.
* Improve documentation of line truncation and wrappingEli Zaretskii2021-09-041-0/+8
| | | | | | | | | | | | * doc/emacs/display.texi (Line Truncation, Visual Line Mode): * doc/lispref/display.texi (Truncation): Document that turning on line truncation disables wrapping, and vice versa. * src/buffer.c (syms_of_buffer) <truncate-lines>: * src/xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Warn against turning on when 'visual-line-mode' is in effect. * lisp/simple.el (visual-line-mode): Document that this mode disables line truncation. (Bug#29664)
* Merge from origin/emacs-27Glenn Morris2021-07-071-2/+2
|\ | | | | | | | | | | | | | | fbf1cb2bf2 (origin/emacs-27) Fix overfull hbox in Emacs manual fda60094a2 Minor copyedits of Emacs manual # Conflicts: # doc/emacs/display.texi
| * Fix overfull hbox in Emacs manualEli Zaretskii2021-07-061-2/+2
| | | | | | | | | | * doc/emacs/display.texi (Displaying Boundaries): Fix overfull hbox.
| * Update copyright year to 2021Paul Eggert2021-01-011-1/+1
| | | | | | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* | Minor copyedits in the Emacs user manualSebastian Urban2021-06-061-20/+20
| | | | | | | | | | | | | | | | | | | | * doc/emacs/fixit.texi (Spelling): Move TeX hyphenation directives from here... * doc/emacs/docstyle.texi: ...to here. * doc/emacs/display.texi (Displaying Boundaries, Text Display): Minor stylistic changes. (Bug#48654) Copyright-paperwork-exempt: yes
* | Improve some quotation quoting in the Emacs manualSebastian Urban2021-05-161-4/+4
| | | | | | | | | | | | | | | | | | | | * doc/emacs/text.texi (Quotation Marks, Quotation Marks): * doc/emacs/display.texi (Text Display): Fix some issues when quoting quote marks and the like (bug#35885). * doc/emacs/emacs.texi: Switch on double-sided printing headings. Copyright-paperwork-exempt: yes
* | Add command to recenter errors from Occur/Grep buffersTino Calancha2021-02-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To scroll up/down the current displayed occurrence/error without abandon the Occur/Grep buffer. Add also a command 'recenter-other-window' to recenter the other window from any kind of buffer. * lisp/window.el (recenter-other-window): New command. Bind recenter-other-window to S-M-C-l (Bug#46119). * lisp/simple.el (recenter-current-error): New command. * lisp/progmodes/grep.el (grep-mode-map): Delete bidings for n and p. * lisp/progmodes/compile.el (compilation-minor-mode-map): Move here the n and p bindings. Bind `recenter-current-error' to l. * lisp/replace.el (occur-mode-map): Same. * doc/emacs/windows.texi (Other Window): * doc/emacs/display.texi (Recentering): Document recenter-other-window. * etc/NEWS (Changes in Specialized Modes and Packages in Emacs 28.1): Announce the changes.
* | Add more commands to the new `C-x x' keymapLars Ingebrigtsen2021-02-071-7/+7
| | | | | | | | | | | | | | | | | | | | * doc/emacs/killing.texi (Accumulating Text): * doc/emacs/display.texi (Line Truncation): * doc/emacs/buffers.texi (Misc Buffer): Document it. * lisp/bindings.el (ctl-x-x-map): Add new bindings for rename-buffer, rename-uniquely, insert-buffer and toggle-truncate-lines.
* | Update copyright year to 2021Paul Eggert2021-01-011-1/+1
| | | | | | | | Run "TZ=UTC0 admin/update-copyright".
* | * src/xdisp.c (syms_of_xdisp) <"scroll-minibuffer-conservatively">: New varStefan Monnier2020-10-311-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Fix bug#44070, which causes the minibuffer display to jump upon minor edit (redisplay_window): Obey it. * lisp/simple.el (end-of-buffer): Obey it. * test/src/xdisp-tests.el (xdisp-tests--in-minibuffer): New macro, extracted from `xdisp-tests--minibuffer-resizing`. (xdisp-tests--minibuffer-resizing): Use it. (xdisp-tests--minibuffer-scroll): New test.
* | Use nobreak-space on all non-ASCII whitespace charactersNeil Roberts2020-10-301-1/+2
| | | | | | | | | | | | | | * doc/emacs/display.texi (Text Display): Document it. * src/xdisp.c (get_next_display_element): Use blankp to test whether to use the nobreak_space face (bug#44236).
* | Merge from origin/emacs-27Glenn Morris2020-10-271-24/+27
|\| | | | | | | | | | | | | | | | | | | | | e0de9f3295 (origin/emacs-27) Don't skip empty lines when fitting mini... a4ec03fa9b ; * etc/tutorials/TUTORIAL.de: Fix grammar (Bug#44246) 20c02e628c Improve documentation of display-fill-column-indicator e2005f1f2a * INSTALL: Mention efaq.texi for installation of intlfonts. 71661b2872 Use WebKit sandboxing # Conflicts: # etc/NEWS
| * Improve documentation of display-fill-column-indicatorEli Zaretskii2020-10-261-24/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/display-fill-column-indicator.el (display-fill-column-indicator-mode): Mention the globalized version in the doc string. * doc/emacs/display.texi (Displaying Boundaries): Improve and clarify the documentation of display-fill-column-indicator. Suggest using the minor mode as the primary means for turning the feature on. * src/xdisp.c (syms_of_xdisp) <display-fill-column-indicator> <display-fill-column-indicator-character>: Doc fix. (Bug#44226)
* | New command goto-line-relative (bug#5042, bug#9917)Juri Linkov2020-09-231-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/simple.el (goto-line-read-args): New function with code from goto-line. (goto-line): New arg RELATIVE. Also use 'widen-automatically' to leave all lines accessible in the narrowed buffer. (goto-line-relative): New command. * lisp/info.el (Info-mode-map): Remap 'goto-line' to 'goto-line-relative'. * doc/emacs/basic.texi (Moving Point): * doc/emacs/display.texi (Optional Mode Line): Mention goto-line-relative.
* | Minor fixes for last changeEli Zaretskii2020-08-231-13/+15
| | | | | | | | | | | | | | | | | | * lisp/international/kinsoku.el (kinsoku): Provide 'kinsoku'. * lisp/cus-start.el (standard): Use 'require' instead of 'load. * etc/NEWS: * doc/emacs/display.texi (Visual Line Mode): Improve wording and markup of last change.
* | Improve word wrapping for CJK charactersYuan Fu2020-08-231-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note about the change around line 9257 and 23372: Before, the test for whitespace checks for can_wrap_before and can_wrap_after simutaniously. Now we separate these two checks, and the logic needs to change a little bit. However, when we don't enable the new wrapping feature, 'can_wrap_after' is equivalent to 'IT_DISPLAYING_WHITESPACE' and 'can_wrap_before' is equivalent to '!IT_DISPLAYING_WHITESPACE'. And the new logic is equivalent with the old one in that case. Old logic: if (whitespace) /* Which means can wrap after && can't wrap before. */ may_wrap = true; else if (may_wrap) /* aka (!whitespace && may_wrap) (set wrap point) * aka (can't wrap after && can wrap before may_wrap = false * && may_wrap) */ New logic: if (can_wrap_after) next_may_wrap = true else next_may_wrap = false; if (may_wrap && can_wrap_before) (set wrap point) /* Update may_wrap. */ may_wrap = next_may_wrap; * src/xdisp.c (it_char_has_category, char_can_wrap_before) (char_can_wrap_after): New functions. (move_it_in_display_line_to, display_line): Replace calls to 'IT_DISPLAYING_WHITESPACE' with either 'char_can_wrap_before' or 'char_can_wrap_after'. (word-wrap-by-category): New variable. * lisp/cus-start.el (minibuffer-prompt-properties--setter): Add 'word-wrap-by-category' as a customizable variable. * doc/emacs/display.texi (Visual Line Mode): Add a paragraph about the new 'word-wrap-by-category' feature. * etc/NEWS: Announce the change.
* | Fix documentation of 'missing-newline-at-eof'Eli Zaretskii2020-08-071-1/+1
| | | | | | | | | | | | * doc/emacs/display.texi (Useless Whitespace): * etc/NEWS (missing-newline-at-eof): Improve wording and punctuation.