aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRobert Pluim2019-02-05 20:38:39 +0100
committerRobert Pluim2019-02-06 18:59:01 +0100
commit6ed9d0057d9a8ef1331049c55d5df3cc4e02c5f2 (patch)
tree8c30af6678c85d2418c45240605ce99e2ea9a164 /etc
parent7fd2ad755e7fa599697648ac4c971e834de75bf3 (diff)
downloademacs-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/NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 72a6b385a82..406ed6e3788 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -466,6 +466,15 @@ To enable it, set the new defcustom 'diff-font-lock-prettify' to t.
466of the file under version control if point is on an old changed line, 466of the file under version control if point is on an old changed line,
467or to the new revision of the file otherwise. 467or to the new revision of the file otherwise.
468 468
469** Texinfo
470
471+++
472*** New function for inserting @pxref, @xref, or @ref commands.
473The function 'texinfo-insert-dwim-@ref', bound to 'C-c C-c r' by
474default, inserts one of three types of references based on the text
475surrounding point, namely @pxref near a parenthesis, @xref at the
476start 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.