emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] emacs-26 f274cbd: Avoid reordering of output in 'shr-i


From: Eli Zaretskii
Subject: Re: [Emacs-diffs] emacs-26 f274cbd: Avoid reordering of output in 'shr-insert-document'
Date: Sat, 16 Dec 2017 18:04:16 +0200

> From: Stefan Monnier <address@hidden>
> Cc: Eli Zaretskii <address@hidden>
> Date: Sat, 16 Dec 2017 10:04:06 -0500
> 
> > +    ;; Save and restore point across with-temp-buffer, since
> > +    ;; shr-pixel-column uses save-window-excursion, which can reset
> > +    ;; point to 1.
> > +    (let ((pt (point)))
> > +      (with-temp-buffer
> > +        (insert string)
> > +        (shr-pixel-column))
> > +      (goto-char pt))))
> 
> Is it possible to fix the problem in shr-pixel-column (since, according
> to the comment above, the problems comes from there)?

No, because the value of point to preserve is from the buffer which
was current before with-temp-buffer.



reply via email to

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