summaryrefslogtreecommitdiff
path: root/lisp/mh-e/mh-comp.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mh-e/mh-comp.el')
-rw-r--r--lisp/mh-e/mh-comp.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el
index 07f4bc60dc7..984af4e461d 100644
--- a/lisp/mh-e/mh-comp.el
+++ b/lisp/mh-e/mh-comp.el
@@ -522,8 +522,8 @@ Optional argument BUFFER can be used to specify the buffer."
(set-buffer buffer))
(cond ((eq major-mode 'mh-show-mode)
(let ((number-start (mh-search-from-end ?/ buffer-file-name)))
- (car (read-from-string (substring buffer-file-name
- (1+ number-start))))))
+ (string-to-number (substring buffer-file-name
+ (1+ number-start)))))
((and (eq major-mode 'mh-folder-mode)
mh-show-buffer
(get-buffer mh-show-buffer))