Skip to content

Use simple patterns for locating version number - #1081

Merged
matsl merged 1 commit into
masterfrom
pr_smarter_version_update_using_patterns
Oct 18, 2026
Merged

matsl merged 1 commit into
masterfrom
pr_smarter_version_update_using_patterns

Conversation

@matsl

@matsl matsl commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

What

Makes it less likely that the wrong version number is updated.

  • hypb-release.el (hypb-release-version-file-list): Rename variable as
    it is now a list of lists.
    (hypb-release--replace-version): Replaces the version number based on
    a given pattern
    (hypb-release-update-version): Use hypb-release-update-version.
    (hypb-release-update-hyperbole-version-header): Add pattern.

  • test/MANIFEST: Add hypb-release-tests.el.

  • test/hypb-release-tests.el: New test file for hypb-release.el.
    (hypb-release-tests--replace-version):
    (hypb-release-tests--update-version): Test cases.

  • man/hyperbole.texi: Use EDITION and VERSION variables.

Why

With documents having static version numbers we need to be more
precise when looking for the number to updated. This uses a pattern of
leading or surrounding text to find the version number.

Also removes the use of plain text version numbers in hyperbole.texi
in favor of using the variables that is already there and used in
other places.

HY-NEWS is also removed from the list of files to update since that
should not be affected by a version bump. The version numbers in that
file are static.

Makes it less likely that the wrong version number is updated.

* hypb-release.el (hypb-release-version-file-list): Rename variable as
it is now a list of lists.
(hypb-release--replace-version): Replaces the version number based on
a given pattern
(hypb-release-update-version): Use hypb-release-update-version.
(hypb-release-update-hyperbole-version-header): Add pattern.

* test/MANIFEST: Add hypb-release-tests.el.

* test/hypb-release-tests.el: New test file for hypb-release.el.
(hypb-release-tests--replace-version):
(hypb-release-tests--update-version): Test cases.

* man/hyperbole.texi: Use EDITION and VERSION variables.
@matsl
matsl force-pushed the pr_smarter_version_update_using_patterns branch from 59c5c25 to 256d224 Compare October 16, 2026 20:05
@matsl
matsl requested a review from rswgnu October 16, 2026 20:10
Comment thread hypb-release.el
@matsl
matsl merged commit d8b2a4c into master Oct 18, 2026
6 checks passed
@matsl
matsl deleted the pr_smarter_version_update_using_patterns branch October 18, 2026 11:43
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