Skip to content

No isearch-esque unprettifying while searching #128

@slotThe

Description

@slotThe

One feature (?) of the default isearch that's extremely convenient is unprettifying prettify-symbols-mode symbols while in search. It seems that ctrlf does not do this while searching, regardless of the setting of prettify-symbols-unprettify-at-point.

For example, with ctrlf-mode disabled:

  1. Enter e.g., emacs-lisp-mode (or any other mode for which prettify-symbols-mode has some default symbols)
  2. Set prettify-symbols-unprettify-at-point to some value that unprettifies things (e.g., 'right-edge)
  3. M-x prettify-symbols-mode RET
  4. Type (lambda ()). This should now show up as (λ ()).
  5. C-r l (that is, isearch-backward for "l") now takes you back to the "l" in "lambda", but also unprettifies "λ" to "lambda".

With ctrlf-mode enabled, point 5 above works differently; pressing C-r l also takes you back to the "l" in "lambda", but does not unprettify "λ". This is only done after pressing RET, ending the search.

Some example screenshots:

no search isearch ctrlf
2022-11-20-103331_128x57_scrot 2022-11-20-103106_154x68_scrot 2022-11-20-103119_218x61_scrot

I would take a stab at this myself, but I have absolutely now idea where to start; any tips?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions