mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
Make point-at-eol and point-at-bol obsolete
* lisp/subr.el (point-at-eol, point-at-bol): Make XEmacs compat aliases obsolete in favor of `pos-bol'/'line-beginning-position' or 'pos-eol'/'line-end-position'. Update callers. Ref: https://lists.gnu.org/r/emacs-devel/2022-08/msg00853.html
This commit is contained in:
parent
e425b7d231
commit
b7e867b841
134 changed files with 586 additions and 550 deletions
|
|
@ -544,11 +544,11 @@ didn't work, and overwrite existing files. Otherwise, ask each time."
|
|||
"Various"))))
|
||||
(goto-char (point-min))
|
||||
(when (re-search-forward "^Subject: ")
|
||||
(delete-region (point) (point-at-eol))
|
||||
(delete-region (point) (line-end-position))
|
||||
(insert subject))
|
||||
(goto-char (point-min))
|
||||
(when (re-search-forward "^From:")
|
||||
(delete-region (point) (point-at-eol))
|
||||
(delete-region (point) (line-end-position))
|
||||
(insert " " from))
|
||||
(let ((message-forward-decoded-p t))
|
||||
(message-forward post t))))
|
||||
|
|
@ -1763,7 +1763,7 @@ Gnus might fail to display all of it.")
|
|||
(unless (looking-at (concat gnus-uu-begin-string "\\|"
|
||||
gnus-uu-end-string))
|
||||
(when (not found)
|
||||
(setq length (- (point-at-eol) (point-at-bol))))
|
||||
(setq length (- (line-end-position) (line-beginning-position))))
|
||||
(setq found t)
|
||||
(beginning-of-line)
|
||||
(setq beg (point))
|
||||
|
|
@ -2068,7 +2068,7 @@ If no file has been included, the user will be asked for a file."
|
|||
(goto-char (point-min))
|
||||
(re-search-forward
|
||||
(concat "^" (regexp-quote mail-header-separator) "$") nil t)
|
||||
(setq header (buffer-substring (point-min) (point-at-bol)))
|
||||
(setq header (buffer-substring (point-min) (line-beginning-position)))
|
||||
|
||||
(goto-char (point-min))
|
||||
(when gnus-uu-post-separate-description
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue