unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#61283: 29.0.60; pcomplete-completions-at-point loses text properties, breaking pcomplete-from-help annotations
@ 2023-02-05  0:23 Daniel Mendler
  2023-05-16  1:49 ` Liu Hui
  2023-05-16  7:50 ` Gregory Heytings
  0 siblings, 2 replies; 24+ messages in thread
From: Daniel Mendler @ 2023-02-05  0:23 UTC (permalink / raw)
  To: 61283; +Cc: gregory, arstoffel, monnier

1. Start emacs -Q
2. Evaluate the following two test commands in the scratch buffer:

(defun good ()
  (interactive)
  (pp (all-completions "" (nth 2 (pcomplete-completions-at-point)))))

(defun bad ()
  (interactive)
  (pp (all-completions "-" (nth 2 (pcomplete-completions-at-point)))))

3. Run shell or eshell
4. Enter `xargs --' in order to complete command line options via
`pcomplete-from-help'.
5. M-x good -> Printed completion strings will have pcomplete-annotation
and pcomplete-help text properties. These are used by the
:annotation-function and the :company-docsig function.
6. M-x bad -> Returned completion strings are stripped of their text
properties.
7. When triggering completion manually by pressing TAB, there are
no annotations displayed in the *Completions* buffer.

If I recall correctly, this functionality worked at some point and the
text properties were not removed, such that annotations worked. The
culprit, which destroys the properties, seems to be
`completion-table-with-quoting' in `pcomplete-completions-at-point', but
I wasn't able to figure out which commit caused this (I did not do any
bisecting).

In GNU Emacs 29.0.60 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
 version 1.16.0, Xaw scroll bars) of 2023-01-26 built on projects
Repository revision: f8c95d1a7681e861fc22d2a040cda0ddfe23eff4
Repository branch: emacs-29
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Debian GNU/Linux 11 (bullseye)





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

end of thread, other threads:[~2023-05-23  4:16 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-05  0:23 bug#61283: 29.0.60; pcomplete-completions-at-point loses text properties, breaking pcomplete-from-help annotations Daniel Mendler
2023-05-16  1:49 ` Liu Hui
2023-05-16  6:19   ` Daniel Mendler
2023-05-16 10:30     ` Eli Zaretskii
2023-05-16 10:44       ` Daniel Mendler
2023-05-16 21:37         ` Gregory Heytings
2023-05-17  6:15           ` Daniel Mendler
2023-05-17  7:24             ` Daniel Mendler
2023-05-17  5:45         ` Jim Porter
2023-05-17  6:31           ` Daniel Mendler
2023-05-17 14:55           ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-17 21:20             ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-18  2:01               ` Daniel Mendler
2023-05-18  5:39                 ` Eli Zaretskii
2023-05-18  6:44                   ` Jim Porter
2023-05-18  6:58                     ` Eli Zaretskii
2023-05-18  8:29                   ` Daniel Mendler
2023-05-18 13:37                   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-18  7:11               ` Jim Porter
2023-05-18  8:37                 ` Daniel Mendler
2023-05-18 13:30                 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-23  4:16                   ` Jim Porter
2023-05-16 14:04   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-16  7:50 ` Gregory Heytings

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