From: Stefan Kangas <stefan@marxist.se>
To: Drew Adams <drew.adams@oracle.com>
Cc: 40915@debbugs.gnu.org
Subject: bug#40915: [PATCH] Make leaving Info-summary more intuitive
Date: Tue, 28 Apr 2020 19:39:15 +0200 [thread overview]
Message-ID: <878sif7bng.fsf@stefankangas.se> (raw)
In-Reply-To: <25e557d9-4b68-470a-96d5-c51552d5fa38@default> (Drew Adams's message of "Tue, 28 Apr 2020 10:11:26 -0700 (PDT)")
Drew Adams <drew.adams@oracle.com> writes:
> For (a), what do you mean by a "general" help
> command? The point of Info-summary is to provide
> succinct help about Info.
I meant that you can have a command which works in any major mode very
easily:
(defun Info-summary ()
"Display a brief summary of all Info commands."
(interactive)
(save-window-excursion
(switch-to-buffer "*Help*")
(setq buffer-read-only nil)
(erase-buffer)
- (insert (documentation 'Info-mode))
+ (insert (documentation major-mode))
(help-mode)
(goto-char (point-min))
(let (ch flag)
(while (progn (setq flag (not (pos-visible-in-window-p (point-max))))
(message (if flag "Type Space to see more"
"Type Space to return to Info"))
(if (not (eq ?\s (setq ch (read-event))))
(progn (push ch unread-command-events) nil)
flag))
(scroll-up)))
(bury-buffer "*Help*")))
Best regards,
Stefan Kangas
next prev parent reply other threads:[~2020-04-28 17:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-27 22:28 bug#40915: [PATCH] Make leaving Info-summary more intuitive Stefan Kangas
2020-04-28 7:09 ` Eli Zaretskii
2020-04-28 7:37 ` Stefan Kangas
2020-04-28 7:57 ` Eli Zaretskii
2020-04-28 17:11 ` Drew Adams
2020-04-28 17:17 ` Drew Adams
2020-04-28 17:39 ` Stefan Kangas [this message]
2020-04-28 18:43 ` Drew Adams
2020-08-08 12:13 ` Lars Ingebrigtsen
2020-10-07 4:31 ` Lars Ingebrigtsen
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=878sif7bng.fsf@stefankangas.se \
--to=stefan@marxist.se \
--cc=40915@debbugs.gnu.org \
--cc=drew.adams@oracle.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 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.