Created
September 6, 2010 01:53
-
-
Save miyamuko/566528 to your computer and use it in GitHub Desktop.
save-window-excursion は多値を返さない。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; save-window-excursion は多値を返さない。 #xyzzy | |
(save-window-excursion | |
(values 1 2 3)) | |
;=> 1 | |
(save-excursion | |
(values 1 2 3)) | |
;=> 1 | |
; 2 | |
; 3 | |
(save-restriction | |
(values 1 2 3)) | |
;=> 1 | |
; 2 | |
; 3 | |
(with-selected-window | |
(values 1 2 3)) | |
;=> 1 | |
; 2 | |
; 3 | |
(with-set-buffer | |
(values 1 2 3)) | |
;=> 1 | |
; 2 | |
; 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
個人的にはバグと認識してます。
http://github.com/southly/xyzzy.src/commit/2ff8fc3ba63c7b009ec3d70fc3a8f0f04b6d93cd