comparison man/display.texi @ 90813:e6fdae9180d4

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 698-710) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 216) - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-196
author Miles Bader <miles@gnu.org>
date Tue, 24 Apr 2007 21:56:25 +0000
parents 4ef881a120fe 157beb6be4d8
children e9f94688a064
comparison
equal deleted inserted replaced
90812:6137cc8ddf90 90813:e6fdae9180d4
126 Some users like the full-screen scroll commands to keep point at the 126 Some users like the full-screen scroll commands to keep point at the
127 same screen line. To enable this behavior, set the variable 127 same screen line. To enable this behavior, set the variable
128 @code{scroll-preserve-screen-position} to a non-@code{nil} value. In 128 @code{scroll-preserve-screen-position} to a non-@code{nil} value. In
129 this mode, when these commands would scroll the text around point off 129 this mode, when these commands would scroll the text around point off
130 the screen, or within @code{scroll-margin} lines of the edge, they 130 the screen, or within @code{scroll-margin} lines of the edge, they
131 moves point to keep the same vertical position within the window. 131 move point to keep the same vertical position within the window.
132 This mode is convenient for browsing through a file by scrolling by 132 This mode is convenient for browsing through a file by scrolling by
133 screenfuls; if you come back to the screen where you started, point 133 screenfuls; if you come back to the screen where you started, point
134 goes back to the line where it started. However, this mode is 134 goes back to the line where it started. However, this mode is
135 inconvenient when you move to the next screen in order to move point 135 inconvenient when you move to the next screen in order to move point
136 to the text there. 136 to the text there.
330 color. Changing the colors of the @code{default} face also changes 330 color. Changing the colors of the @code{default} face also changes
331 the foreground and background colors on all frames, both existing and 331 the foreground and background colors on all frames, both existing and
332 those to be created in the future. (You can also set foreground and 332 those to be created in the future. (You can also set foreground and
333 background colors for the current frame only; see @ref{Frame 333 background colors for the current frame only; see @ref{Frame
334 Parameters}.) 334 Parameters}.)
335
336 If you want to alter the appearance of all Emacs frames, you need to
337 customize the frame parameters in the variable
338 @code{default-frame-alist}; see @ref{Creating Frames,
339 default-frame-alist}.
335 340
336 Emacs can correctly display variable-width fonts, but Emacs commands 341 Emacs can correctly display variable-width fonts, but Emacs commands
337 that calculate width and indentation do not know how to calculate 342 that calculate width and indentation do not know how to calculate
338 variable widths. This can sometimes lead to incorrect results when 343 variable widths. This can sometimes lead to incorrect results when
339 you use variable-width fonts. In particular, indentation commands can 344 you use variable-width fonts. In particular, indentation commands can
644 typically) to indicate which parts of the buffer were changed most 649 typically) to indicate which parts of the buffer were changed most
645 recently. 650 recently.
646 651
647 @cindex Hi Lock mode 652 @cindex Hi Lock mode
648 @findex hi-lock-mode 653 @findex hi-lock-mode
649 Hi Lock mode is another minor mode, which highlights text that 654 Hi Lock mode highlights text that matches regular expressions you
650 matches your specified regular expressions. For example, you might 655 specify. For example, you might wish to see all the references to a
651 wish to see all the references to a certain variable in a program 656 certain variable in a program source file, highlight certain parts in
652 source file, highlight certain parts in a voluminous output of some 657 a voluminous output of some program, or make certain names stand out
653 program, or make certain names stand out in an article. Use the 658 in an article. Use the @kbd{M-x hi-lock-mode} command to enable (or
654 @kbd{M-x hi-lock-mode} command to enable (or disable) Hi Lock mode. 659 disable) Hi Lock mode. To enable Hi Lock mode for all buffers, use
655 To enable Hi Lock mode for all buffers, use @kbd{M-x 660 @kbd{M-x global-hi-lock-mode} or place @code{(global-hi-lock-mode 1)}
656 global-hi-lock-mode} or place @code{(global-hi-lock-mode 1)} in your 661 in your @file{.emacs} file.
657 @file{.emacs} file.
658 662
659 Hi Lock mode works like Font Lock mode (@pxref{Font Lock}), except 663 Hi Lock mode works like Font Lock mode (@pxref{Font Lock}), except
660 that you specify explicitly the regular expressions to highlight. You 664 that you specify explicitly the regular expressions to highlight. You
661 control them with these commands: 665 control them with these commands:
662 666
704 Insert all the current highlighting regexp/face pairs into the buffer 708 Insert all the current highlighting regexp/face pairs into the buffer
705 at point, with comment delimiters to prevent them from changing your 709 at point, with comment delimiters to prevent them from changing your
706 program. (This key binding runs the 710 program. (This key binding runs the
707 @code{hi-lock-write-interactive-patterns} command.) 711 @code{hi-lock-write-interactive-patterns} command.)
708 712
709 These patterns will be read the next time you visit the file while 713 These patterns are extracted from the comments, if appropriate, if you
710 Hi Lock mode is enabled, or whenever you use the @kbd{M-x 714 invoke @kbd{M-x hi-lock-find-patterns}, or if you visit the file while
711 hi-lock-find-patterns} command. 715 Hi Lock mode is enabled (since that runs @code{hi-lock-find-patterns}).
712 716
713 @item C-x w i 717 @item C-x w i
714 @kindex C-x w i 718 @kindex C-x w i
715 @findex hi-lock-find-patterns 719 @findex hi-lock-find-patterns
720 Extract regexp/face pairs from comments in the current buffer
721 (@code{hi-lock-find-patterns}). Thus, you can enter patterns
722 interactively with @code{highlight-regexp}, store them into the file
723 with @code{hi-lock-write-interactive-patterns}, edit them (perhaps
724 including different faces for different parenthesized parts of the
725 match), and finally use this command (@code{hi-lock-find-patterns}) to
726 have Hi Lock highlight the edited patterns.
727
728 @vindex hi-lock-file-patterns-policy
729 The variable @code{hi-lock-file-patterns-policy} controls whether Hi
730 Lock mode should automatically extract and highlight patterns found in
731 a file when it is visited. Its value can be @code{nil} (never
732 highlight), @code{t} (highlight the patterns), @code{ask} (query the
733 user), or a function. If it is a function,
734 @code{hi-lock-find-patterns} calls it with the patterns as argument;
735 if the function returns non-@code{nil}, the patterns are used. The
736 default is @code{nil}. Note that patterns are always highlighted if
737 you call @code{hi-lock-find-patterns} directly, regardless of the
738 value of this variable.
739
716 @vindex hi-lock-exclude-modes 740 @vindex hi-lock-exclude-modes
717 Re-read regexp/face pairs in the current buffer 741 Also, @code{hi-lock-find-patterns} does nothing if the current major
718 (@code{hi-lock-write-interactive-patterns}). Users familiar with Font 742 mode's symbol is a member of the list @code{hi-lock-exclude-modes}.
719 Lock keywords might interactively enter patterns
720 (@code{highlight-regexp}), write them into the file
721 (@code{hi-lock-write-interactive-patterns}), edit them, perhaps
722 including different faces for different parenthesized parts of the
723 match, and finally use this command
724 (@code{hi-lock-write-interactive-patterns}) to have Hi Lock highlight
725 them.
726
727 This command does nothing if the current major mode's symbol is a member
728 of the list @code{hi-lock-exclude-modes}.
729 @end table 743 @end table
730 744
731 @node Fringes 745 @node Fringes
732 @section Window Fringes 746 @section Window Fringes
733 @cindex fringes 747 @cindex fringes