Questions tagged [prompt]
The prompt tag has no summary.
40 questions
0
votes
1
answer
89
views
How to configure eshell prompt to correctly display working directory on remote host over TRAMP?
Running emacs -Q for emacs 29.4 (build 2, x86_64-w64-mingw32):
~/.ssh $ cd /ssh:oracle-root:/
/ssh:oracle-root:~/ $ pwd
/ssh:oracle-root:/home/opc/
/ssh:oracle-root:~/ $ /bin/pwd
/
There should be ~/...
1
vote
0
answers
49
views
How to place point at end of current filename when using find-alternate-file
Billions of years ago (maybe in emacs18) the behavior of C-x C-v (find-alternate-file) changed. The current behavior is described in the manual thus: "When C-x C-v reads the file name to visit, ...
1
vote
1
answer
108
views
Emacs 29.1: read-string prompt and other messages in minibuffer
I recently upgraded to Emacs 29.1 from Emacs 26.3.
I primarily use Emacs as a LaTeX document editor. One of the things I do is use loops to select and isolate regions in the buffer for operations. In ...
1
vote
1
answer
72
views
Emacs 29.1: read-string prompt bug?
I have this example function:
(defun my-test ()
(interactive)
(read-string "Very\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nlong-prompt: ")...
2
votes
1
answer
145
views
Automatically kill an in-progress compilation when compile is (re)invoked?
Dozens of times per day i tap C-x m to build, then discover something i need to change, change it, tap C-x m again, and get a prompt from Emacs:
A compilation process is running; kill it? (yes or no)
...
2
votes
2
answers
842
views
I can't run gdb in emacs
I want to debug some C++ code in emacs with gdb. I tried to enter gdb with the command:
M-x RET gdb RET
Then I get a prompt that reads:
Enable debuginfod for this session? (y or [n])
Whatever I type,...
0
votes
0
answers
37
views
Why does (read-event) fail to show prompt?
I am having a problem with the built-in function read-event and I'd like to make sure I am using it in the proper manner before reporting this as a bug.
Here is a description of my problem:
In the *...
1
vote
1
answer
72
views
Write a function that prompts for a file from within a list
As a starting point, this:
(defvar myfoo "~/org/test-file-1.org" "myfoo") ; C-x C-e
(defun mybar()
(newline-and-indent)
(insert-file-contents myfoo)) ; C-x C-e
(mybar) ; C-x C-e
...
2
votes
1
answer
104
views
most commands are refused when prompted for querying whether to use a novice-confusing command
When a new user types M-x narrow-to-region, Emacs will prompt for a query:
Please type y, n, ! or SPC (the space bar): _
where the _ stands for a cursor.
Thus, Emacs only accepts these 4 character ...
2
votes
1
answer
146
views
Disable yes/no prompting in git-gutter?
I use git-gutter to keep track of git changes in my buffer while editing.
I created this hydra to speed up commits a bit more (when I don't feel like using magit - often because this "takes me ...
3
votes
1
answer
99
views
How to reset the colors at the end of the Eshell prompt?
I have the following prompt customization for Eshell:
(setq eshell-prompt-function
(lambda ()
(let ((c "#fdd"))
(let ((bc (lambda (str)
(...
0
votes
1
answer
272
views
How to call a interactive function with prompt from a lambda?
I have this little LaTeX helper function:
(defun my--insert-chord (chord)
"Prompt for a CHORD and insert it at point. TODO: make it agnostic to the package used."
(interactive "...
0
votes
1
answer
114
views
Change Emacs prompt [duplicate]
I have Emacs running as a package in MobaXterm
The problem is that Emacs has very ugly prompt.
If I disable PS1 in .bashrc than it works in Emacs fine but change MobaXterm terminal as well. Hence I ...
1
vote
1
answer
323
views
Non-blocking prompt for user input
I'm using the org-pomodoro, and I have added a function to the org-pomodoro-started-hook that prompts the user for a reminder for what they should do during the break. However, I don't want to call ...
2
votes
2
answers
281
views
Why does emacs recognize my wildcard with finding file but not with searching buffer?
In the linux terminal, i often use wildcards (*) as a shorter alternative to type in the whole file name: if the file is named foo-and-cats I just type in something like fo* in order to pull up the ...