org-tree-slide icon indicating copy to clipboard operation
org-tree-slide copied to clipboard

resolve warnings in emacs 29

Open takaxp opened this issue 2 years ago • 2 comments

In org-tree-slide-move-next-tree: org-tree-slide.el:369:21: Warning: ‘point-at-bol’ is an obsolete function (as of 29.1); use ‘line-beginning-position’ or ‘pos-bol’ instead.

In org-tree-slide--stop: org-tree-slide.el:583:4: Warning: ‘org-show-siblings’ is an obsolete function (as of 9.6); use ‘org-fold-show-siblings’ instead.

In org-tree-slide--display-tree-with-narrow: org-tree-slide.el:610:15: Warning: ‘point-at-bol’ is an obsolete function (as of 29.1); use ‘line-beginning-position’ or ‘pos-bol’ instead. org-tree-slide.el:613:6: Warning: ‘org-show-entry’ is an obsolete function (as of 9.6); use ‘org-fold-show-entry’ instead.

In org-tree-slide--first-heading-with-narrow-p: org-tree-slide.el:944:32: Warning: ‘point-at-bol’ is an obsolete function (as of 29.1); use ‘line-beginning-position’ or ‘pos-bol’ instead.

In outline-show-children: org-tree-slide-compt.el:20:9: Warning: ‘outline-view-change-hook’ is an obsolete variable (as of 29.1).

takaxp avatar Mar 05 '23 04:03 takaxp

need to check below:

  • https://github.com/takaxp/org-mode/blob/main/lisp/org-compat.el
  • https://github.com/emacs-compat/compat/blob/main/compat-29.el

takaxp avatar Mar 05 '23 08:03 takaxp

FYI, deduplicated Compile-Log outputs when doing byte-compile-file:

  1. ‘org-show-entry’ is an obsolete function (as of 9.6); use ‘org-fold-show-entry’ instead.
  2. ‘org-show-siblings’ is an obsolete function (as of 9.6); use ‘org-fold-show-siblings’ instead.
  3. ‘point-at-bol’ is an obsolete function (as of 29.1); use ‘line-beginning-position’ or ‘pos-bol’ instead.

Regarding 3., for point-at-bol I recommend line-beginning-position since from Emacs 29.1 point-at-bol is just alias for line-beginning-position. Doing C-h f point-at-bol should show: point-at-bol is an alias for ‘line-beginning-position’ in ‘subr.el’.

ed9w2in6 avatar Aug 23 '23 05:08 ed9w2in6