Gavin Smith <[email protected]> writes:
> On 2/4/19, Robert Pluim <[email protected]> wrote:
>> This reminded me I have a patch Iʼve been meaning to submit to
>> you. Thereʼs an addition to texinfo.el that Iʼm planning to submit to
>> emacs-27 that should probably be documented in texinfo. The doc change
>> currently looks like this:
>
> Please let us know when your feature has been accepted into Emacs.
Iʼve just committed it to emacs as 6ed9d0057d , it will appear in 27.1
when that is released.
The texinfo patch is below. I have a copyright assigment in place
for emacs, I can do one for texinfo as well (or place the change in
the public domain).
Index: doc/texinfo.texi
===================================================================
--- doc/texinfo.texi (revision 8006)
+++ doc/texinfo.texi (working copy)
@@ -21901,6 +21901,18 @@
Insert @code{@@noindent} and put the
cursor at the beginning of the next line.
+@item C-c C-c r
+@itemx M-x texinfo-insert-dwim-@@ref
+@findex texinfo-insert-dwim-@@ref
+This function and binding were added in Emacs 27.1
+Inserts one of @code{@@pxref@{@}}, @code{@@xref@{@}}, or
+@code{@@ref@{@}} based on the text around point; calling it near an
+unclosed preceding open parenthesis results in @code{@@pxref@{@}}, at
+the beginning of a sentence or at @code{(point-min)} yields
+@code{@@xref@{@}}, any other location (including inside a word), will
+result in @code{@@ref@{@}}. A numeric argument says how many words
+the braces should surround. Puts the cursor between the braces.
+
@item C-c C-c s
@itemx M-x texinfo-insert-@@samp
@findex texinfo-insert-@@samp