From: Ian D <dunni@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Doc View Page Problems
Date: Wed, 16 Apr 2014 09:06:01 -0400 [thread overview]
Message-ID: <8738hdh1ae.fsf@gnu.org> (raw)
In-Reply-To: <jwvvbuamtbh.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 15 Apr 2014 12:51:34 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> P.S. I apologize if the bug mailing list would have been the
>> appropriate mailing list to which to send this.
>
>It would have worked as well, maybe even better.
>
Noted. I will remember that for next time.
> Could you provide a ChangeLog entry for that change? Are we sure
> (image-mode-window-get 'page t) can't return nil?
>
I put the ChangeLog entry at the end of this email. The first
thing that DocView does when it opens a file is adds the default
configuration to image-mode-winprop-alist. image-mode won't
remove it, since the key is `t'. That means that
(image-mode-window-get 'page t) will always return something,
unless the user has specifically removed it.
>> (setf (doc-view-current-page) page
>> + (image-mode-window-get 'page t) page ;; Update the default page.
>
> Wouldn't it be better to do that directly inside image-mode-window-put?
>
>
> Stefan
>
I used `image-mode-window-get' because that was what was being
used through most of the document (including the line above
it). It could just as easily be (image-mode-window-put 'page
page t).
Ian D
ChangeLog entry:
2014-04-16 Ian Dunn <dunni@gnu.org>
* doc-view.el (doc-view-new-window-function): If no window
exists, move to the last known page.
(doc-view-goto-page): Updates the page of the default window
configuration.
next prev parent reply other threads:[~2014-04-16 13:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-15 13:24 Doc View Page Problems Ian D
2014-04-15 16:51 ` Stefan Monnier
2014-04-16 13:06 ` Ian D [this message]
2014-04-16 14:18 ` Stefan Monnier
2014-04-16 16:01 ` Ian D
2014-04-16 18:09 ` Stefan Monnier
2014-04-16 19:27 ` Ian D
2014-04-17 3:58 ` Stefan Monnier
2014-04-18 20:23 ` Ian D
2014-04-20 2:47 ` Stefan Monnier
2014-04-20 3:10 ` Ian D
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=8738hdh1ae.fsf@gnu.org \
--to=dunni@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.