unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#57772: icomplete-mode's docstring causes documentation function to fail
@ 2022-09-13 13:17 Brady Montz via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-13 14:43 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Brady Montz via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-13 13:17 UTC (permalink / raw)
  To: 57772

Hi, I noticed that when I have icomplete-mode enabled, the describe-mode function doesn't work in any buffer. It throws this error:

describe-map-tree: Wrong number of arguments: (lambda (map) "Display binding for MAP which must be a quoted keymap variable" (interactive (list (intern (completing-read "Key map: " obarray 'keymap-test 1)))) (let ((val (symbol-value map))) (or (keymapp val) (error "%s is not a keymap !" (symbol-name map))) (let* ((old-dir default-directory) (buf (save-current-buffer (set-buffer (get-buffer-create "*Help*")) (prog1 (current-buffer) (kill-all-local-variables) (setq default-directory old-dir) (setq buffer-read-only nil) (setq buffer-file-name nil) (setq buffer-undo-list t) (let ((inhibit-read-only t) (inhibit-modification-hooks t)) (erase-buffer) (run-hooks 'temp-buffer-setup-hook))))) (standard-output buf)) (prog1 (progn (princ (format "Binding for keymap %s is:
" (symbol-name map))) (princ (substitute-command-keys "\\{val}")) (print-help-return-message)) (internal-temp-output-buffer-show buf))))), 7

I did some debugging and traced it down to the icomplete-mode docstring. 

Repro:

in scratch buffer, run: (documentation 'icomplete-mode) and I get the same error. 

If I remove the last line of icomplete-mode's docstring ("\\{icomplete-minibuffer-map}"), then the documentation function successfully returns the doc string.

Finally, icomplete-minibuffer-map has the value (keymap (67108908 . icomplete-backward-completions) (67108910 . icomplete-forward-completions) (10 . icomplete-force-complete-and-exit) (remap keymap (minibuffer-complete-and-exit . icomplete-ret)) (27 keymap (9 . icomplete-force-complete))) after I’ve loaded it up. 

Unfortunately, describe-mode still doesn't work, so something else has a similar problem that I haven’t found yet, but likely this helps. 

Using emacs version "GNU Emacs 28.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95))
 of 2022-05-11" built by homebrew, with the icomplete-mode that's included in that version. 

—
  Brady Montz
  bradymontz@mac.com




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

* bug#57772: icomplete-mode's docstring causes documentation function to fail
  2022-09-13 13:17 bug#57772: icomplete-mode's docstring causes documentation function to fail Brady Montz via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-13 14:43 ` Lars Ingebrigtsen
  2022-09-13 15:11   ` Brady Montz via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2022-09-13 14:43 UTC (permalink / raw)
  To: Brady Montz; +Cc: 57772

Brady Montz <bradymontz@mac.com> writes:

> in scratch buffer, run: (documentation 'icomplete-mode) and I get the same error. 

I tried this now in Emacs 28.1, and I did not get an error.

Do you have a complete recipe to reproduce the problem, starting from
"emacs -Q"?





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

* bug#57772: icomplete-mode's docstring causes documentation function to fail
  2022-09-13 14:43 ` Lars Ingebrigtsen
@ 2022-09-13 15:11   ` Brady Montz via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-13 23:33     ` Brady Montz via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 5+ messages in thread
From: Brady Montz via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-13 15:11 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 57772

Thanks for the quick reply!

OK, I shoulda checked emacs -Q first. Visual inspection of my .emacs didn’t show anything affecting incomplete-mode, but looks like something else in there is affecting it. 

I’ll take a look to see what’s interacting with it. 

Brady

> On Sep 13, 2022, at 7:43 AM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> 
> Brady Montz <bradymontz@mac.com> writes:
> 
>> in scratch buffer, run: (documentation 'icomplete-mode) and I get the same error. 
> 
> I tried this now in Emacs 28.1, and I did not get an error.
> 
> Do you have a complete recipe to reproduce the problem, starting from
> "emacs -Q"?






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

* bug#57772: icomplete-mode's docstring causes documentation function to fail
  2022-09-13 15:11   ` Brady Montz via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-13 23:33     ` Brady Montz via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-14 12:39       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Brady Montz via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-13 23:33 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 57772

Alright, good news, false alarm. I found a function elsewhere that was overriding a key method inside of help.el, which was goofing up the keymap display in that particular use case. Can resolve as no issue. Thanks for the help!

Brady

> On Sep 13, 2022, at 8:11 AM, Brady Montz <bradymontz@mac.com> wrote:
> 
> Thanks for the quick reply!
> 
> OK, I shoulda checked emacs -Q first. Visual inspection of my .emacs didn’t show anything affecting incomplete-mode, but looks like something else in there is affecting it. 
> 
> I’ll take a look to see what’s interacting with it. 
> 
> Brady
> 
>> On Sep 13, 2022, at 7:43 AM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>> 
>> Brady Montz <bradymontz@mac.com> writes:
>> 
>>> in scratch buffer, run: (documentation 'icomplete-mode) and I get the same error. 
>> 
>> I tried this now in Emacs 28.1, and I did not get an error.
>> 
>> Do you have a complete recipe to reproduce the problem, starting from
>> "emacs -Q"?
> 






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

* bug#57772: icomplete-mode's docstring causes documentation function to fail
  2022-09-13 23:33     ` Brady Montz via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-14 12:39       ` Lars Ingebrigtsen
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2022-09-14 12:39 UTC (permalink / raw)
  To: Brady Montz; +Cc: 57772

Brady Montz <bradymontz@mac.com> writes:

> Alright, good news, false alarm. I found a function elsewhere that was
> overriding a key method inside of help.el, which was goofing up the
> keymap display in that particular use case. Can resolve as no
> issue. Thanks for the help!

No problem; I'm closing this report, then.





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

end of thread, other threads:[~2022-09-14 12:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-13 13:17 bug#57772: icomplete-mode's docstring causes documentation function to fail Brady Montz via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-13 14:43 ` Lars Ingebrigtsen
2022-09-13 15:11   ` Brady Montz via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-13 23:33     ` Brady Montz via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-14 12:39       ` Lars Ingebrigtsen

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