Questions tagged [prompt]
36 questions
4
votes
0 answers
read-char behaving unpredictably
In a nutshell, the problem I'm having is that evaluating the expression
(read-char "some prompt")
sometimes fails to show the specified prompt (but works as expected otherwise).
Unfortunately, from my perspective, the problem shows up completely…

kjo
- 3,145
- 14
- 42
3
votes
1 answer
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)
(propertize str 'face
…

ceving
- 1,308
- 1
- 14
- 28
3
votes
2 answers
How to force Yes/y answer to `emacs has changed since visited or saved. Save anyway?` prompt
I am working in a git-repo using zsh shell.
On the background, git-auto-fetch plugin is running in order to automatically fetch all changes from all remotes while I am working in a git-initialized directory.
Due to this, if the buffer I am using in…

alper
- 1,238
- 11
- 30
3
votes
1 answer
Change prompt style to minibuffer from GUI dialogs
Emacs by default does not ask if you are sure you want to exit Emacs, so I added this to my configuration to prompt me to answer yes or no before quitting Emacs.
(setq confirm-kill-emacs 'y-or-n-p) ;; Confirm before killing emacs
I use…

apoorv569
- 113
- 8
3
votes
1 answer
Set focus to minibuffer window
Some commands use Emacs' minibuffer to prompt for input.
I occasionally do something which moves the focus to another window and away from the minibuffer. In these cases I cycle windows with C-x o until I regain focus on the echo area or point and…
user66
3
votes
0 answers
Remove extra prompts in inferior-python-mode with ipython
emacs24.5 -Q
M-: (setq python-shell-interpreter "ipython") RET
M-x run-python RET
Python 3.5.1 (default, Dec 7 2015, 12:58:09)
Type "copyright", "credits" or "license" for more information.
IPython 4.0.0 -- An enhanced Interactive Python.
? …

PythonNut
- 10,243
- 2
- 29
- 75
2
votes
1 answer
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 inputs: y, n, ! and SPC.
It refused most other…

shynur
- 4,065
- 1
- 3
- 23
2
votes
2 answers
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 file. This trick also works when i use emacs to…

thinksinbinary
- 121
- 3
2
votes
2 answers
Prompt with pre-populated minibuffer input
I need to prompt user for input, but I also would like to prepend the user's minibuffer input with a string. e.g.:
user runs my function
after the prompt, the text awesome (hardcoded string) is automatically inserted in the minibuffer
user can…

iLemming
- 1,223
- 9
- 14
2
votes
1 answer
PS1 under term and shell doesn't match system
I find under both shells and terms in Emacs my prompt does not appear as I would expect based on my $PS1 appears as...
# Shell under Emacs
]0;slackline@583.datascience.work.com: /home/slackline@samba.sheffield.work.comslackline@583 ~ $ echo…

slackline
- 293
- 3
- 14
2
votes
3 answers
call write-file interactively with prompting
I have a function that creates a buffer, with a default file name, and would like the first user action for that buffer be a prompt to write the buffer to a file, allowing the user to change the default, but offering the default in the minibuffer…

user1404316
- 769
- 5
- 12
2
votes
1 answer
How to automatically select an option in a specific prompt?
When I'm programming Python, I will use rope to rename variables (using ropemacs). rope-rename pops up a dialogue after you provide a new variable name, where you can preview the change, cancel, or perform the refactoring.
For example:
Choose what…

JCC
- 989
- 5
- 15
1
vote
1 answer
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
Iure repudiandae non alias.
Rerum quia dicta sunt.
Omnis veniam velit…
user19777
1
vote
1 answer
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 for speed up commits a bit more (when I don't feel like using magit - often because this "takes me away" from my current file).
(defhydra…

Att Righ
- 725
- 4
- 14
1
vote
1 answer
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 read-from-minibuffer directly from the hook, since…

telotortium
- 233
- 1
- 7