Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolve warnings in emacs 29 #61

Open
takaxp opened this issue Mar 5, 2023 · 2 comments
Open

resolve warnings in emacs 29 #61

takaxp opened this issue Mar 5, 2023 · 2 comments
Assignees

Comments

@takaxp
Copy link
Owner

takaxp commented Mar 5, 2023

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 takaxp self-assigned this Mar 5, 2023
@takaxp takaxp changed the title resolve warning in emacs 29 resolve warnings in emacs 29 Mar 5, 2023
@takaxp
Copy link
Owner Author

takaxp commented Mar 5, 2023

@ed9w2in6
Copy link

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’.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants