From: Tassilo Horn <tsdh@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Xue Fuqiao <xfq.free@gmail.com>, 15466-done@debbugs.gnu.org
Subject: bug#15466: 24.3.50; [PATCH] Add some keybindings for doc-view-mode
Date: Fri, 27 Sep 2013 08:50:58 +0200 [thread overview]
Message-ID: <87fvsq7o6l.fsf@thinkpad.tsdh.org> (raw)
In-Reply-To: <878uyj5rki.fsf@thinkpad.tsdh.org> (Tassilo Horn's message of "Thu, 26 Sep 2013 21:08:29 +0200")
Tassilo Horn <tsdh@gnu.org> writes:
>> (define-key map [remap text-scale-adjust] 'doc-view-enlarge)
>> (define-key map (kbd "C-x C--") 'doc-view-shrink)
>>
>> should be equivalent. Well, except that C-x C-0 would also enlarge. It
>> wouldn't be bad to have a command to reset to the original size.
>
> I've committed the bindings and added a new command
> doc-view-reset-zoom-level in revno 114463 on the trunk. So now all
> text-scaling key bindings work appropriately in doc-view buffers.
Of course the above was a bit bogus in case a user has bound
text-scale-adjust to something different that C-x C-<+,=,-,0>. So now
I've added a new command `doc-view-scale-adjust' that dispatches the
action to take by the key binding like `text-scale-adjust' does, and
that's now the remapping binding (revno 114464).
Bye,
Tassilo
next prev parent reply other threads:[~2013-09-27 6:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-26 14:14 bug#15466: 24.3.50; [PATCH] Add some keybindings for doc-view-mode Xue Fuqiao
2013-09-26 18:05 ` Stefan Monnier
2013-09-26 18:38 ` Tassilo Horn
2013-09-26 19:08 ` Tassilo Horn
2013-09-27 6:50 ` Tassilo Horn [this message]
2013-09-27 13:04 ` Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fvsq7o6l.fsf@thinkpad.tsdh.org \
--to=tsdh@gnu.org \
--cc=15466-done@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=xfq.free@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).