all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Po Lu <luangruo@yahoo.com>
Cc: 68018@debbugs.gnu.org
Subject: bug#68018: [PATCH] Fix previous page and next page tooltips in doc-view.el
Date: Mon, 25 Dec 2023 11:54:07 +0100	[thread overview]
Message-ID: <m1mstylfhs.fsf@yahoo.es> (raw)
In-Reply-To: <s0d1qbb3z5r.fsf@yahoo.com> (Po Lu's message of "Mon, 25 Dec 2023 08:26:40 +0800")

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

Po Lu <luangruo@yahoo.com> writes:

> Daniel Martín <mardani29@yahoo.es> writes:
>
>> In docview.el, the toolbar icons used to navigate to the previous and
>> next pages have incorrect tooltips.  I've attached a patch to address
>> this issue.  Thanks.
>
> Thanks, but why rename the icon?

So that the name of the icon matches what the icon really represents.
If you feel that renaming the icon may cause incompatibilities, here’s a
new patch that only changes the help tooltip.  Thanks.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-previous-page-and-next-page-tooltips-in-doc-view.patch --]
[-- Type: text/x-patch, Size: 1503 bytes --]

From bd5e5f563d7388ba71eb5496766bc1d5a5fdeb23 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= <dmartin@Daniels-MacBook-Pro.local>
Date: Mon, 25 Dec 2023 11:43:39 +0100
Subject: [PATCH] Fix previous page and next page tooltips in doc-view.el

* lisp/doc-view.el (doc-view-tool-bar-map): Fix toolbar items to go to
next and previous pages in a document.
---
 lisp/doc-view.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index 2fdb49f3e42..c70b60d9f58 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -698,12 +698,12 @@ doc-view-tool-bar-map
     (tool-bar-local-item-from-menu 'doc-view-previous-page "last-page"
                                    map doc-view-mode-map :vert-only t
                                    :enable '(> (doc-view-current-page) 1)
-                                   :help "Move to the next page.")
+                                   :help "Move to the previous page.")
     (tool-bar-local-item-from-menu 'doc-view-next-page "next-page"
                                    map doc-view-mode-map :vert-only t
                                    :enable '(< (doc-view-current-page)
                                                (doc-view-last-page-number))
-                                   :help "Move to the last page.")
+                                   :help "Move to the next page.")
     map)
   "Like the default `tool-bar-map', but with additions for DocView.")
 
-- 
2.42.0


  reply	other threads:[~2023-12-25 10:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m1tto7kxrs.fsf.ref@yahoo.es>
2023-12-24 23:04 ` bug#68018: [PATCH] Fix previous page and next page tooltips in doc-view.el Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-25  0:26   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-25 10:54     ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-12-25 11:59       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-25 12:22         ` Eli Zaretskii
2023-12-25 12:59           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-25 13:40             ` Eli Zaretskii
2023-12-25 14:23               ` Stefan Kangas
2023-12-26  2:02               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-27 12:38                 ` Eli Zaretskii
2023-12-27 13:02                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-27 13:39                     ` Eli Zaretskii
2023-12-30  7:42       ` Eli Zaretskii

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=m1mstylfhs.fsf@yahoo.es \
    --to=bug-gnu-emacs@gnu.org \
    --cc=68018@debbugs.gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=mardani29@yahoo.es \
    /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.