all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Oleksandr Manzyuk <manzyuk@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Inner workings of `pcomplete'
Date: Tue, 07 Feb 2012 22:33:51 -0500	[thread overview]
Message-ID: <jwvr4y6ytma.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: <mailman.3469.1328658943.15002.help-gnu-emacs@gnu.org> (Oleksandr Manzyuk's message of "Tue, 07 Feb 2012 23:31:03 +0000")

> 1. emacs -Q
> 2. M-: (boundp 'pcomplete-stub) RET ==> nil
> 3. M-x shell
> 4. M-: (boundp 'pcomplete-stub) RET ==> t
> 5. M-: (special-variable-p 'pcomplete-stub) RET ==> nil
> 6. Open the file `pcomplete.el' (for example, by looking up the variable
> `pcomplete-stub') and M-x eval-buffer.  Now (special-variable-p
> 'pcomplete-stub) evaluates to t.

> What is going on here?

Duh!  Thanks for catching this.  Please M-x report-emacs-bug!

> prompt and M-: (pcomplete-completions)).  However, it is also passed as
> a table argument to the function `complete-with-action', whose
> documentation says that this argument should not be a function.

The docstring is wrong, as the first line of the code indicates ;-)


        Stefan



       reply	other threads:[~2012-02-08  3:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3469.1328658943.15002.help-gnu-emacs@gnu.org>
2012-02-08  3:33 ` Stefan Monnier [this message]
2012-02-09  1:02   ` Inner workings of `pcomplete' Oleksandr Manzyuk
2012-02-09 21:44     ` Stefan Monnier
2012-02-07 23:31 Oleksandr Manzyuk

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=jwvr4y6ytma.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    --cc=manzyuk@gmail.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.