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

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

bug#34138: 27.0.50; Delayed display of PDF file images


From: Stephen Berman
Subject: bug#34138: 27.0.50; Delayed display of PDF file images
Date: Wed, 23 Jan 2019 18:22:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

On Wed, 23 Jan 2019 18:26:22 +0200 Eli Zaretskii <eliz@gnu.org> wrote:

>> From: Stephen Berman <stephen.berman@gmx.net>
>> Cc: politza@hochschule-trier.de,  rudalics@gmx.at,  34138@debbugs.gnu.org,  
>> tsdh@gnu.org
>> Date: Wed, 23 Jan 2019 15:31:54 +0100
>> 
>> I found that the following patch to pdf-view-goto-page eliminates the
>> display of raw PDF and the delay of the image display:
>> 
>> *** /home/steve/.emacs.d/elpa/pdf-tools-20181221.1913/pdf-view.el.orig       
>> 2019-01-21 15:56:08.033335212 +0100
>> --- /home/steve/.emacs.d/elpa/pdf-tools-20181221.1913/pdf-view.el    
>> 2019-01-23 14:54:52.381373638 +0100
>> ***************
>> *** 624,629 ****
>> --- 624,630 ----
>>           (pdf-view-deactivate-region)
>>           (force-mode-line-update)
>>           (run-hooks 'pdf-view-after-change-page-hook))))
>> +   (switch-to-buffer (current-buffer))
>>     nil)
>>   
>>   (defun pdf-view-next-page (&optional n)
>> 
>> I assume this is only a workaround.
>
> It's a workaround, yes.  I believe it works because switching a buffer
> causes a more thorough redisplay of the window showing that buffer,
> and so the fact that overlay changes in it are not noticed no longer
> gets in our way.

Sounds plausible.

Steve Berman





reply via email to

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