aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorJohn Wiegley2016-01-11 22:51:27 -0800
committerJohn Wiegley2016-01-11 22:51:27 -0800
commitc7bef6a4f033fa6b22906de0be6da54958d5b3c3 (patch)
tree3a0f34b340ad01de290f068530c27f35aba83724 /admin
parentf5d90b5fcf0251466055c7dbed6069c1850d802d (diff)
parent1f6898d0510cd15455f665c0f38451755a374243 (diff)
downloademacs-c7bef6a4f033fa6b22906de0be6da54958d5b3c3.tar.gz
emacs-c7bef6a4f033fa6b22906de0be6da54958d5b3c3.zip
Merge from origin/emacs-25
1f6898d test/automated/vc-hg.el: Support out-of-tree build 3adb56e Minor change in tramp-tests.el 2b535ba ; * etc/NEWS: Update the js.el entry. 76b518c * etc/HELLO: Add Armenian and Mongolian greetings. b51f1ef Java Mode: Fontify identifiers in the presence of annotations. 36b9539 Avoid an infloop when we run out of memory 2006752 Avoid unnecessary failures of auto-saving after fatal error eef6784 Simplify HAVE_MODULES use in mark_maybe_pointer 552694a Revert attempt to use 'noexcept' in typedef 6ad0d39 Update documentation of 'indirect-function' c6a5314 ; * etc/NEWS: Move entry of 'inhibit-point-motion-hooks'. 303141a Update documentation for obsoleting 'syntax-begin-function' 4e6f61c ; * etc/NEWS: Mark documented and not-to-be-documented entries. e667bbb Document new features if Eshell 9c4e4e0 ; * etc/NEWS: Update EUDC entries. 1089dc9 Handle too long commands in Tramp 684eb58 * .gitattributes: *.cur and *.pif are binary files too. d2c7fda * src/alloc.c (mark_maybe_pointer): HAVE_MODULES may be undefined bd3f53d * sh-script.el (sh-smie-sh-rules): Improve indentation inside $(...) 09b2b8a * src/alloc.c (mark_maybe_pointer): Also check wide-int's emacs_value cca0f93 ; Account for spaces before the filename c71e1e8 Use short date for 'hg annotate', and output the author f50027b Spelling fix c7dff67 ; * etc/NEWS: Fix the Xref entries that got separated. cc140bc Document user-level functions in project.el f8208b6 Document the user-level features of the Xref package b131fb8 * loading.texi: Add `define-type' entry for load-history db3c2a8 Improve doc strings and prompts in xref.el f6117ef Allow the use of `font-lock-extend-region-multiline' in CC Mode. 90fd798 Fix coding system for Tramp on OS X. e985a0e ; * etc/NEWS: Mark the 'check-expensive' entry not to be documented. 9dfcbf0 Update 'load-history' docs 207e191 Fix (error ...) error 457738f Correctly analyze brace arguments in templated C++ function declarations. d57724a * lisp/cedet/mode-local.el (describe-function-orig-buffer): Declare. 2a9532d * lisp/ffap.el (ffap-latex-mode): Avoid free variable. 1a6b084 * lisp/play/dunnet.el (dun-fix-screen): Avoid `end-of-buffer`. 8be046f Respect fontification region calculated by major mode. Fixes bug #22316. 4b37cba Improve documentation of Delete Selection mode a034dd3 Fix two project-find-file issues 30abf29 Clarify doc string of 'dired-current-directory' e990bb2 Use the face of preceding text for displaying the ellipsis 5810ac3 Suppress Chinese file name test for OSX in tramp-tests.el eeb710a ; * lisp/startup.el: Sentences end with two spaces. 428b3de * admin/admin.el (set-version): Also handle the NEWS file. 648de81 ; Add NEWS entry for project.el 671862f apropos-library: Skip obvious duplicates; don't error on generics 51668a5 ; Grammar fix ed41d11 Add project-find-file and project-or-external-find-file 056da45 ; Improve commentary in 'setup_for_ellipsis' 269d008 ; Improve docstring for `inhibit-startup-echo-area-message'
Diffstat (limited to 'admin')
-rw-r--r--admin/admin.el75
1 files changed, 68 insertions, 7 deletions
diff --git a/admin/admin.el b/admin/admin.el
index 7923f0bb466..fe807ff96fe 100644
--- a/admin/admin.el
+++ b/admin/admin.el
@@ -96,13 +96,74 @@ Root must be the root of an Emacs source tree."
96 (submatch (1+ (in "0-9.")))))) 96 (submatch (1+ (in "0-9."))))))
97 ;; Major version only. 97 ;; Major version only.
98 (when (string-match "\\([0-9]\\{2,\\}\\)" version) 98 (when (string-match "\\([0-9]\\{2,\\}\\)" version)
99 (setq version (match-string 1 version)) 99 (let ((newmajor (match-string 1 version)))
100 (set-version-in-file root "src/msdos.c" version 100 (set-version-in-file root "src/msdos.c" newmajor
101 (rx (and "Vwindow_system_version" (1+ not-newline) 101 (rx (and "Vwindow_system_version" (1+ not-newline)
102 ?\( (submatch (1+ (in "0-9"))) ?\)))) 102 ?\( (submatch (1+ (in "0-9"))) ?\))))
103 (set-version-in-file root "etc/refcards/ru-refcard.tex" version 103 (set-version-in-file root "etc/refcards/ru-refcard.tex" newmajor
104 "\\\\newcommand{\\\\versionemacs}\\[0\\]\ 104 "\\\\newcommand{\\\\versionemacs}\\[0\\]\
105{\\([0-9]\\{2,\\}\\)}.+%.+version of Emacs")) 105{\\([0-9]\\{2,\\}\\)}.+%.+version of Emacs")))
106 (let* ((oldversion
107 (with-temp-buffer
108 (insert-file-contents (expand-file-name "README" root))
109 (if (re-search-forward "version \\([0-9.]*\\)" nil t)
110 (version-to-list (match-string 1)))))
111 (oldmajor (if oldversion (car oldversion)))
112 (newversion (version-to-list version))
113 (newmajor (car newversion))
114 (newshort (format "%s.%s" newmajor
115 (+ (cadr newversion)
116 (if (eq 2 (length newversion)) 0 1))))
117 (majorbump (and oldversion (not (equal oldmajor newmajor))))
118 (minorbump (and oldversion (not majorbump)
119 (not (equal (cadr oldversion) (cadr newversion)))))
120 (newsfile (expand-file-name "etc/NEWS" root))
121 (oldnewsfile (expand-file-name (format "etc/NEWS.%s" oldmajor) root)))
122 (when (and majorbump
123 (not (file-exists-p oldnewsfile)))
124 (rename-file newsfile oldnewsfile)
125 (find-file oldnewsfile) ; to prompt you to commit it
126 (copy-file oldnewsfile newsfile)
127 (with-temp-buffer
128 (insert-file-contents newsfile)
129 (re-search-forward "is about changes in Emacs version \\([0-9]+\\)")
130 (replace-match (number-to-string newmajor) nil nil nil 1)
131 (re-search-forward "^See files \\(NEWS\\)")
132 (replace-match (format "NEWS.%s, NEWS" oldmajor) nil nil nil 1)
133 (let ((start (line-beginning-position)))
134 (search-forward "in older Emacs versions")
135 (or (equal start (line-beginning-position))
136 (fill-region start (line-beginning-position 2))))
137 (re-search-forward "^ $")
138 (forward-line -1)
139 (let ((start (point)))
140 (goto-char (point-max))
141 (re-search-backward "^ $" nil nil 2)
142 (delete-region start (line-beginning-position 0)))
143 (write-region nil nil newsfile)))
144 (when (or majorbump minorbump)
145 (find-file newsfile)
146 (goto-char (point-min))
147 (if (re-search-forward (format "^\\* .*in Emacs %s" newshort) nil t)
148 (progn
149 (kill-buffer)
150 (message "No need to update etc/NEWS"))
151 (goto-char (point-min))
152 (re-search-forward "^ $")
153 (forward-line -1)
154 (dolist (s '("Installation Changes" "Startup Changes" "Changes"
155 "Editing Changes"
156 "Changes in Specialized Modes and Packages"
157 "New Modes and Packages"
158 "Incompatible Lisp Changes"
159 "Lisp Changes"))
160 (insert (format "\n \n* %s in Emacs %s\n" s newshort)))
161 (insert (format "\n \n* Changes in Emacs %s on \
162Non-Free Operating Systems\n" newshort)))
163 ;; Because we skip "bump version" commits when merging between branches.
164 ;; Probably doesn't matter in practice, because NEWS changes
165 ;; will only happen on master anyway.
166 (message "Commit any NEWS changes separately")))
106 (message "Setting version numbers...done")) 167 (message "Setting version numbers...done"))
107 168
108;; Note this makes some assumptions about form of short copyright. 169;; Note this makes some assumptions about form of short copyright.