Skip to content

Clean up Emacs http-status-code function#63

Open
rycee wants to merge 1 commit intofor-GET:generatorfrom
rycee:push-oxsotvnmlpoo
Open

Clean up Emacs http-status-code function#63
rycee wants to merge 1 commit intofor-GET:generatorfrom
rycee:push-oxsotvnmlpoo

Conversation

@rycee
Copy link
Copy Markdown

@rycee rycee commented Dec 23, 2025

Specifically, make the completing read show both status code and status phrase on the same line. This removes the need for "safe phrase" in the http-status constant since the description lookup always is done by the status code.

Here is an example using Vertico showing the completion buffer after typing "40" and "40 fo", respectively and finally the printout after choosing "403 Forbidden".

screenshot-20251223-145604 screenshot-20251223-145615 screenshot-20251223-150044

Specifically, make the completing read show both status code and
status phrase on the same line. This removes the need for "safe
phrase" in the `http-status` constant since the description lookup
always is done by the status code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant