emacs-devel
[Top][All Lists]
Advanced

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

Re: Mysterious gzipped images


From: Eli Zaretskii
Subject: Re: Mysterious gzipped images
Date: Sat, 17 Aug 2013 18:27:21 +0300

> From: Lars Magne Ingebrigtsen <address@hidden>
> Date: Sat, 17 Aug 2013 17:01:09 +0200
> Cc: address@hidden
> 
> > Did you look at the source of switch-to-buffer?  This portion sounds
> > relevant:
> >
> >       (let* ((entry (assq buffer (window-prev-buffers)))
> >          (displayed (and (eq switch-to-buffer-preserve-window-point
> >                              'already-displayed)
> >                          (get-buffer-window buffer 0))))
> >     (set-window-buffer nil buffer)
> >     (when (and entry
> >                (or (eq switch-to-buffer-preserve-window-point t)
> >                    displayed))
> >       ;; Try to restore start and point of buffer in the selected
> >       ;; window (Bug#4041).
> >       (set-window-start (selected-window) (nth 1 entry) t)
> >       (set-window-point nil (nth 2 entry))))))
> 
> switch-to-buffer-preserve-window-point is a variable defined in `window.el'.
> Its value is nil

I couldn't have possibly known that.

> So point here was at the beginning of the buffer.  But switching to this
> buffer, which isn't displayed, puts point at the end of the buffer.

You may wish to step into url-retrieve and the functions it calls, and
see what happens there.



reply via email to

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