Skip to content

"C-h b" in the "*gptel-prompt*" buffer doesn't describe the "C-c C-c" and "C-c C-k" keybindings #1165

@JohnC32

Description

@JohnC32

Please update gptel first -- errors are often fixed by the time they're reported.

  • I have updated gptel to the latest commit and tested that the issue still exists

Bug Description

In the *gptel-prompt* buffer typing C-h b to see the key bindings shows terse information:

Key                  Binding
C-c C-c		#<byte-code-function 152>
C-c C-k		#<byte-code-function 69B>

I believe if you use defun's rather than lambda's the help will be clear. Glancing through the code, I think it's coming from gptel-transient.el. For example, gptel-system-prompt-update an gptel-system-prompt-cancel would read easier than "byte-code function xyz".

(Thanks for creating gptel. I'm just getting started with it and it looks excellent).

Backend

None

Steps to Reproduce

  1. M-x gptel
  2. Type a question
  3. C-c M-x gptel-send
  4. In the options window, type s followed by s to set the system prompt
  5. In the *gprel-prompt* buffer type C-h b you'll see:
Key                  Binding
C-c C-c		#<byte-code-function 152>
C-c C-k		#<byte-code-function 69B>

Additional Context

Emacs 30, Linux

Backtrace

Log Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions