diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/emacs/display.texi | 48 |
2 files changed, 46 insertions, 8 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index b1f9fb2a40d..f0b89a15fcc 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-06-03 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * display.texi (Highlight Interactively): Add global keybindings | ||
| 4 | with the key prefix `M-s h'. Document old command `highlight-phrase'. | ||
| 5 | Document new command `highlight-symbol-at-point'. | ||
| 6 | |||
| 1 | 2013-06-01 Glenn Morris <rgm@gnu.org> | 7 | 2013-06-01 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * programs.texi (Semantic): Fix typo. | 9 | * programs.texi (Semantic): Fix typo. |
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi index f5ec8946e1b..482d7e7741a 100644 --- a/doc/emacs/display.texi +++ b/doc/emacs/display.texi | |||
| @@ -903,14 +903,16 @@ that you specify explicitly the regular expressions to highlight. You | |||
| 903 | control them with these commands: | 903 | control them with these commands: |
| 904 | 904 | ||
| 905 | @table @kbd | 905 | @table @kbd |
| 906 | @item C-x w h @var{regexp} @key{RET} @var{face} @key{RET} | 906 | @item M-s h r @var{regexp} @key{RET} @var{face} @key{RET} |
| 907 | @itemx C-x w h @var{regexp} @key{RET} @var{face} @key{RET} | ||
| 908 | @kindex M-s h r | ||
| 907 | @kindex C-x w h | 909 | @kindex C-x w h |
| 908 | @findex highlight-regexp | 910 | @findex highlight-regexp |
| 909 | Highlight text that matches @var{regexp} using face @var{face} | 911 | Highlight text that matches @var{regexp} using face @var{face} |
| 910 | (@code{highlight-regexp}). The highlighting will remain as long as | 912 | (@code{highlight-regexp}). The highlighting will remain as long as |
| 911 | the buffer is loaded. For example, to highlight all occurrences of | 913 | the buffer is loaded. For example, to highlight all occurrences of |
| 912 | the word ``whim'' using the default face (a yellow background) | 914 | the word ``whim'' using the default face (a yellow background) |
| 913 | @kbd{C-x w h whim @key{RET} @key{RET}}. Any face can be used for | 915 | @kbd{M-s h r whim @key{RET} @key{RET}}. Any face can be used for |
| 914 | highlighting, Hi Lock provides several of its own and these are | 916 | highlighting, Hi Lock provides several of its own and these are |
| 915 | pre-loaded into a list of default values. While being prompted | 917 | pre-loaded into a list of default values. While being prompted |
| 916 | for a face use @kbd{M-n} and @kbd{M-p} to cycle through them. | 918 | for a face use @kbd{M-n} and @kbd{M-p} to cycle through them. |
| @@ -918,7 +920,9 @@ for a face use @kbd{M-n} and @kbd{M-p} to cycle through them. | |||
| 918 | You can use this command multiple times, specifying various regular | 920 | You can use this command multiple times, specifying various regular |
| 919 | expressions to highlight in different ways. | 921 | expressions to highlight in different ways. |
| 920 | 922 | ||
| 921 | @item C-x w r @var{regexp} @key{RET} | 923 | @item M-s h u @var{regexp} @key{RET} |
| 924 | @itemx C-x w r @var{regexp} @key{RET} | ||
| 925 | @kindex M-s h u | ||
| 922 | @kindex C-x w r | 926 | @kindex C-x w r |
| 923 | @findex unhighlight-regexp | 927 | @findex unhighlight-regexp |
| 924 | Unhighlight @var{regexp} (@code{unhighlight-regexp}). | 928 | Unhighlight @var{regexp} (@code{unhighlight-regexp}). |
| @@ -926,13 +930,15 @@ Unhighlight @var{regexp} (@code{unhighlight-regexp}). | |||
| 926 | If you invoke this from the menu, you select the expression to | 930 | If you invoke this from the menu, you select the expression to |
| 927 | unhighlight from a list. If you invoke this from the keyboard, you | 931 | unhighlight from a list. If you invoke this from the keyboard, you |
| 928 | use the minibuffer. It will show the most recently added regular | 932 | use the minibuffer. It will show the most recently added regular |
| 929 | expression; use @kbd{M-p} to show the next older expression and | 933 | expression; use @kbd{M-n} to show the next older expression and |
| 930 | @kbd{M-n} to select the next newer expression. (You can also type the | 934 | @kbd{M-p} to select the next newer expression. (You can also type the |
| 931 | expression by hand, with completion.) When the expression you want to | 935 | expression by hand, with completion.) When the expression you want to |
| 932 | unhighlight appears in the minibuffer, press @kbd{@key{RET}} to exit | 936 | unhighlight appears in the minibuffer, press @kbd{@key{RET}} to exit |
| 933 | the minibuffer and unhighlight it. | 937 | the minibuffer and unhighlight it. |
| 934 | 938 | ||
| 935 | @item C-x w l @var{regexp} @key{RET} @var{face} @key{RET} | 939 | @item M-s h l @var{regexp} @key{RET} @var{face} @key{RET} |
| 940 | @itemx C-x w l @var{regexp} @key{RET} @var{face} @key{RET} | ||
| 941 | @kindex M-s h l | ||
| 936 | @kindex C-x w l | 942 | @kindex C-x w l |
| 937 | @findex highlight-lines-matching-regexp | 943 | @findex highlight-lines-matching-regexp |
| 938 | @cindex lines, highlighting | 944 | @cindex lines, highlighting |
| @@ -940,7 +946,31 @@ the minibuffer and unhighlight it. | |||
| 940 | Highlight entire lines containing a match for @var{regexp}, using face | 946 | Highlight entire lines containing a match for @var{regexp}, using face |
| 941 | @var{face} (@code{highlight-lines-matching-regexp}). | 947 | @var{face} (@code{highlight-lines-matching-regexp}). |
| 942 | 948 | ||
| 943 | @item C-x w b | 949 | @item M-s h p @var{phrase} @key{RET} @var{face} @key{RET} |
| 950 | @itemx C-x w p @var{phrase} @key{RET} @var{face} @key{RET} | ||
| 951 | @kindex M-s h p | ||
| 952 | @kindex C-x w p | ||
| 953 | @findex highlight-phrase | ||
| 954 | @cindex phrase, highlighting | ||
| 955 | @cindex highlighting phrase | ||
| 956 | Highlight matches of @var{phrase}, using face @var{face} | ||
| 957 | (@code{highlight-phrase}). @var{phrase} can be any regexp, | ||
| 958 | but spaces will be replaced by matches to whitespace and | ||
| 959 | initial lower-case letters will become case insensitive. | ||
| 960 | |||
| 961 | @item M-s h . | ||
| 962 | @itemx C-x w . | ||
| 963 | @kindex M-s h . | ||
| 964 | @kindex C-x w . | ||
| 965 | @findex highlight-symbol-at-point | ||
| 966 | @cindex symbol, highlighting | ||
| 967 | @cindex highlighting symbol at point | ||
| 968 | Highlight the symbol found near point without prompting, using the next | ||
| 969 | available face automatically (@code{highlight-symbol-at-point}). | ||
| 970 | |||
| 971 | @item M-s h w | ||
| 972 | @itemx C-x w b | ||
| 973 | @kindex M-s h w | ||
| 944 | @kindex C-x w b | 974 | @kindex C-x w b |
| 945 | @findex hi-lock-write-interactive-patterns | 975 | @findex hi-lock-write-interactive-patterns |
| 946 | Insert all the current highlighting regexp/face pairs into the buffer | 976 | Insert all the current highlighting regexp/face pairs into the buffer |
| @@ -952,7 +982,9 @@ These patterns are extracted from the comments, if appropriate, if you | |||
| 952 | invoke @kbd{M-x hi-lock-find-patterns}, or if you visit the file while | 982 | invoke @kbd{M-x hi-lock-find-patterns}, or if you visit the file while |
| 953 | Hi Lock mode is enabled (since that runs @code{hi-lock-find-patterns}). | 983 | Hi Lock mode is enabled (since that runs @code{hi-lock-find-patterns}). |
| 954 | 984 | ||
| 955 | @item C-x w i | 985 | @item M-s h f |
| 986 | @itemx C-x w i | ||
| 987 | @kindex M-s h f | ||
| 956 | @kindex C-x w i | 988 | @kindex C-x w i |
| 957 | @findex hi-lock-find-patterns | 989 | @findex hi-lock-find-patterns |
| 958 | Extract regexp/face pairs from comments in the current buffer | 990 | Extract regexp/face pairs from comments in the current buffer |