diff options
| author | Juri Linkov | 2013-06-03 11:51:50 +0300 |
|---|---|---|
| committer | Juri Linkov | 2013-06-03 11:51:50 +0300 |
| commit | e5e4a94293d5a9a157557e53b4fea4e5d280673e (patch) | |
| tree | 2384760b1e0aae2ec3622021c6438463ed8fb0af /etc | |
| parent | 26b3353ad0200b6e3dae8bacbf61c7c069a26b2a (diff) | |
| download | emacs-e5e4a94293d5a9a157557e53b4fea4e5d280673e.tar.gz emacs-e5e4a94293d5a9a157557e53b4fea4e5d280673e.zip | |
Search and highlight symbol at point.
* doc/emacs/display.texi (Highlight Interactively): Add global keybindings
with the key prefix `M-s h'. Document old command `highlight-phrase'.
Document new command `highlight-symbol-at-point'.
* lisp/bindings.el (search-map): Bind `highlight-symbol-at-point' to
`M-s h .'.
* lisp/hi-lock.el (highlight-symbol-at-point): New alias for the new
command `hi-lock-face-symbol-at-point'.
(hi-lock-face-symbol-at-point): New command.
(hi-lock-map): Bind `highlight-symbol-at-point' to `C-x w .'.
(hi-lock-menu): Add `highlight-symbol-at-point'.
(hi-lock-mode): Doc fix.
* lisp/isearch.el (isearch-forward-symbol-at-point): New command.
(search-map): Bind `isearch-forward-symbol-at-point' to `M-s .'.
(isearch-highlight-regexp): Add a regexp which matches
words/symbols for word/symbol mode.
* lisp/subr.el (find-tag-default-bounds): New function with the body
mostly moved from `find-tag-default'.
(find-tag-default): Move most code to `find-tag-default-bounds',
call it and apply `buffer-substring-no-properties' afterwards.
Fixes: debbugs:14427
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 14 |
1 files changed, 14 insertions, 0 deletions
| @@ -260,8 +260,22 @@ callers to fit the image to a frame other than the selected frame. | |||
| 260 | entries displayed by `Info-index-next', `Info-virtual-index' and | 260 | entries displayed by `Info-index-next', `Info-virtual-index' and |
| 261 | `info-apropos'. | 261 | `info-apropos'. |
| 262 | 262 | ||
| 263 | ** Hi-Lock | ||
| 264 | |||
| 265 | *** New option `hi-lock-auto-select-face'. When non-nil, hi-lock commands | ||
| 266 | will cycle through faces in `hi-lock-face-defaults' without prompting. | ||
| 267 | |||
| 268 | +++ | ||
| 269 | *** New global command `M-s h .' (`highlight-symbol-at-point') | ||
| 270 | highlights the symbol found near point without prompting, | ||
| 271 | using the next face automatically. | ||
| 272 | |||
| 263 | ** Search and Replace | 273 | ** Search and Replace |
| 264 | 274 | ||
| 275 | *** New global command `M-s .' (`isearch-forward-symbol-at-point') | ||
| 276 | starts a symbol (identifier) incremental search forward with the | ||
| 277 | symbol found near point added to the search string initially. | ||
| 278 | |||
| 265 | *** `C-x 8 RET' in Isearch mode reads a character by its Unicode name | 279 | *** `C-x 8 RET' in Isearch mode reads a character by its Unicode name |
| 266 | and adds it to the search string. | 280 | and adds it to the search string. |
| 267 | 281 | ||