Subject: bug#16541: 23.3; doc-view-open-text should grab place in current doc

From: Tassilo Horn <[email-masked]>
Date: Thu, 03 Oct 2019 11:05:03 +0200

Lars Ingebrigtsen <[email-masked]> writes:

>> Suhail is correct.  We could easily make C-c C-t switch to the current
>> page using this patch:
>
> [...]
>
>> -	      (setq default-directory dir)))
>> -	(doc-view-doc->txt txt 'doc-view-open-text)))))
>> +		(setq default-directory dir)
>> +		;; Jump to the current page
>> +		(goto-char (point-min))
>> +		(search-forward "
>>                                  " nil t (1- page))))
>> +	  (doc-view-doc->txt txt 'doc-view-open-text))))))
>>
>>  ;;;;; Toggle between editing and viewing
>>
>> Should I install it?
>
> This makes sense to me, but it was never installed.  Did anybody have
> an objection, or was it just forgotten?

I think it hasn't been too important to anybody so it has just been
forgotten.  Feel free to install it, though.

Bye,
Tassilo