Questions tagged [message]
The message tag has no usage guidance.
71
questions
12
votes
2
answers
429
views
How to display a message in echo-area only
Is it possible to display a message in the echo area without logging it in buffer *Messages*?
0
votes
1
answer
214
views
Printing coloured text in emacs mini-buffer and *Messages* buffer
I want to print coloured text in the minibuffer and in the Messages. Can this be done and how?
2
votes
2
answers
97
views
changing display function in define-word package
How to replace the displayfn from message to a function which displays the result in a temporary window? (I have limited knowledge of elisp.)
2
votes
1
answer
58
views
Message in the Echo Area Disappear once Emacs is not idle
I want the current message in the Echo Area to keep showing up until the next message (which will also appear in the *Messages* buffer) is emitted.
But how my Emacs does now is:
$ emacs -q
Use M-x ...
1
vote
1
answer
53
views
Why does let binding sometimes seem to fail to override a value?
In this example, the message isn't shown, but it's still logged (message-log-max is ignored).
(let ((inhibit-message t)
(message-log-max nil))
(hs-minor-mode))
The text Showing all blocks ... ...
5
votes
1
answer
656
views
Possible to supress the: "Blocking call to accept-process-output with quit inhibited!!" message?
When running a process from a timer, this message is printed a lot.
Is there a way to suppress the message entirely?
For reference see: https://emacs.stackexchange.com/a/50681/2418
0
votes
1
answer
282
views
Suppress "Ignoring <ruby gem>" messages on emacs startup
When I start emacs, I get a bunch of messages
Ignoring charlock_holmes-0.7.7 because its extensions are not built. Try: gem pristine charlock_holmes --version 0.7.7
Ignoring escape_utils-1.2.1 ...
0
votes
1
answer
25
views
How to read-from-string, but keep strings inside as it is?
With a elisp piece of code:
(message "%s" (read-from-string "(setq a \"a string here\" )"))
I got result:
((setq a a string here) . 25)
But I want result is:
((setq a &...
1
vote
2
answers
102
views
How to capture a function's `message` output?
Functions from some packages perform actions, but instead of returning the result directly, they display it in the message area using the message function. This appears to make composing such ...
0
votes
1
answer
47
views
Is there a way to keep the *Messages* buffer scrolled to the bottom?
I like to watch the *Messages* buffer while I debug elisp code. However, I often have to manually scroll the buffer as it fills up to see new messages. Is there any way to keep the *Messages* buffer ...
0
votes
1
answer
16
views
Filling list of message for later display
I am calling various elisp functions (h*). But because the functions can themselves call message, the messages with "+" will be all over the place. To keep them together, I could add the ...
13
votes
4
answers
2k
views
How to add a timestamp to each entry in Emacs' *Messages* buffer?
I depend on the *Messages* buffer a lot, but entries are not timestamped.
How can one add a timestamp to each entry in Emacs' Messages buffer?
So that something like this:
Loading /Users/gsl/lisp.d/...
0
votes
2
answers
25
views
Printing text on same line in messages buffer
How can I use message such that I keep writing on the same line
(message "Some text")
(add-to-list 'load-path "~/bin/rainbow-delimiters")
(require 'rainbow-delimiters))
(message &...
3
votes
1
answer
278
views
How to suppress `When done with a buffer, type C-x #` warning message?
When I open a buffer I keep seeing following message in the minibuffer:
When done with a buffer, type C-x # . Is it possible completely to suppress this message?
I'm using emacsclient -t -q to open ...
0
votes
1
answer
52
views
Getting prefix as argument
With this function, I get the error
test: Wrong type argument: stringp, 2
Is it good to pass prefix this way? Thought that the argument prefix would be filled up with the prefix value.
(defun test (...
2
votes
1
answer
136
views
Is it possible to suppress `LSP :: Connected to [pyls:N].` message on minibuffer?
When I open a Python file I keep seeing LSP :: Connected to [pyls:N] message in the minibuffer. How can I suppress it?
Since I know I have enabled lsp, I don't want to see that message always whenever ...
0
votes
1
answer
32
views
Splitting sentence for use with message
Have got a long message that I want to split up into two parts and pass them to the message command.
(message "This sentence to split")
How can I split the sentence in a way that is ...
0
votes
1
answer
37
views
Newlines when using message
Is this the way to add newlines to message string?
(message "Some string \n Another string")
0
votes
0
answers
39
views
Sorting words according to count
I am using the following function to list words within a region, then sort them according to the occurrence frequency. Am using (sort SEQ PREDICATE) and then calling $sorted-words to print the sorted ...
0
votes
1
answer
100
views
How to display the currently running function in the echo area?
I have this function:
(defun foo ()
(interactive)
(call-interactively 'bar)
(call-interactively 'baz)
(call-interactively 'qux)
(call-interactively 'quux)
(call-interactively 'fred))
...
0
votes
0
answers
28
views
How can I keep result of pyimport more than a second?
I am using https://github.com/Wilfred/pyimport to insert missing imports using M-x pyimport-insert-missing.
Example: Path() where its import is missing. When I bring cursor on top of Path and apply ...
0
votes
1
answer
17
views
How to show recent directories on separate lines in echo area?
Linux Mint 20,
Emacs 27.2
Install package dired, dired+
I want to show recent directories visited in the minibuffer. Something like this:
I tried this:
(defun my-recent-dir ()
(interactive)
...
3
votes
2
answers
134
views
How do I suppress messages in the echo area (e.g. `Fill column set to 80 (was 80)`)?
When I open a Python file I keep seeing Fill column set to 80 (was 80) message in the echo area. I know I have set it this limit , but I don't want to be keep reminded about it.
Is it possible to ...
7
votes
4
answers
2k
views
Suppress message in minibuffer when a buffer is saved?
Whenever a buffer is saved, a message is displayed in minibuffer.
Wrote foo.bar
I use real-auto-save to save modified buffers every 5 seconds. Due to this minibuffer is getting spammed. Sometimes, ...
0
votes
0
answers
33
views
Messages in the minibuffer (or echo area) waiting for user RETURN
What ways can I display a message in the minibuffer (or echo area) waiting for the user RETURN.
I mean I want to display a message and be sure that a script waits for the user to read it.
I usually ...
1
vote
1
answer
45
views
Why does the prompt remain even if I quit my command?
I'm trying to write a function that should allow me to conditionally choose how to replace a regexp. E.g. if I have the string "A. Z" I'd like to choose if replace it with "A@. Z" ...
2
votes
1
answer
1k
views
"Marker does not point anywhere" error when using (message)
I'm running into the error "Marker does not point anywhere" when I try to print a message both in after-change-functions and buffer-list-update-hook. Curiously if only one hook or the other is active ...
5
votes
1
answer
121
views
How to suppress `Wrote /home/user/.emacs.d/recentf` message in minibuffer
In the minibuffer I keep seeing:
Wrote /home/user/.emacs.d/recentf
Would it be possible to suppress this message? (Only for file name recentf file)
my minimal.el:
(setq recentf-max-saved-items 50)
(...
1
vote
1
answer
255
views
Percentage sign in `print` and `message`
I am trying to output
Humidity: 42%
using both functions print and message. While print has no problem with the literal percentage sign, message throws a "Format string ends in middle of format ...
1
vote
2
answers
441
views
Don't replace my buffers with *warnings* or *message* buffers?
Current behavior:
Emacs replaces one of my buffers with *warnings* or *messages* if I have multiple buffers open.
However Emacs creates a new buffer and displays *warnings* or *messages* if I have ...
3
votes
1
answer
140
views
messages buffer is spammed with tramp
I am connecting regularly to servers via tramp. Sometimes everything works fine but often times my messages buffer gets spammed full of
Tramp: Waiting for prompts from remote shell...done
Tramp: ...
3
votes
1
answer
225
views
How can I suppress the message `When done with this frame, type C-x 5 0`?
I am running emacs v26 daemon on the background and using a single terminal. Usually I open files using emacsclient -qt and close them using C-x C-s and C-x C-c to get back to terminal run the script ...
0
votes
1
answer
77
views
resize-temp-buffer doesn't work in my code when 2 windows are diplayed into the frame
I'm searching for a way to display messages while replacements are proposed to the users of a script.
I tried to write a macro but I'm in trouble with this code:
(defmacro with-user-explanation (...
2
votes
1
answer
82
views
When working on elisp where to show intermediate values?
I've only recently started diving deeper into elisp. I've been using message a lot in the past, much like println or print when in other languages. The trouble I have is that I'm writing elisp to ...
5
votes
1
answer
458
views
Is it possible suppress save message for undo-tree?
When I save my any file I am working on I always see following message, I believe this is related to my unto-tree configuration.
Wrote /home/alper/.emacs.d/undo/.!home!alper!current_folder!__init__.py....
1
vote
0
answers
325
views
Is this a normal behavior for *Flycheck error message*’s display?
The following is an example of how my flycheck errors show up on emacs:
Method name "createQATask" doesn't conform to
'[a-z_][a-z0-9_]{2,30}$' pattern [...
3
votes
1
answer
232
views
How to add a locally override the message function?
I would like to add a suffix to a message reported by a function called in some source I don't maintain.
Is there a way to locally override the message function so I can manipulate it before it's ...
1
vote
1
answer
1k
views
Org-mode calendar notifications on Windows 10
I'm looking for a way to have emacs send me desktop notifications (on Windows 10) for appointments in my org file. I did find a way to be notified within emacs (https://sachachua.com/blog/2007/11/...
15
votes
4
answers
1k
views
Disabling the "Auto-saving...done" message
I want my documents to be auto-saved, but I don't want to be interrupted with the message "Auto-saving...done" every few minutes.
Is there a way to just disable this message, but not the auto-saving ...
0
votes
0
answers
360
views
How to disable loading message, when I use emacs to open a easycrypt *.ec file
I use Emacs GUI in Ubuntu, when I use Emacs to open a easycrypt file, for example a.ec, Emacs will show a loading message at the bottom of the window, I guess it is in the minibuffer, but I am not ...
5
votes
2
answers
353
views
gnus "fancy" hyperlinks, bullet points, etc
Is there a way to get more formatting options from a gnus message buffer when composing a mail? I'd like to do hyperlinks of the style common in markdown or org-mode, viz:
[[example link][http://www....
4
votes
1
answer
129
views
Is there a way to read the current displayed message?
Ignoring the *Messages* buffer which is used for logging messages, and which can be disabled, is there a way to get the current message displayed using Elisp?
Asking because there are times when it's ...
1
vote
1
answer
84
views
How to block output of a command run with via `run-with-idle-timer`?
I use
(run-with-idle-timer 45 t 'org-save-all-org-buffers)
to automatically save all org-mode buffers when I am idling for 45 seconds. What I don't like about this is that it prints "All org-mode ...
1
vote
2
answers
317
views
Inhibiting `finished:` message from `async-shell-command`
Running (async-shell-command "echo test") prints echo test: finished to the echo area upon completion. I am running a function in the background on a loop with a special handler, and the message is ...
9
votes
3
answers
2k
views
Print message in echo area with no "quotes"?
Q: how do I print a message in the echo area without surrounding quotes?
Here's a simple command:
(defun test-fn ()
(interactive)
(message "Test message"))
When I call it as an interactive ...
2
votes
2
answers
515
views
Persistent message in the echo area?
I'm using emacs 25.1.
I know that I can send a message to the echo area via (message "Message text"). However, that message disappears whenever buffers are switched or other similar changes take ...
3
votes
2
answers
152
views
Prevent showing buffer reversion message while working in the minibuffer
Problem
When the file underlying buffer foo is changed, Emacs shows Reverting buffer 'foo'. in the echo area.
The problem is that it will do this even when I'm working in the minibuffer, and the ...
0
votes
1
answer
86
views
Why is the result of evaluating this function not being displayed in minibuffer?
I wrote an interactive function to get the contents of a line from the current position of point to the last non-blank character on a line.
However, when after evaluating the function with C-x C-e, ...
4
votes
1
answer
359
views
Prevent Emacs from messaging when it writes recentf
I've configured Emacs to save recentf every five minutes by using this code:
(run-at-time nil (* 5 60) 'recentf-save-list)
It works great, but after writing recentf Emacs feels it has to tell me ...
3
votes
1
answer
182
views
Unfill `mu4e` message before sending
I would like to unfill all paragraphs before sending a message with mu4e. This is because format=flowed is not respected by all platforms (particularly Gmail).
I figure that message-send-hook is the ...