mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
(line): Add a beginning-op function.
This commit is contained in:
parent
e57d8da0a4
commit
9f5c7ace45
@ -106,6 +106,14 @@ bounds-of-thing-at-point."
|
||||
|
||||
;;=== Special cases =======================================================
|
||||
|
||||
;;--- Lines ---
|
||||
|
||||
;; bolp will be false when you click on the last line in the buffer
|
||||
;; and it has no final newline.
|
||||
|
||||
(put 'line 'beginning-op
|
||||
(function (lambda () (if (bolp) (forward-line -1) (beginning-of-line)))))
|
||||
|
||||
;;--- Sexps ---
|
||||
|
||||
(defun in-string-p ()
|
||||
|
Loading…
Reference in New Issue
Block a user