unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* many lines of blabber at top of *Completions* buffer
@ 2006-06-10 22:01 Dan Jacobson
  0 siblings, 0 replies; 6+ messages in thread
From: Dan Jacobson @ 2006-06-10 22:01 UTC (permalink / raw)


Regarding the *Completions* buffer,
   Click <mouse-2> on a completion to select it.
   In this buffer, type RET to select the completion near point.

   Possible completions are:
   ../				   ./
   MAKEFLOPPIES			   a2dismod
   a2dissite			   a2enmod
   a2ensite			   ab...

Hurmf, wasted 1, 2, 3, 4 or 5 lines of precious completion buffer
space, depending on one's experience.  Might as well throw in a total
count of how many completions, like bash if lots. And mention the
variables to limit the above verboseness.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: many lines of blabber at top of *Completions* buffer
       [not found] <E1FpScE-0004Wc-1R@fencepost.gnu.org>
@ 2006-06-16 22:54 ` Dan Jacobson
  2006-09-03 17:08   ` John Paul Wallington
  0 siblings, 1 reply; 6+ messages in thread
From: Dan Jacobson @ 2006-06-16 22:54 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: many lines of blabber at top of *Completions* buffer
  2006-06-16 22:54 ` many lines of blabber at top of *Completions* buffer Dan Jacobson
@ 2006-09-03 17:08   ` John Paul Wallington
  2006-09-03 17:25     ` Drew Adams
  2006-09-04 17:17     ` Richard Stallman
  0 siblings, 2 replies; 6+ messages in thread
From: John Paul Wallington @ 2006-09-03 17:08 UTC (permalink / raw)
  Cc: bug-gnu-emacs, emacs-devel

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)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: many lines of blabber at top of *Completions* buffer
  2006-09-03 17:08   ` John Paul Wallington
@ 2006-09-03 17:25     ` Drew Adams
  2006-09-04 17:17     ` Richard Stallman
  1 sibling, 0 replies; 6+ messages in thread
From: Drew Adams @ 2006-09-03 17:25 UTC (permalink / raw)
  Cc: bug-gnu-emacs

    > 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 ?

I agree. I do the same thing in my own completion code, in fact, following a
user request.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: many lines of blabber at top of *Completions* buffer
  2006-09-03 17:08   ` John Paul Wallington
  2006-09-03 17:25     ` Drew Adams
@ 2006-09-04 17:17     ` Richard Stallman
  2006-09-05  0:01       ` John Paul Wallington
  1 sibling, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2006-09-04 17:17 UTC (permalink / raw)
  Cc: bug-gnu-emacs, emacs-devel, jidanni

It is ok to install this.  I think there is no need to document it
in the Emacs manual.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: many lines of blabber at top of *Completions* buffer
  2006-09-04 17:17     ` Richard Stallman
@ 2006-09-05  0:01       ` John Paul Wallington
  0 siblings, 0 replies; 6+ messages in thread
From: John Paul Wallington @ 2006-09-05  0:01 UTC (permalink / raw)
  Cc: bug-gnu-emacs, jidanni, emacs-devel

Richard Stallman <rms@gnu.org> writes:

> It is ok to install this.  I think there is no need to document it
> in the Emacs manual.

Installed.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-09-05  0:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
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

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).