Questions tagged [point]
is the location where most editing commands take effect, which is by default indicated by the cursor in the selected window. Emacs remembers the last location of the point for each buffer and when a buffer is activated, Emacs returns the cursor to the last known point.
79 questions
0 votes
2 answers
68 views
Append to a buffer and recenter
I have very practically zero experience with elisp but after reading the intro to programming that comes with emacs and trying out things I was able to put together a function that will evaluate a ...
3 votes
2 answers
387 views
Any way to cancel C-q quoted-insert?
Is there a way to cancel the quoted-insert that begins when I press C-q? Sometimes when I mean to press C-w, I miss and hit the Q key instead of the W key. Trying to cancel C-q with C-g inserts a ...
0 votes
1 answer
103 views
Finding out whether point is at the beginning of a minibuffer with initial text
I'm using Vertico for completion, which uses the command vertico-exit-input to exit, particularly when the input is empty. I would like to trigger this command when I press the left arrow key while ...
0 votes
2 answers
147 views
How could I get ielm to evaluate a function at the last point I was in the previous buffer?
I tried different combinations of save-excursion or ielm-change-working-buffer, but no success. I'm currently trying to see if there's a way to save a point in a buffer (using registers?) and run a ...
0 votes
1 answer
555 views
How to move the text cursor to a given position?
How can I move the text cursor to any of these locations, using Lisp? (let ((beg (progn (skip-syntax-backward "^ " (line-beginning-position)) (point))) (end (...
4 votes
1 answer
2k views
Get current point position in elisp function
I want to make a logger that display line number of the point. In init.el I wrote the following function: (defun logger () "Print logger" (print (concat "print(\"" (what-...
2 votes
2 answers
135 views
Can I have a selected region that doesn't have point (cursor position) at one of its ends?
I have C-a bound to mark-whole-buffer to replicate the "select all" feature of other standard GUI editors (I also use cua-mode), as described in https://stackoverflow.com/questions/22544655/...
1 vote
1 answer
167 views
How to get a character's face if one cannot move point to it?
When I want to find out a character's face, I usually move point to it, and run M-x describe-face. This approach requires being able to move point to the character of interest, which is not always ...