bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#45199: 28.0.50; [PATCH] Make goto-char offer the number at point as


From: Daniel Martín
Subject: bug#45199: 28.0.50; [PATCH] Make goto-char offer the number at point as default
Date: Sat, 12 Dec 2020 17:40:23 +0100

My use case (there may be many) comes from working with PDFs at a low
level.  If you open a PDF file in fundamental-mode, towards the end of
the file you'll see text that resembles the following:

xref
0 26
0000000000 65535 f 
0000006459 00000 n 

This is a table where the first column contains file offsets that point
to where the PDF objects are defined.  I wanted to place the point on
the "0000006459", do M-g c, and easily go to file offset 6459 to see the
definition of the PDF object number 1 ("1 0 obj").  goto-char is useful
here because PDF files are open as unibyte in Emacs.

If you also find the behavior generally useful, feel free to install it
for Emacs 28.

Thanks.

Attachment: 0001-Make-goto-char-offer-the-number-at-point-as-default.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]