aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2013-07-02 20:20:04 -0700
committerGlenn Morris2013-07-02 20:20:04 -0700
commit1399490e2bb58e1e7212d7a8469e1286ced9423a (patch)
tree2868e823b3ad558ba8346cf41bc6760fd3e1b78a /lisp
parent9b057d613a30b83adcb26600118075dc81777510 (diff)
parent208dee4daaae38f870322142388c43cff848e452 (diff)
downloademacs-1399490e2bb58e1e7212d7a8469e1286ced9423a.tar.gz
emacs-1399490e2bb58e1e7212d7a8469e1286ced9423a.zip
Merge from emacs-24; up to 2012-12-29T12:57:49Z!fgallina@gnu.org
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/subr.el6
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8327fb03b4e..9e746b25146 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
12013-07-03 Glenn Morris <rgm@gnu.org> 12013-07-03 Glenn Morris <rgm@gnu.org>
2 2
3 * subr.el (y-or-n-p): Handle empty prompts. (Bug#14770)
4
3 Make info-xref checks case-sensitive by default 5 Make info-xref checks case-sensitive by default
4 * info.el (Info-find-node, Info-find-in-tag-table) 6 * info.el (Info-find-node, Info-find-in-tag-table)
5 (Info-find-node-in-buffer, Info-find-node-2, Info-goto-node): 7 (Info-find-node-in-buffer, Info-find-node-2, Info-goto-node):
diff --git a/lisp/subr.el b/lisp/subr.el
index b8a62023805..55cdcb45f50 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -2240,7 +2240,8 @@ is nil and `use-dialog-box' is non-nil."
2240 (cond 2240 (cond
2241 (noninteractive 2241 (noninteractive
2242 (setq prompt (concat prompt 2242 (setq prompt (concat prompt
2243 (if (eq ?\s (aref prompt (1- (length prompt)))) 2243 (if (or (zerop (length prompt))
2244 (eq ?\s (aref prompt (1- (length prompt)))))
2244 "" " ") 2245 "" " ")
2245 "(y or n) ")) 2246 "(y or n) "))
2246 (let ((temp-prompt prompt)) 2247 (let ((temp-prompt prompt))
@@ -2257,7 +2258,8 @@ is nil and `use-dialog-box' is non-nil."
2257 (x-popup-dialog t `(,prompt ("Yes" . act) ("No" . skip))))) 2258 (x-popup-dialog t `(,prompt ("Yes" . act) ("No" . skip)))))
2258 (t 2259 (t
2259 (setq prompt (concat prompt 2260 (setq prompt (concat prompt
2260 (if (eq ?\s (aref prompt (1- (length prompt)))) 2261 (if (or (zerop (length prompt))
2262 (eq ?\s (aref prompt (1- (length prompt)))))
2261 "" " ") 2263 "" " ")
2262 "(y or n) ")) 2264 "(y or n) "))
2263 (while 2265 (while