diff options
| author | Glenn Morris | 2013-04-26 00:34:54 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-04-26 00:34:54 -0700 |
| commit | af80458d7e9d2f81a8d13a0b4ad152743c34520c (patch) | |
| tree | e993b235e182a270be564b06e01596f9466c857c | |
| parent | 9fc02c2f823942e302c5bc8938e9a6e4e03003f1 (diff) | |
| parent | e5271cf20c08ba88e5c91a9626c08022f9a5058c (diff) | |
| download | emacs-af80458d7e9d2f81a8d13a0b4ad152743c34520c.tar.gz emacs-af80458d7e9d2f81a8d13a0b4ad152743c34520c.zip | |
Merge from emacs-24; up to 2012-12-27T08:21:08Z!rgm@gnu.org
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/emacs-lisp/syntax.el | 2 | ||||
| -rw-r--r-- | lisp/subr.el | 2 |
3 files changed, 13 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b8c0f629042..340dc41a744 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,16 @@ | |||
| 1 | 2013-04-26 Glenn Morris <rgm@gnu.org> | 1 | 2013-04-26 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * subr.el (read-number): Once more use `read' rather than | ||
| 4 | `string-to-number', to trap non-numeric input. (Bug#14254) | ||
| 5 | |||
| 6 | 2013-04-26 Erik Charlebois <erikcharlebois@gmail.com> | ||
| 7 | |||
| 8 | * emacs-lisp/syntax.el (syntax-propertize-multiline): | ||
| 9 | Use `syntax-multiline' text property consistently instead of | ||
| 10 | `font-lock-multiline'. (bug#14237). | ||
| 11 | |||
| 12 | 2013-04-26 Glenn Morris <rgm@gnu.org> | ||
| 13 | |||
| 3 | * emacs-lisp/shadow.el (list-load-path-shadows): | 14 | * emacs-lisp/shadow.el (list-load-path-shadows): |
| 4 | No longer necessary to check for duplicate simple.el, since | 15 | No longer necessary to check for duplicate simple.el, since |
| 5 | 2012-07-07 change to init_lread to not include installation lisp | 16 | 2012-07-07 change to init_lread to not include installation lisp |
diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el index bf2c8308bb5..0a4758a9ccd 100644 --- a/lisp/emacs-lisp/syntax.el +++ b/lisp/emacs-lisp/syntax.el | |||
| @@ -99,7 +99,7 @@ Put first the functions more likely to cause a change and cheaper to compute.") | |||
| 99 | (setq beg (or (previous-single-property-change beg 'syntax-multiline) | 99 | (setq beg (or (previous-single-property-change beg 'syntax-multiline) |
| 100 | (point-min)))) | 100 | (point-min)))) |
| 101 | ;; | 101 | ;; |
| 102 | (when (get-text-property end 'font-lock-multiline) | 102 | (when (get-text-property end 'syntax-multiline) |
| 103 | (setq end (or (text-property-any end (point-max) | 103 | (setq end (or (text-property-any end (point-max) |
| 104 | 'syntax-multiline nil) | 104 | 'syntax-multiline nil) |
| 105 | (point-max)))) | 105 | (point-max)))) |
diff --git a/lisp/subr.el b/lisp/subr.el index 7fe3d411580..523bec59b29 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2225,7 +2225,7 @@ The value of DEFAULT is inserted into PROMPT." | |||
| 2225 | (condition-case nil | 2225 | (condition-case nil |
| 2226 | (setq n (cond | 2226 | (setq n (cond |
| 2227 | ((zerop (length str)) default1) | 2227 | ((zerop (length str)) default1) |
| 2228 | ((stringp str) (string-to-number str)))) | 2228 | ((stringp str) (read str)))) |
| 2229 | (error nil))) | 2229 | (error nil))) |
| 2230 | (unless (numberp n) | 2230 | (unless (numberp n) |
| 2231 | (message "Please enter a number.") | 2231 | (message "Please enter a number.") |