diff options
| author | Robert Pluim | 2019-02-05 20:38:39 +0100 |
|---|---|---|
| committer | Robert Pluim | 2019-02-06 18:59:01 +0100 |
| commit | 6ed9d0057d9a8ef1331049c55d5df3cc4e02c5f2 (patch) | |
| tree | 8c30af6678c85d2418c45240605ce99e2ea9a164 /etc | |
| parent | 7fd2ad755e7fa599697648ac4c971e834de75bf3 (diff) | |
| download | emacs-6ed9d0057d9a8ef1331049c55d5df3cc4e02c5f2.tar.gz emacs-6ed9d0057d9a8ef1331049c55d5df3cc4e02c5f2.zip | |
Add dwim function for inserting @ref variants
* lisp/textmodes/texinfo.el (texinfo-insert-dwim-@ref): New function.
Insert @ref variant based on surrounding context.
(texinfo-mode-map): Add binding for texinfo-insert-dwim-@ref.
* etc/NEWS: Describe new texinfo dwim reference functionality.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -466,6 +466,15 @@ To enable it, set the new defcustom 'diff-font-lock-prettify' to t. | |||
| 466 | of the file under version control if point is on an old changed line, | 466 | of the file under version control if point is on an old changed line, |
| 467 | or to the new revision of the file otherwise. | 467 | or to the new revision of the file otherwise. |
| 468 | 468 | ||
| 469 | ** Texinfo | ||
| 470 | |||
| 471 | +++ | ||
| 472 | *** New function for inserting @pxref, @xref, or @ref commands. | ||
| 473 | The function 'texinfo-insert-dwim-@ref', bound to 'C-c C-c r' by | ||
| 474 | default, inserts one of three types of references based on the text | ||
| 475 | surrounding point, namely @pxref near a parenthesis, @xref at the | ||
| 476 | start of a sentence or at (point-min), else @ref. | ||
| 477 | |||
| 469 | ** Browse-url | 478 | ** Browse-url |
| 470 | 479 | ||
| 471 | *** The function 'browse-url-emacs' can now visit a URL in selected window. | 480 | *** The function 'browse-url-emacs' can now visit a URL in selected window. |