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 12:01:20 -0400 [thread overview]
Message-ID: <87eh0x8drj.fsf@gnu.org> (raw)
In-Reply-To: <jwvsipdnyu2.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 16 Apr 2014 10:18:29 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>>> (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?
>> 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).
>
> No, I really meant to do it *inside* image-mode-window-put, not to use
> image-mode-window-put instead of setf'ing image-mode-window-get.
>
Ah. I think (with my limited knowledge of the Emacs code base)
that it might be possible. It looks like (with a quick
recursive grep) that only DocView uses `image-mode-window-put'
and `image-mode-window-get'.
Since image-mode sets up the `t' entry itself, it could be
possible to continuously update this every time another entry is
updated, if that's what you're suggesting. For example, when
'page is updated, have `image-mode-window-put' update the page
in the `t' entry as well.
Is this what you are suggesting? If so, that shouldn't be too
much of a problem.
Ian D
next prev parent reply other threads:[~2014-04-16 16:01 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
2014-04-16 14:18 ` Stefan Monnier
2014-04-16 16:01 ` Ian D [this message]
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=87eh0x8drj.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.