[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 4063d4c 06/85: org: Rename for more consistency
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 4063d4c 06/85: org: Rename for more consistency |
Date: |
Mon, 27 Sep 2021 15:57:38 -0400 (EDT) |
branch: externals/org
commit 4063d4c2d7d5522fb505803a9cdc03bf3e67f4ec
Author: Marco Wahl <marcowahlsoft@gmail.com>
Commit: Marco Wahl <marcowahlsoft@gmail.com>
org: Rename for more consistency
* lisp/org.el (org-get-previous-sibling): Rename from
org-get-last-sibling to be more consistent with the rest of Emacs.
org-get-last-sibling stays as obsolete alias.
---
etc/ORG-NEWS | 6 ++++++
lisp/org-compat.el | 2 ++
lisp/org.el | 8 ++++----
3 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index ad6cfa3..f852dc1 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -423,6 +423,12 @@ custom completion functions.
*** Providing =directory-empty-p= from Emacs 28 as =org-directory-empty-p=
+*** =org-get-last-sibling= marked as obsolete
+
+Use =org-get-previous-sibling= instead. This is just a rename to have
+a more consistent naming. E.g. recall the pair of funtctions
+=next-line= / =previous-line=.
+
* Version 9.4
** Incompatible changes
*** Possibly broken internal file links: please check and fix
diff --git a/lisp/org-compat.el b/lisp/org-compat.el
index 4ee847b..b6d548a 100644
--- a/lisp/org-compat.el
+++ b/lisp/org-compat.el
@@ -772,6 +772,8 @@ context. See the individual commands for more information."
(define-obsolete-function-alias 'org-copy 'org-refile-copy "9.4")
+(define-obsolete-function-alias 'org-get-last-sibling
'org-get-previous-sibling "9.4")
+
;;;; Obsolete link types
(eval-after-load 'ol
diff --git a/lisp/org.el b/lisp/org.el
index 733dda4..4cd2118 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6727,8 +6727,8 @@ This function is the default value of the hook
`org-cycle-hook'."
;; First, find a reasonable region to look at:
;; Start two siblings above, end three below
(let* ((beg (save-excursion
- (and (org-get-last-sibling)
- (org-get-last-sibling))
+ (and (org-get-previous-sibling)
+ (org-get-previous-sibling))
(point)))
(end (save-excursion
(and (org-get-next-sibling)
@@ -7620,7 +7620,7 @@ case."
(setq arg (prefix-numeric-value arg))
(org-preserve-local-variables
(let ((movfunc (if (> arg 0) 'org-get-next-sibling
- 'org-get-last-sibling))
+ 'org-get-previous-sibling))
(ins-point (make-marker))
(cnt (abs arg))
(col (current-column))
@@ -20659,7 +20659,7 @@ This is like outline-next-sibling, but invisible
headings are ok."
(unless (or (eobp) (< (funcall outline-level) level))
(point))))
-(defun org-get-last-sibling ()
+(defun org-get-previous-sibling ()
"Move to previous heading of the same level, and return point.
If there is no such heading, return nil."
(let ((opoint (point))
- [elpa] externals/org df51e93 53/85: Merge branch 'bugfix', (continued)
- [elpa] externals/org df51e93 53/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27
- [elpa] externals/org 72c9f1b 43/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27
- [elpa] externals/org acc49d5 41/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27
- [elpa] externals/org 1f3722c 65/85: Backport commit c78e16962 from Emacs, ELPA Syncer, 2021/09/27
- [elpa] externals/org c305bb7 69/85: org-agenda: Allow org-agenda-overriding-header to be a function, ELPA Syncer, 2021/09/27
- [elpa] externals/org 2db02f9 70/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27
- [elpa] externals/org 177745e 73/85: doc/org-manual.org (Citations handling): New section, ELPA Syncer, 2021/09/27
- [elpa] externals/org 1f2c26a 15/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27
- [elpa] externals/org 815c0b3 19/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27
- [elpa] externals/org f5392c4 08/85: Merge branch 'km/from-emacs-master', ELPA Syncer, 2021/09/27
- [elpa] externals/org 4063d4c 06/85: org: Rename for more consistency,
ELPA Syncer <=
- [elpa] externals/org 9a4a24a 12/85: mk/targets.mk: Fix ORGVERSION in tag-less repos, ELPA Syncer, 2021/09/27
- [elpa] externals/org 2311677 13/85: mk/server.mk: Use a new path, ELPA Syncer, 2021/09/27
- [elpa] externals/org ce99b55 14/85: Merge commit '986341bd08', ELPA Syncer, 2021/09/27
- [elpa] externals/org 26b0297 20/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27
- [elpa] externals/org 45a5f17 21/85: org-manual.org: Augment TODO keywords example, ELPA Syncer, 2021/09/27
- [elpa] externals/org 35690cd 36/85: org-src.el (org-src--contents-for-write-back): Do not indent blank lines, ELPA Syncer, 2021/09/27
- [elpa] externals/org faf1ba8 34/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27
- [elpa] externals/org 63a5af9 63/85: Backport commit 85e9e5f61 from Emacs, ELPA Syncer, 2021/09/27
- [elpa] externals/org 5e58af5 52/85: oc-csl: Use citeproc-el to create CSL processor itemgetters, ELPA Syncer, 2021/09/27
- [elpa] externals/org be0cdd1 40/85: org-mouse: Support intermediate-state checkboxes, ELPA Syncer, 2021/09/27