all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Manuel Giraud <manuel@ledu-giraud.fr>, 72275-done@debbugs.gnu.org
Subject: bug#72275: 30.0.60; [PATCH] Fix jumping to page in DocView's text contents
Date: Thu, 25 Jul 2024 08:51:34 +0200	[thread overview]
Message-ID: <87ttgeufpl.fsf@gnu.org> (raw)
In-Reply-To: <875xsuhq3o.fsf@ledu-giraud.fr> (Manuel Giraud's message of "Wed,  24 Jul 2024 15:33:15 +0200")

Manuel Giraud <manuel@ledu-giraud.fr> writes:

> Poppler's "pdftotext" does not seem to enforce page delimiter at the
> first column.  For instance, I have documents translated with
> "pdftotext" that skips the first three page starting with "\f\f\f".
>
> In such case, using `page-delimiter' (which defaults to "^\f") to jump
> to the text contents page does not work as expected.  This patch fixes
> this issue.

Hm, it looks like that was wrong from the beginning when Lars added that
in commit c1c9af312ed3 in 2019.  page-delimiter never had a different
default value and pdftotext always used just ^L (FORM FEED)...

Looking at what other modes do, I've set page-delimiter buffer-locally
to the form feed character in the new text contents buffer now, i.e.,
it's only fixed on master which I think is ok given that nobody except
you found the issue in the last 5 years.

Bye,
  Tassilo





  reply	other threads:[~2024-07-25  6:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-24 13:33 bug#72275: 30.0.60; [PATCH] Fix jumping to page in DocView's text contents Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-25  6:51 ` Tassilo Horn [this message]
2024-07-25  7:50   ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ttgeufpl.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=72275-done@debbugs.gnu.org \
    --cc=manuel@ledu-giraud.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.