From: jpw@pobox.com (John Paul Wallington)
Cc: bug-gnu-emacs@gnu.org, emacs-devel@gnu.org
Subject: Re: many lines of blabber at top of *Completions* buffer
Date: Sun, 03 Sep 2006 18:08:53 +0100 [thread overview]
Message-ID: <uhczox4gq.fsf@pobox.com> (raw)
In-Reply-To: <8764j06798.fsf@jidanni.org> (Dan Jacobson's message of "Sat\, 17 Jun 2006 06\:54\:59 +0800")
Dan Jacobson <jidanni@jidanni.org> writes:
> rms> The first two lines are needed for beginners.
> rms> You could edit the code so as to remove them.
> Edit the code? Naw, want setq completions-user-maturity 'advanced.
That's a good idea. How about this change ?
Is it too late to install this before the pretest ?
2006-09-03 John Paul Wallington <jpw@pobox.com>
* simple.el (completion-show-help): New defcustom.
(completion-setup-function): Heed it.
Index: simple.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/simple.el,v
retrieving revision 1.812
diff -u -r1.812 simple.el
--- simple.el 20 Aug 2006 12:16:58 -0000 1.812
+++ simple.el 3 Sep 2006 16:59:53 -0000
@@ -4982,6 +4982,12 @@
;; Variables and faces used in `completion-setup-function'.
+(defcustom completion-show-help t
+ "Non-nil means show help message in *Completions* buffer."
+ :type 'boolean
+ :version "22.1"
+ :group 'completion)
+
(defface completions-first-difference
'((t (:inherit bold)))
"Face put on the first uncommon character in completions in *Completions* buffer."
@@ -5068,14 +5074,15 @@
(if (get-char-property element-common-end 'mouse-face)
(put-text-property element-common-end (1+ element-common-end)
'font-lock-face 'completions-first-difference))))))
- ;; Insert help string.
- (goto-char (point-min))
- (if (display-mouse-p)
- (insert (substitute-command-keys
- "Click \\[mouse-choose-completion] on a completion to select it.\n")))
- (insert (substitute-command-keys
- "In this buffer, type \\[choose-completion] to \
-select the completion near point.\n\n")))))
+ ;; Maybe insert help string.
+ (when completion-show-help
+ (goto-char (point-min))
+ (if (display-mouse-p)
+ (insert (substitute-command-keys
+ "Click \\[mouse-choose-completion] on a completion to select it.\n")))
+ (insert (substitute-command-keys
+ "In this buffer, type \\[choose-completion] to \
+select the completion near point.\n\n"))))))
(add-hook 'completion-setup-hook 'completion-setup-function)
next prev parent reply other threads:[~2006-09-03 17:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1FpScE-0004Wc-1R@fencepost.gnu.org>
2006-06-16 22:54 ` many lines of blabber at top of *Completions* buffer Dan Jacobson
2006-09-03 17:08 ` John Paul Wallington [this message]
2006-09-03 17:25 ` Drew Adams
2006-09-04 17:17 ` Richard Stallman
2006-09-05 0:01 ` John Paul Wallington
2006-06-10 22:01 Dan Jacobson
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=uhczox4gq.fsf@pobox.com \
--to=jpw@pobox.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=emacs-devel@gnu.org \
/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).