# HG changeset patch # User Micha¸«³l Cadilhac # Date 1187345400 0 # Node ID a026094590fd0d273dd08f1faa5478eaa03f60fc # Parent 8e687f7c8e5a3ae1c419a5d106a7e6d622b6bfa8 (report-emacs-bug): Remove the last number of `emacs-version', use the topic prefix ``version; ''. diff -r 8e687f7c8e5a -r a026094590fd lisp/mail/emacsbug.el --- a/lisp/mail/emacsbug.el Fri Aug 17 07:55:25 2007 +0000 +++ b/lisp/mail/emacsbug.el Fri Aug 17 10:10:00 2007 +0000 @@ -75,7 +75,8 @@ (interactive (reverse (list (recent-keys) (read-string "Bug Subject: ")))) ;; The syntax `version;' is preferred to `[version]' because the ;; latter could be mistakenly stripped by mailing software. - (setq topic (concat "Bug: " emacs-version "; " topic)) + (when (string-match "^\\(\\([.0-9]+\\)*\\)\\.[0-9]+$" emacs-version) + (setq topic (concat (match-string 1 emacs-version) "; " topic))) ;; If there are four numbers in emacs-version, this is a pretest ;; version. (let* ((pretest-p (string-match "\\..*\\..*\\." emacs-version))