Skip to content

Remove last mentioning xemacs#204

Merged
matsl merged 4 commits intomasterfrom
remove_last_mentioning_xemacs
Jul 17, 2022
Merged

Remove last mentioning xemacs#204
matsl merged 4 commits intomasterfrom
remove_last_mentioning_xemacs

Conversation

@matsl
Copy link
Copy Markdown
Collaborator

@matsl matsl commented Jul 9, 2022

What

Remove last mentioning xemacs.

Why

Since XEmacs is not supported it is strange to have code and comments that mentions XEmacs.

Note

This PR has two parts:

  1. Remove XEmacs from a comment where it looks like the comment still is valid for Emacs so changed the sentence to work with that.
  2. Second is more controversial. From the existing comment is sounds like the preferred name was not chosen due to a XEmacs byte compile bug. So I got ambitious and renamed it back, removed the comment and added an obsolete definition. An alternative would to keep the function as is and simply remove the comment!? (Learned to use wgrep which was handy and could be useful for future changes like this.)

@matsl matsl requested a review from rswgnu July 9, 2022 16:12
@matsl matsl force-pushed the remove_last_mentioning_xemacs branch from 0ce88c4 to 5a2ccbd Compare July 16, 2022 20:17
Copy link
Copy Markdown
Owner

@rswgnu rswgnu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See inline comment on version numbers. Approved once you make that change.

(defalias 'kotl-mode:beginning-of-line 'kotl-mode:to-start-of-line)
(defalias 'kotl-mode:beginning-of-visual-line 'kotl-mode:to-start-of-line)
(define-obsolete-function-alias 'kotl-mode:to-start-of-line #'kotl-mode:beginning-of-line "9.0")
(defalias 'kotl-mode:beginning-of-visual-line 'kotl-mode:beginning-of-line)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the version be 8.0.1.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would prefer version 8.0.1 when you make any versioned changes since these will be in that release.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I misunderstood the WHEN parameter to be when the alias would be removed and thus effectively remove the old function. Looking now I understand it is when the it is first marked as obsolete so 8.0.1 make perfect sense. Thanks for pointing that out. I will fix.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed that I marked hypb:replace-match-string as obsolete from 9.0 as well. So I fixed this with this PR too.

@matsl matsl requested a review from rswgnu July 17, 2022 08:27
matsl added 4 commits July 17, 2022 16:21
Was not used due to legacy XEmacs byte compiler bug.
Marked old name kotl-mode:to-start-of-line as obsolete from version 9.0
This is the next release so it is when newly obsolete functions first
will be marked as obsolete.
@matsl matsl force-pushed the remove_last_mentioning_xemacs branch from 84cc725 to e1be973 Compare July 17, 2022 14:26
@matsl matsl merged commit a81ca57 into master Jul 17, 2022
@matsl matsl deleted the remove_last_mentioning_xemacs branch July 17, 2022 14:30
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

Successfully merging this pull request may close these issues.

2 participants