summaryrefslogtreecommitdiff
path: root/doc/emacs/display.texi
Commit message (Collapse)AuthorAge
* Fix typo in section 14.1 of Emacs ManualShynur2023-03-31
| | | | | | * doc/emacs/display.texi (Scrolling): Fix typo. (Bug#62569) Copyright-paperwork-exempt: yes
* Explain effect of variable-pitch fonts on fill-columnEli Zaretskii2023-02-22
| | | | | | | | | * 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-05
| | | | | | | | | | | | | | | | | | | | | * 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-29
| | | | | | | | | | | | | | | * 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-01
|
* ; Improve markup of long key sequencesEli Zaretskii2022-12-28
| | | | | * 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-28
| | | | | 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-27
|
* ; * doc/emacs/display.texi (Icons): Improve indexing and wording.Eli Zaretskii2022-07-29
|
* Add support for user-customizable iconsLars Ingebrigtsen2022-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-13
|
* ; Minor fixes for 'global-text-scale-adjust'Eli Zaretskii2022-07-02
| | | | | | | | | | * 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-02
| | | | | | | | | | | | | | | | | * 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-20
| | | | | | * 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-20
| | | | | | | | | | | | | | * 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-03
| | | | | | | * 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-27
|\ | | | | | | | | 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-26
| |
* | Document \807 etc. in raw byte displayPaul Eggert2022-04-28
| | | | | | | | | | * doc/emacs/display.texi (Display Custom): Mention potential confusion in raw byte display.
* | Add new minor mode word-wrap-whitespace-modeLars Ingebrigtsen2022-04-23
| | | | | | | | | | * 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-02
| | | | | | | | | | | | | | | | * 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-01
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-01
| |
* | Document some missing commands related to text scalingPo Lu2021-12-26
| | | | | | | | | | * doc/emacs/display.texi (Text Scale): Document `text-scale-pinch' and `mouse-wheel-text-scale'.
* | Add new face `variable-pitch-text'Lars Ingebrigtsen2021-12-01
| | | | | | | | | | | | | | | | | | | | * 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-01
| | | | | | | | | | | | | | * 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-26
|/ | | | | | | | | | | | | | | * 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-25
| | | | | * doc/emacs/display.texi (Scrolling): Mention redisplay-skip-fontification-on-input.
* Improve documentation of line truncation and wrappingEli Zaretskii2021-09-04
| | | | | | | | | | | | * 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-07
|\ | | | | | | | | | | | | | | 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-06
| | | | | | | | | | * doc/emacs/display.texi (Displaying Boundaries): Fix overfull hbox.
| * Update copyright year to 2021Paul Eggert2021-01-01
| | | | | | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* | Minor copyedits in the Emacs user manualSebastian Urban2021-06-06
| | | | | | | | | | | | | | | | | | | | * 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-16
| | | | | | | | | | | | | | | | | | | | * 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-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-07
| | | | | | | | | | | | | | | | | | | | * 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-01
| | | | | | | | Run "TZ=UTC0 admin/update-copyright".
* | * src/xdisp.c (syms_of_xdisp) <"scroll-minibuffer-conservatively">: New varStefan Monnier2020-10-31
| | | | | | | | | | | | | | | | | | | | | | | | 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-30
| | | | | | | | | | | | | | * 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-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-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-23
| | | | | | | | | | | | | | | | | | | | | | | | * 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-23
| | | | | | | | | | | | | | | | | | * 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-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-07
| | | | | | | | | | | | * doc/emacs/display.texi (Useless Whitespace): * etc/NEWS (missing-newline-at-eof): Improve wording and punctuation.
* | Make whitespace-mode highlight missing newlines at the end of buffersLars Ingebrigtsen2020-08-07
| | | | | | | | | | | | | | | | | | | | * lisp/whitespace.el (whitespace-missing-newline-at-eof): New face (bug#34952). (whitespace-report-region): Add a test for end-of-buffer-without-newline. (whitespace-color-on): Ditto. * doc/emacs/display.texi (Useless Whitespace): Document it.
* | Merge from origin/emacs-27Glenn Morris2020-07-20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cd93debc60 (origin/emacs-27) Merge branch 'emacs-27' of git.savannah.... 2c0c613ec5 Document prefix arg effects for 'epa-mail-{sign,encrypt}' 551123e0b2 * etc/NEWS: Correct description of :client-certificate change 05c4329cf5 Revert "Fix filename completion in shell mode buffers" de68572742 Improve documentation of 'bookmark-bmenu-mode' fd85e70be7 Update systems using GnuTLS certificate files 0d4ba1c2b2 Improve documentation of 'kill-emacs' b3bbd4fd00 Improve documentation of 'display-raw-bytes-as-hex' f50d79af6b Correct descriptions of init file e325d2638c Fix interrupt-process on MS-Windows d24e56a5e4 Revert "* doc/misc/flymake.texi (An annotated example back... # Conflicts: # etc/NEWS
| * Improve documentation of 'display-raw-bytes-as-hex'Eli Zaretskii2020-07-17
| | | | | | | | | | * doc/emacs/display.texi (Text Display): Mention 'display-raw-bytes-as-hex'. (Bug#42384)
* | Merge from origin/emacs-27Glenn Morris2020-06-26
|\| | | | | | | | | | | | | | | | | | | | | | | | | 5280e118c0 (origin/emacs-27) ; * src/xdisp.c (pos_visible_p): Fix las... bb1a9481c9 Fix posn-at-point at beginning of a display string 0c4b033670 Improve documentation of Info node movement commands 632b0119e1 Add Jansson dependency to Windows Build dbfcdab837 Unbreak 'reverse-region' c37de84845 Fix typos and markup in fill column indicator docs f61bff3ee9 ; * CONTRIBUTE: Clarify the preferences for patch formatting. 368e140660 Avoid crashes in 'defconst' 11e3413cff Fix text about Lisp archives in the Emacs FQ 4c81724675 Don't use 'cl' functions in ELisp manual's examples
| * Fix typos and markup in fill column indicator docsBasil L. Contovounesios2020-06-22
| | | | | | | | | | * doc/emacs/display.texi (Displaying Boundaries): Fix typos and Texinfo markup.