1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00

Merge from savannah/emacs-30

121371a706 Move java/incrementing-version-code to AndroidManifest.xm...
8099dc6e3a Provide an Android version code derived from the Emacs ve...
59fcb2aa1b ; * lisp/register.el (register-use-preview): Doc fix (bug...
0383937a70 ; Improve documentation of 'shortdoc'
This commit is contained in:
Po Lu 2025-03-05 15:00:22 +08:00
commit b06d605bc0
5 changed files with 32 additions and 3 deletions

View file

@ -98,6 +98,10 @@ Optional argument DATE is the release date, default today."
(defvar admin-git-command (executable-find "git") (defvar admin-git-command (executable-find "git")
"The `git' program to use.") "The `git' program to use.")
(defvar admin-android-version-code-regexp
"\\bAuto-incrementing version code\\(?:.\\|\n\\)*\\([[:digit:]]\\{9\\}\\)$"
"Regexp with which to detect the version code in AndroidManifest.xml.")
(defun set-version (root version) (defun set-version (root version)
"Set Emacs version to VERSION in relevant files under ROOT. "Set Emacs version to VERSION in relevant files under ROOT.
Root must be the root of an Emacs source tree." Root must be the root of an Emacs source tree."
@ -122,6 +126,11 @@ Root must be the root of an Emacs source tree."
(rx (and "AC_INIT" (1+ (not (in ?,))) (rx (and "AC_INIT" (1+ (not (in ?,)))
?, (0+ space) ?\[ ?, (0+ space) ?\[
(submatch (1+ (in "0-9.")))))) (submatch (1+ (in "0-9."))))))
(set-version-in-file root "java/AndroidManifest.xml.in"
(apply #'format "%02d%02d%02d000"
(mapcar #'string-to-number
(split-string version "\\.")))
admin-android-version-code-regexp)
(set-version-in-file root "nt/README.W32" version (set-version-in-file root "nt/README.W32" version
(rx (and "version" (1+ space) (rx (and "version" (1+ space)
(submatch (1+ (in "0-9.")))))) (submatch (1+ (in "0-9."))))))

View file

@ -338,3 +338,18 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. -->
android:label="GNU Emacs service"/> android:label="GNU Emacs service"/>
</application> </application>
</manifest> </manifest>
<!-- Auto-incrementing version code.
This comment contains an Android version code
(https://developer.android.com/studio/publish/versioning#versioningsettings)
corresponding to the current Emacs version. The version code in
AndroidManifest.xml.in is hard-coded to a fixed value to facilitate
package downgrades. Some automated systems employed by Android package
repositories require an incrementing numeric version code to detect
upgrades, which is provided here and is altered by admin/admin.el.
Refer to e.g. https://forum.f-droid.org/t/emacs-packaging/30424/25.
Version-code: 300050000
-->

View file

View file

@ -1607,10 +1607,12 @@ A FUNC form can have any number of `:no-eval' (or `:no-value'),
;;;###autoload ;;;###autoload
(defun shortdoc-display-group (group &optional function same-window) (defun shortdoc-display-group (group &optional function same-window)
"Pop to a buffer with short documentation summary for functions in GROUP. "Pop to a buffer with short documentation summary for functions in GROUP.
Interactively, prompt for GROUP.
If FUNCTION is non-nil, place point on the entry for FUNCTION (if any). If FUNCTION is non-nil, place point on the entry for FUNCTION (if any).
If SAME-WINDOW, don't pop to a new window." If SAME-WINDOW, don't pop to a new window."
(interactive (list (completing-read "Show summary for functions in: " (interactive (list (completing-read
(mapcar #'car shortdoc--groups)))) "Group of functions for which to show summary: "
(mapcar #'car shortdoc--groups))))
(when (stringp group) (when (stringp group)
(setq group (intern group))) (setq group (intern group)))
(unless (assq group shortdoc--groups) (unless (assq group shortdoc--groups)

View file

@ -147,7 +147,10 @@ all; the preview buffer is still accessible with `help-char' (\\`C-h').
When set to `traditional' (the default), provide a more basic preview When set to `traditional' (the default), provide a more basic preview
according to `register-preview-delay'; this preserves the traditional according to `register-preview-delay'; this preserves the traditional
behavior of Emacs 29 and before." behavior of Emacs 29 and before.
Setting this variable with `setq' has no effect; use either `setopt'
or `customize-option' to change its value."
:type '(choice :type '(choice
(const :tag "Use preview" t) (const :tag "Use preview" t)
(const :tag "Use preview and exit by pressing register name" insist) (const :tag "Use preview and exit by pressing register name" insist)