Skip to content

Messages in mini-buffer #6

@haji-ali

Description

@haji-ali

Hello,

Thanks for this package. I had a similar snippet based on modifying messages but your solution with overlays is much cleaner and even allows displaying the bar in the minibuffer!

I've already suggested a few pull requests, but I found one issue when I have a "constant" message in post-command-hook which I couldn't solve yet. See below for an example:

(minibuffer-with-setup-hook
    (lambda ()
      (add-hook 'post-command-hook
                (lambda () (message "Hello"))
                nil t))
  (read-string "Input: "))

When inputting text, if echo-bar-mode is enabled the point is placed after the message (but before the echo-bar). If echo-bar-mode is disabled, the point is correctly placed before the message and at the end of the input.

Any idea how this can be solved? I can get the correct behavior for this example by not setting the cursor property in echo-bar-set-text but this of course breaks when there's not message at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions