unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7499: Documentation: `comint-dynamic-list-filename-completions'
@ 2010-11-27 17:10 MON KEY
  2010-11-27 18:35 ` Stefan Monnier
  0 siblings, 1 reply; 7+ messages in thread
From: MON KEY @ 2010-11-27 17:10 UTC (permalink / raw)
  To: 7499

Documentation of `comint-dynamic-list-filename-completions'
current through bzr revision 102504

,---- (documentation 'comint-dynamic-list-filename-completions)
|
| "List in help buffer possible completions of the filename at point."
|
`----

Is the above correct?
On my machine completions appear in "*Completions*" which is only tangentially a
"help buffer".

--
/s_P\





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

* bug#7499: Documentation: `comint-dynamic-list-filename-completions'
  2010-11-27 17:10 bug#7499: Documentation: `comint-dynamic-list-filename-completions' MON KEY
@ 2010-11-27 18:35 ` Stefan Monnier
  2010-11-28 20:46   ` MON KEY
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2010-11-27 18:35 UTC (permalink / raw)
  To: MON KEY; +Cc: 7499

> Documentation of `comint-dynamic-list-filename-completions'
> current through bzr revision 102504

> ,---- (documentation 'comint-dynamic-list-filename-completions)
> |
> | "List in help buffer possible completions of the filename at point."
> |
> `----

> Is the above correct?
> On my machine completions appear in "*Completions*" which is only
> tangentially a "help buffer".

The term "help buffer" is apparently used here loosely to mean
"auxiliary buffer helpful to the user".


        Stefan





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

* bug#7499: Documentation: `comint-dynamic-list-filename-completions'
  2010-11-27 18:35 ` Stefan Monnier
@ 2010-11-28 20:46   ` MON KEY
  2010-11-28 22:42     ` Drew Adams
  2010-12-05  0:55     ` Chong Yidong
  0 siblings, 2 replies; 7+ messages in thread
From: MON KEY @ 2010-11-28 20:46 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 7499

On Sat, Nov 27, 2010 at 1:35 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:

> The term "help buffer" is apparently used here loosely to mean
> "auxiliary buffer helpful to the user".
>

Its less than apparent (to me at least) that such loose usage is helpful. :)

AFAICT `comint-dynamic-list-completions' is hardwired to "*Completions*".

Its docstring is equally suspect:

,---- (documentation 'comint-dynamic-list-completions)
|
|     List in help buffer sorted completions.  The meaning of
|     common-substring is the same as in `display-completion-list'.
|     Typing SPC flushes the help buffer.
|
`----

W/re `comint-dynamic-list-completions',
`comint-dynamic-list-filename-completions' (and any other similar such
comint docstrings), what would prob. be more "helpful to the user"
would be to explicitly document that return value is to
"*Completions*". :)

After all, there is no provision for an alternative destination
stream.  Indeed, it is doubtful such alternatives could be made
available via `comint-dynamic-list-completions' given the complicated
interactions between windows/buffers/configurations and the dynamic bindings of
`standard-output' happening around the internal calls to
`display-completion-list' and `with-output-to-temp-buffer'.

>        Stefan

--
/s_P\





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

* bug#7499: Documentation: `comint-dynamic-list-filename-completions'
  2010-11-28 20:46   ` MON KEY
@ 2010-11-28 22:42     ` Drew Adams
  2010-11-29  1:35       ` Stefan Monnier
  2010-12-05  0:55     ` Chong Yidong
  1 sibling, 1 reply; 7+ messages in thread
From: Drew Adams @ 2010-11-28 22:42 UTC (permalink / raw)
  To: 'MON KEY', 'Stefan Monnier'; +Cc: 7499

> > The term "help buffer" is apparently used here loosely to mean
> > "auxiliary buffer helpful to the user".
> 
> Its less than apparent (to me at least) that such loose usage 
> is helpful. :) AFAICT `comint-dynamic-list-completions' is
> hardwired to "*Completions*".

I haven't been following this thread (and no doubt will not follow it).  But if
the buffer is `*Completions*' then it is clearest for the doc to say so
explicitly.  Saying "help buffer" or even "some auxilliary buffer helpful to the
user" just muddies the water.  No need to defend that text; just use "buffer
`*Completions*'" or "window `*Completions*'" (depending on the context).






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

* bug#7499: Documentation: `comint-dynamic-list-filename-completions'
  2010-11-28 22:42     ` Drew Adams
@ 2010-11-29  1:35       ` Stefan Monnier
  2010-11-29  3:02         ` MON KEY
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2010-11-29  1:35 UTC (permalink / raw)
  To: Drew Adams; +Cc: 7499, 'MON KEY'

> I haven't been following this thread (and no doubt will not follow
> it).  But if the buffer is `*Completions*' then it is clearest for the
> doc to say so explicitly.  Saying "help buffer" or even "some
> auxilliary buffer helpful to the user" just muddies the water.
> No need to defend that text; just use "buffer `*Completions*'" or
> "window `*Completions*'" (depending on the context).

I'd argue instead that there is no reason for that text to say where
it's going to be displayed.
So I'd replace "List in help buffer sorted completions" with something
like "Display sorted completions".


        Stefan





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

* bug#7499: Documentation: `comint-dynamic-list-filename-completions'
  2010-11-29  1:35       ` Stefan Monnier
@ 2010-11-29  3:02         ` MON KEY
  0 siblings, 0 replies; 7+ messages in thread
From: MON KEY @ 2010-11-29  3:02 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 7499

On Sun, Nov 28, 2010 at 8:35 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> No need to defend that text; just use "buffer `*Completions*'" or
>> "window `*Completions*'" (depending on the context).
>
> I'd argue instead that there is no reason for that text to say where
> it's going to be displayed.

Once one has left the immediate locus of the `comint-*' callers it is
good to know
what/where these gals do their business.

> So I'd replace "List in help buffer sorted completions" with something
> like "Display sorted completions".

OK. It makes sense to leave from for future changes.
But, there is third party code that uses this feature:
Their users may deserve some consideration...

`slime-maybe-complete-as-filename'
 `-> `comint-replace-by-expanded-filename'
   `-> `comint-dynamic-complete-filename'
     `-> `comint-dynamic-complete-as-filename'
       `-> `comint-dynamic-list-filename-completions'
         `-> `comint-dynamic-list-completions'

Do an occur for "slime-complete-*" in slime.el
Also, take a look at `slime-completions-buffer-name'.

I'm sure there are other non-core libs which make similar use of `comint-*'...

>        Stefan

--
/s_P\





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

* bug#7499: Documentation: `comint-dynamic-list-filename-completions'
  2010-11-28 20:46   ` MON KEY
  2010-11-28 22:42     ` Drew Adams
@ 2010-12-05  0:55     ` Chong Yidong
  1 sibling, 0 replies; 7+ messages in thread
From: Chong Yidong @ 2010-12-05  0:55 UTC (permalink / raw)
  To: MON KEY; +Cc: 7499

MON KEY <monkey@sandpframing.com> writes:

>> The term "help buffer" is apparently used here loosely to mean
>> "auxiliary buffer helpful to the user".
>>
>
> Its less than apparent (to me at least) that such loose usage is helpful. :)

I've checked in a fix for this, and related docstrings.  Thanks.






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

end of thread, other threads:[~2010-12-05  0:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-27 17:10 bug#7499: Documentation: `comint-dynamic-list-filename-completions' MON KEY
2010-11-27 18:35 ` Stefan Monnier
2010-11-28 20:46   ` MON KEY
2010-11-28 22:42     ` Drew Adams
2010-11-29  1:35       ` Stefan Monnier
2010-11-29  3:02         ` MON KEY
2010-12-05  0:55     ` Chong Yidong

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