Add new functions eol and bol
* doc/lispref/positions.texi (Text Lines): Document them * lisp/emacs-lisp/shortdoc.el: Mention them, and also the buffer/line predicates. * src/editfns.c (bol): New function. (Fbol): New defun. (Fline_beginning_position): Use `bol'. (eol): New function. (Feol): New defun. (Fline_end_position): Use `eol'.
This commit is contained in:
parent
503112d1f0
commit
f117b5df4d
4 changed files with 101 additions and 40 deletions
|
@ -941,12 +941,24 @@ A FUNC form can have any number of `:no-eval' (or `:no-value'),
|
|||
:eval (point-min))
|
||||
(point-max
|
||||
:eval (point-max))
|
||||
(eol
|
||||
:eval (eol))
|
||||
(bol
|
||||
:eval (bol))
|
||||
(bolp
|
||||
:eval (bolp))
|
||||
(eolp
|
||||
:eval (eolp))
|
||||
(line-beginning-position
|
||||
:eval (line-beginning-position))
|
||||
(line-end-position
|
||||
:eval (line-end-position))
|
||||
(buffer-size
|
||||
:eval (buffer-size))
|
||||
(bobp
|
||||
:eval (bobp))
|
||||
(eobp
|
||||
:eval (eobp))
|
||||
"Moving Around"
|
||||
(goto-char
|
||||
:no-eval (goto-char (point-max))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue