Subject: bug#15466: closed (Re: bug#15466: 24.3.50; [PATCH] Add some keybindings for doc-view-mode)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 26 Sep 2013 19:09:02 +0000

Your bug report

#15466: 24.3.50; [PATCH] Add some keybindings for doc-view-mode

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
15466: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15466
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#15466: 24.3.50; [PATCH] Add some keybindings for doc-view-mode
From: Tassilo Horn <[email-masked]>
To: Stefan Monnier <[email-masked]>
Cc: Xue Fuqiao <[email-masked]>, [email-masked]
Date: Thu, 26 Sep 2013 21:08:29 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Tassilo Horn <[email-masked]> writes:

> Yeah
>
>   (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.

I'm closing the bug.

Bye,
Tassilo

Subject: 24.3.50; [PATCH] Add some keybindings for doc-view-mode
From: Xue Fuqiao <[email-masked]>
To: bug-gnu-emacs <[email-masked]>
Date: Thu, 26 Sep 2013 22:14:54 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

severity minor
tags patch

This patch adds some keybindings to doc-view-mode:

=== modified file 'lisp/doc-view.el'
*** lisp/doc-view.el    2013-09-18 04:38:49 +0000
--- lisp/doc-view.el    2013-09-26 14:10:57 +0000
***************
*** 405,411 ****
--- 405,415 ----
      (define-key map (kbd "RET")       'image-next-line)
      ;; Zoom in/out.
      (define-key map "+"               'doc-view-enlarge)
+     (define-key map "="               'doc-view-enlarge)
+     (define-key map (kbd "C-x C-+")   'doc-view-enlarge)
+     (define-key map (kbd "C-x C-=")   'doc-view-enlarge)
      (define-key map "-"               'doc-view-shrink)
+     (define-key map (kbd "C-x C--")   'doc-view-shrink)
      ;; Fit the image to the window
      (define-key map "W"               'doc-view-fit-width-to-window)
      (define-key map "H"               'doc-view-fit-height-to-window)

-- 
Best regards, Xue Fuqiao.
http://www.gnu.org/software/emacs/