diff options
| author | Po Lu | 2025-03-05 15:00:22 +0800 |
|---|---|---|
| committer | Po Lu | 2025-03-05 15:00:22 +0800 |
| commit | b06d605bc0d7fd76dc76ba04d3ac8719f9bce5c5 (patch) | |
| tree | ae4368ec4493bb16fb762881400f087fe6dc7dcd | |
| parent | f5730e02518ec9758744267fd4866e2240491be9 (diff) | |
| parent | 121371a706491fde8c06d95b13c16703d53f6fa3 (diff) | |
| download | emacs-b06d605bc0d7fd76dc76ba04d3ac8719f9bce5c5.tar.gz emacs-b06d605bc0d7fd76dc76ba04d3ac8719f9bce5c5.zip | |
Merge from savannah/emacs-30
121371a7064 Move java/incrementing-version-code to AndroidManifest.xm...
8099dc6e3ae Provide an Android version code derived from the Emacs ve...
59fcb2aa1b2 ; * lisp/register.el (register-use-preview): Doc fix (bug...
0383937a701 ; Improve documentation of 'shortdoc'
| -rw-r--r-- | admin/admin.el | 9 | ||||
| -rw-r--r-- | java/AndroidManifest.xml.in | 15 | ||||
| -rw-r--r-- | java/incrementing-version-code | 0 | ||||
| -rw-r--r-- | lisp/emacs-lisp/shortdoc.el | 6 | ||||
| -rw-r--r-- | lisp/register.el | 5 |
5 files changed, 32 insertions, 3 deletions
diff --git a/admin/admin.el b/admin/admin.el index 90bef11baf9..542556a65e0 100644 --- a/admin/admin.el +++ b/admin/admin.el | |||
| @@ -98,6 +98,10 @@ Optional argument DATE is the release date, default today." | |||
| 98 | (defvar admin-git-command (executable-find "git") | 98 | (defvar admin-git-command (executable-find "git") |
| 99 | "The `git' program to use.") | 99 | "The `git' program to use.") |
| 100 | 100 | ||
| 101 | (defvar admin-android-version-code-regexp | ||
| 102 | "\\bAuto-incrementing version code\\(?:.\\|\n\\)*\\([[:digit:]]\\{9\\}\\)$" | ||
| 103 | "Regexp with which to detect the version code in AndroidManifest.xml.") | ||
| 104 | |||
| 101 | (defun set-version (root version) | 105 | (defun set-version (root version) |
| 102 | "Set Emacs version to VERSION in relevant files under ROOT. | 106 | "Set Emacs version to VERSION in relevant files under ROOT. |
| 103 | Root must be the root of an Emacs source tree." | 107 | Root must be the root of an Emacs source tree." |
| @@ -122,6 +126,11 @@ Root must be the root of an Emacs source tree." | |||
| 122 | (rx (and "AC_INIT" (1+ (not (in ?,))) | 126 | (rx (and "AC_INIT" (1+ (not (in ?,))) |
| 123 | ?, (0+ space) ?\[ | 127 | ?, (0+ space) ?\[ |
| 124 | (submatch (1+ (in "0-9.")))))) | 128 | (submatch (1+ (in "0-9.")))))) |
| 129 | (set-version-in-file root "java/AndroidManifest.xml.in" | ||
| 130 | (apply #'format "%02d%02d%02d000" | ||
| 131 | (mapcar #'string-to-number | ||
| 132 | (split-string version "\\."))) | ||
| 133 | admin-android-version-code-regexp) | ||
| 125 | (set-version-in-file root "nt/README.W32" version | 134 | (set-version-in-file root "nt/README.W32" version |
| 126 | (rx (and "version" (1+ space) | 135 | (rx (and "version" (1+ space) |
| 127 | (submatch (1+ (in "0-9.")))))) | 136 | (submatch (1+ (in "0-9.")))))) |
diff --git a/java/AndroidManifest.xml.in b/java/AndroidManifest.xml.in index c066d91011a..66b26e65088 100644 --- a/java/AndroidManifest.xml.in +++ b/java/AndroidManifest.xml.in | |||
| @@ -338,3 +338,18 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. --> | |||
| 338 | android:label="GNU Emacs service"/> | 338 | android:label="GNU Emacs service"/> |
| 339 | </application> | 339 | </application> |
| 340 | </manifest> | 340 | </manifest> |
| 341 | |||
| 342 | <!-- Auto-incrementing version code. | ||
| 343 | |||
| 344 | This comment contains an Android version code | ||
| 345 | (https://developer.android.com/studio/publish/versioning#versioningsettings) | ||
| 346 | corresponding to the current Emacs version. The version code in | ||
| 347 | AndroidManifest.xml.in is hard-coded to a fixed value to facilitate | ||
| 348 | package downgrades. Some automated systems employed by Android package | ||
| 349 | repositories require an incrementing numeric version code to detect | ||
| 350 | upgrades, which is provided here and is altered by admin/admin.el. | ||
| 351 | Refer to e.g. https://forum.f-droid.org/t/emacs-packaging/30424/25. | ||
| 352 | |||
| 353 | Version-code: 300050000 | ||
| 354 | |||
| 355 | --> | ||
diff --git a/java/incrementing-version-code b/java/incrementing-version-code new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/java/incrementing-version-code | |||
diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el index 77a4ec4f21c..15898ac9687 100644 --- a/lisp/emacs-lisp/shortdoc.el +++ b/lisp/emacs-lisp/shortdoc.el | |||
| @@ -1607,10 +1607,12 @@ A FUNC form can have any number of `:no-eval' (or `:no-value'), | |||
| 1607 | ;;;###autoload | 1607 | ;;;###autoload |
| 1608 | (defun shortdoc-display-group (group &optional function same-window) | 1608 | (defun shortdoc-display-group (group &optional function same-window) |
| 1609 | "Pop to a buffer with short documentation summary for functions in GROUP. | 1609 | "Pop to a buffer with short documentation summary for functions in GROUP. |
| 1610 | Interactively, prompt for GROUP. | ||
| 1610 | If FUNCTION is non-nil, place point on the entry for FUNCTION (if any). | 1611 | If FUNCTION is non-nil, place point on the entry for FUNCTION (if any). |
| 1611 | If SAME-WINDOW, don't pop to a new window." | 1612 | If SAME-WINDOW, don't pop to a new window." |
| 1612 | (interactive (list (completing-read "Show summary for functions in: " | 1613 | (interactive (list (completing-read |
| 1613 | (mapcar #'car shortdoc--groups)))) | 1614 | "Group of functions for which to show summary: " |
| 1615 | (mapcar #'car shortdoc--groups)))) | ||
| 1614 | (when (stringp group) | 1616 | (when (stringp group) |
| 1615 | (setq group (intern group))) | 1617 | (setq group (intern group))) |
| 1616 | (unless (assq group shortdoc--groups) | 1618 | (unless (assq group shortdoc--groups) |
diff --git a/lisp/register.el b/lisp/register.el index 0e9d5676943..a338eb586d2 100644 --- a/lisp/register.el +++ b/lisp/register.el | |||
| @@ -147,7 +147,10 @@ all; the preview buffer is still accessible with `help-char' (\\`C-h'). | |||
| 147 | 147 | ||
| 148 | When set to `traditional' (the default), provide a more basic preview | 148 | When set to `traditional' (the default), provide a more basic preview |
| 149 | according to `register-preview-delay'; this preserves the traditional | 149 | according to `register-preview-delay'; this preserves the traditional |
| 150 | behavior of Emacs 29 and before." | 150 | behavior of Emacs 29 and before. |
| 151 | |||
| 152 | Setting this variable with `setq' has no effect; use either `setopt' | ||
| 153 | or `customize-option' to change its value." | ||
| 151 | :type '(choice | 154 | :type '(choice |
| 152 | (const :tag "Use preview" t) | 155 | (const :tag "Use preview" t) |
| 153 | (const :tag "Use preview and exit by pressing register name" insist) | 156 | (const :tag "Use preview and exit by pressing register name" insist) |