unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stefan Monnier" <monnier+gnu/emacs@RUM.cs.yale.edu>
Cc: John Wiegley <johnw@gnu.org>, emacs-devel@gnu.org
Subject: Re: [friedman@splode.com: some other observations on pcomplete]
Date: Mon, 11 Mar 2002 09:43:47 -0500	[thread overview]
Message-ID: <200203111443.g2BEhlU09346@rum.cs.yale.edu> (raw)
In-Reply-To: buoelirbnvr.fsf@mcspd15.ucom.lsi.nec.co.jp

> John Wiegley <johnw@gnu.org> writes:
> > These behaviors are all configurable.  Perhaps we should simple tell
> > shell.el to configure pcomplete so that it behaves like Emacs'
> > standard (and dumb yet straightforward) completion.
> 
> This seems like the wrong answer -- the `cycling' behavior is potentially
> very convenient, it's just that the implementation has some rough edges.

Indeed, there are two issues:
- should the default behavior be to cycle or should it be the same
  as in the rest of Emacs ?  (I personally don't like cycling too much,
  but maybe we can have non-cycling completion bound to TAB and cycling
  bound to M-TAB).
- when using the sometimes-cycling-sometimes-not behavior (which depends
  on the total number of possible completions IIUC), it should tell the
  user what actually happened in a unambiguous way.

>    and /tmp contains `foo1' and `foo2', then hitting TAB at eob would display:
> 
>      $ cat /tmp/foo1_  [1 more completion]

I agree, but last time I looked at it, I found it difficult to implement
because the completion might be done in the middle of the line and because
the "[1 more completion]" message might wrap around forcing the rest of
the display to temporarily scroll down by one line.
It seems to me that this "[1 more completion]" message should be an
overlay text which only hides other parts of the display but doesn't
cause anything else to move (it's overwritten rather than inserted).
But Emacs doesn't seem to offer any such form of "overlay text".
The closest seems to be tooltip frames.
Although maybe using overwrite-mode one could get something good enough
(problem is, it's difficult to undo the overwrite 100% because it messes
up markers).


	Stefan


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


  parent reply	other threads:[~2002-03-11 14:43 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-10 21:32 [friedman@splode.com: some other observations on pcomplete] Richard Stallman
2002-03-11  6:29 ` John Wiegley
2002-03-11  6:48   ` Miles Bader
2002-03-11  7:53     ` John Wiegley
2002-03-11 14:43     ` Stefan Monnier [this message]
2002-03-11 19:06   ` Richard Stallman
2002-03-11 19:35     ` John Wiegley
2002-03-12 10:01       ` Kai Großjohann
2002-03-12 19:44         ` John Wiegley
2002-03-13 10:58           ` Richard Stallman
2002-03-13 18:09             ` Colin Walters
2002-03-14 12:42               ` Richard Stallman
2002-03-14 19:29                 ` John Wiegley
2002-03-11 23:58     ` Miles Bader
2002-03-11 20:46 ` Colin Walters
2002-03-12 18:12 ` Stefan Monnier
2002-03-12 18:13   ` Noah Friedman
2002-03-13 10:58   ` Richard Stallman
2002-03-13 12:38     ` Kai Großjohann
2002-03-13 23:00       ` John Wiegley
2002-03-15  3:42       ` Richard Stallman
2002-03-17  9:51         ` Kai Großjohann
2002-03-17 19:22           ` Richard Stallman
2002-03-19 16:15             ` Kai Großjohann
     [not found] <Pine.SUN.3.91.1020314163415.20226A@is>
2002-03-15 16:24 ` Richard Stallman
2002-03-15 19:42   ` Jason Rumney
2002-03-17 10:05     ` Richard Stallman
2002-03-17 11:47       ` Eli Zaretskii
2002-03-18  9:05         ` Richard Stallman
2002-03-17  9:17   ` Karl Eichwalder
2002-03-17 19:22     ` Richard Stallman

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=200203111443.g2BEhlU09346@rum.cs.yale.edu \
    --to=monnier+gnu/emacs@rum.cs.yale.edu \
    --cc=emacs-devel@gnu.org \
    --cc=johnw@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).