aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2014-11-16 00:22:20 -0500
committerStefan Monnier2014-11-16 00:22:20 -0500
commit9075fcc1937a211bc91e8bc49c332bc55ac99e24 (patch)
tree1cff4991107011e0b5d13fac46b0881c30d31a63 /lisp
parent86009dd5d886f1101358990e4f8f69a5d1467eb8 (diff)
parent4f4cf9c855f5818d4c3c0fb772db8bbcf4f33780 (diff)
downloademacs-9075fcc1937a211bc91e8bc49c332bc55ac99e24.tar.gz
emacs-9075fcc1937a211bc91e8bc49c332bc55ac99e24.zip
Merge from emacs-24
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog36
-rw-r--r--lisp/gnus/ChangeLog4
-rw-r--r--lisp/mail/emacsbug.el17
-rw-r--r--lisp/progmodes/python.el52
-rw-r--r--lisp/version.el4
5 files changed, 79 insertions, 34 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 634412ec989..42de048e429 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,6 +1,26 @@
12014-11-16 Andreas Schwab <schwab@linux-m68k.org>
2
3 * version.el (emacs-repository-get-version): Use git rev-parse
4 instead of git log.
5
62014-11-16 Fabián Ezequiel Gallina <fgallina@gnu.org>
7
8 * progmodes/python.el (python-indent-calculate-levels):
9 Fix indentation behavior multiline dedenter statement. (Bug#18432)
10
112014-11-16 Fabián Ezequiel Gallina <fgallina@gnu.org>
12
13 * progmodes/python.el (python-indent-region):
14 Use python-indent-line and skip special cases. (Bug#18843)
15
162014-11-16 Peder O. Klingenberg <peder@klingenberg.no> (tiny change)
17
18 * mail/emacsbug.el (report-emacs-bug): Make a better guess at
19 envelope-from when reporting through sendmail (bug#19054).
20
12014-11-16 Stefan Monnier <monnier@iro.umontreal.ca> 212014-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
2 22
3 * emacs-lisp/backquote.el (backquote-process): Optimize away the ,' case. 23 * emacs-lisp/backquote.el (backquote-process): Optimize away ",'".
4 24
52014-11-15 Lars Magne Ingebrigtsen <larsi@gnus.org> 252014-11-15 Lars Magne Ingebrigtsen <larsi@gnus.org>
6 26
@@ -94,13 +114,13 @@
94 114
952014-11-10 Kenjiro NAKAYAMA <nakayamakenjiro@gmail.com> 1152014-11-10 Kenjiro NAKAYAMA <nakayamakenjiro@gmail.com>
96 116
97 * net/eww.el(eww-form-file(defface)): New defface of file upload form. 117 * net/eww.el(eww-form-file(defface)): New defface of file upload form.
98 (eww-submit-file): New key map of file upload. 118 (eww-submit-file): New key map of file upload.
99 (eww-form-file): New file upload button and file name context. 119 (eww-form-file): New file upload button and file name context.
100 (eww-select-file): Select file and display selected file name. 120 (eww-select-file): Select file and display selected file name.
101 (eww-tag-input): Handle input tag of file type. 121 (eww-tag-input): Handle input tag of file type.
102 (eww-update-field): Add point offset. 122 (eww-update-field): Add point offset.
103 (eww-submit): Add submit with multipart/form-data. 123 (eww-submit): Add submit with multipart/form-data.
104 124
1052014-11-10 Lars Magne Ingebrigtsen <larsi@gnus.org> 1252014-11-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
106 126
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index e107dbd3b5a..1d9b1465fa5 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,7 @@
12014-11-16 Adam Sjøgren <asjo@koldfront.dk>
2
3 * mml2015.el (mml2015-display-key-image): New variable.
4
12014-11-14 Lars Magne Ingebrigtsen <larsi@gnus.org> 52014-11-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 6
3 * gnus-sum.el (gnus-summary-exit-no-update): Don't query about 7 * gnus-sum.el (gnus-summary-exit-no-update): Don't query about
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index 4e3eb324e59..5dde90b9fe4 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -137,6 +137,12 @@ This requires either the OS X \"open\" command, or the freedesktop
137 (concat "mailto:" to))) 137 (concat "mailto:" to)))
138 (error "Subject, To or body not found"))))) 138 (error "Subject, To or body not found")))))
139 139
140;; It's the default mail mode, so it seems OK to use its features.
141(autoload 'message-bogus-recipient-p "message")
142(autoload 'message-make-address "message")
143(defvar message-send-mail-function)
144(defvar message-sendmail-envelope-from)
145
140;;;###autoload 146;;;###autoload
141(defun report-emacs-bug (topic &optional unused) 147(defun report-emacs-bug (topic &optional unused)
142 "Report a bug in GNU Emacs. 148 "Report a bug in GNU Emacs.
@@ -164,7 +170,12 @@ Prompts for bug subject. Leaves you in a mail buffer."
164 ;; that report-emacs-bug-orig-text remains valid. (Bug#5178) 170 ;; that report-emacs-bug-orig-text remains valid. (Bug#5178)
165 (message-sort-headers) 171 (message-sort-headers)
166 ;; Stop message-mode stealing the properties we will add. 172 ;; Stop message-mode stealing the properties we will add.
167 (set (make-local-variable 'message-strip-special-text-properties) nil)) 173 (set (make-local-variable 'message-strip-special-text-properties) nil)
174 ;; Make sure we default to the From: address as envelope when sending
175 ;; through sendmail.
176 (when (and (not message-sendmail-envelope-from)
177 (message-bogus-recipient-p (message-make-address)))
178 (set (make-local-variable 'message-sendmail-envelope-from) 'header)))
168 (rfc822-goto-eoh) 179 (rfc822-goto-eoh)
169 (forward-line 1) 180 (forward-line 1)
170 ;; Move the mail signature to the proper place. 181 ;; Move the mail signature to the proper place.
@@ -346,10 +357,6 @@ usually do not have translators for other languages.\n\n")))
346 357
347(define-obsolete-function-alias 'report-emacs-bug-info 'info-emacs-bug "24.3") 358(define-obsolete-function-alias 'report-emacs-bug-info 'info-emacs-bug "24.3")
348 359
349;; It's the default mail mode, so it seems OK to use its features.
350(autoload 'message-bogus-recipient-p "message")
351(defvar message-send-mail-function)
352
353(defun report-emacs-bug-hook () 360(defun report-emacs-bug-hook ()
354 "Do some checking before sending a bug report." 361 "Do some checking before sending a bug report."
355 (save-excursion 362 (save-excursion
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 961aebeeecd..7ed218c7c98 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -964,7 +964,11 @@ START is the buffer position where the sexp starts."
964 964
965(defun python-indent-calculate-levels () 965(defun python-indent-calculate-levels ()
966 "Calculate `python-indent-levels' and reset `python-indent-current-level'." 966 "Calculate `python-indent-levels' and reset `python-indent-current-level'."
967 (if (not (python-info-dedenter-statement-p)) 967 (if (or (python-info-continuation-line-p)
968 (not (python-info-dedenter-statement-p)))
969 ;; XXX: This asks for a refactor. Even if point is on a
970 ;; dedenter statement, it could be multiline and in that case
971 ;; the continuation lines should be indented with normal rules.
968 (let* ((indentation (python-indent-calculate-indentation)) 972 (let* ((indentation (python-indent-calculate-indentation))
969 (remainder (% indentation python-indent-offset)) 973 (remainder (% indentation python-indent-offset))
970 (steps (/ (- indentation remainder) python-indent-offset))) 974 (steps (/ (- indentation remainder) python-indent-offset)))
@@ -1070,24 +1074,34 @@ Called from a program, START and END specify the region to indent."
1070 (or (bolp) (forward-line 1)) 1074 (or (bolp) (forward-line 1))
1071 (while (< (point) end) 1075 (while (< (point) end)
1072 (or (and (bolp) (eolp)) 1076 (or (and (bolp) (eolp))
1073 (let (word) 1077 (when (and
1074 (forward-line -1) 1078 ;; Skip if previous line is empty or a comment.
1075 (back-to-indentation) 1079 (save-excursion
1076 (setq word (current-word)) 1080 (let ((line-is-comment-p
1077 (forward-line 1) 1081 (python-info-current-line-comment-p)))
1078 (when (and word 1082 (forward-line -1)
1079 ;; Don't mess with strings, unless it's the 1083 (not
1080 ;; enclosing set of quotes. 1084 (or (and (python-info-current-line-comment-p)
1081 (or (not (python-syntax-context 'string)) 1085 ;; Unless this line is a comment too.
1082 (eq 1086 (not line-is-comment-p))
1083 (syntax-after 1087 (python-info-current-line-empty-p)))))
1084 (+ (1- (point)) 1088 ;; Don't mess with strings, unless it's the
1085 (current-indentation) 1089 ;; enclosing set of quotes.
1086 (python-syntax-count-quotes (char-after) (point)))) 1090 (or (not (python-syntax-context 'string))
1087 (string-to-syntax "|")))) 1091 (eq
1088 (beginning-of-line) 1092 (syntax-after
1089 (delete-horizontal-space) 1093 (+ (1- (point))
1090 (indent-to (python-indent-calculate-indentation))))) 1094 (current-indentation)
1095 (python-syntax-count-quotes (char-after) (point))))
1096 (string-to-syntax "|")))
1097 ;; Skip if current line is a block start, a
1098 ;; dedenter or block ender.
1099 (save-excursion
1100 (back-to-indentation)
1101 (not (looking-at
1102 (python-rx
1103 (or block-start dedenter block-ender))))))
1104 (python-indent-line)))
1091 (forward-line 1)) 1105 (forward-line 1))
1092 (move-marker end nil)))) 1106 (move-marker end nil))))
1093 1107
diff --git a/lisp/version.el b/lisp/version.el
index 1ea38da9cae..cab2d28db4c 100644
--- a/lisp/version.el
+++ b/lisp/version.el
@@ -187,8 +187,8 @@ only ask the VCS if we cannot find any information ourselves."
187 (let ((default-directory (file-name-as-directory dir))) 187 (let ((default-directory (file-name-as-directory dir)))
188 (and (eq 0 188 (and (eq 0
189 (condition-case nil 189 (condition-case nil
190 (call-process "git" nil '(t nil) nil "log" 190 (call-process "git" nil '(t nil) nil "rev-parse"
191 "-1" "--pretty=format:%H") 191 "HEAD")
192 (error nil))) 192 (error nil)))
193 (not (zerop (buffer-size))) 193 (not (zerop (buffer-size)))
194 (replace-regexp-in-string "\n" "" (buffer-string)))))))) 194 (replace-regexp-in-string "\n" "" (buffer-string))))))))