Hi, all,
I've been using Slime on top of Franz ACL for quite a while. My experience with Slime is very positive and I like Slime better in every aspects except in following situations.
1. Slime debugger: It prints bunch of Slime (swank: ..... ) related messages that I'm not interested. It's always hard to trying to comb through messages that I'm interested. How can I turn Slime related messages off?
2. While debugging, evaulating expression does not print anything but only the retuned result. Can I have it print to the standard output, i.e., console?
3. Lack of REPL command: Franz Eli supports REPL commands, for example, ":proc" for listing processes, ":pa" to change package and so on. Is there way to add them in?
Thank you very much and I appreciate your efforts making Slime the best list-emacs interface.
-chris
"Chris Kim" chrisk414@hotmail.com writes:
Hi, all,
I've been using Slime on top of Franz ACL for quite a while. My experience with Slime is very positive and I like Slime better in every aspects except in following situations.
1. Slime debugger: It prints bunch of Slime (swank: ..... ) related
messages that I'm not interested. It's always hard to trying to comb through messages that I'm interested. How can I turn Slime related messages off?
It should include swank frames only at the bottom, unless you have swank-backend:*debug-swank-backend* set to T.
- While debugging, evaulating expression does not print anything but only
the retuned result. Can I have it print to the standard output, i.e., console?
You can set swank:*globally-redirect-io* to T.
- Lack of REPL command: Franz Eli supports REPL commands, for
example, ":proc" for listing processes, ":pa" to change package and so on. Is there way to add them in?
There are commands prefixed with ",", for example, ",in" to change package. There is no analogue to :proc command, but it's accessible through C-c C-x t key, and you can easily add one with:
(defslime-repl-shortcut nil ("processes") (:handler 'slime-list-threads))
Thanks Stas, I got #2, #3, issue solved. I'm much happier now.
For #1, swank-backend:*debug-swank-backend* is set to nil by default and I'm seeing bunch of swank:.... messages. As non-slime developer, I'm not interested in swank message at all. I rather not see them at all, not to clutter debug outputs. Is there some important reason I'm missing?
-chris
-------------------------------------------------- From: "Stas Boukarev" stassats@gmail.com Sent: Wednesday, May 19, 2010 3:47 PM To: "Chris Kim" chrisk414@hotmail.com Cc: slime-devel@common-lisp.net Subject: Re: [slime-devel] Slime vs Franz Eli
"Chris Kim" chrisk414@hotmail.com writes:
Hi, all,
I've been using Slime on top of Franz ACL for quite a while. My experience with Slime is very positive and I like Slime better in every aspects except in following situations.
1. Slime debugger: It prints bunch of Slime (swank: ..... ) related
messages that I'm not interested. It's always hard to trying to comb through messages that I'm interested. How can I turn Slime related messages off?
It should include swank frames only at the bottom, unless you have swank-backend:*debug-swank-backend* set to T.
- While debugging, evaulating expression does not print anything but
only the retuned result. Can I have it print to the standard output, i.e., console?
You can set swank:*globally-redirect-io* to T.
- Lack of REPL command: Franz Eli supports REPL commands, for
example, ":proc" for listing processes, ":pa" to change package and so on. Is there way to add them in?
There are commands prefixed with ",", for example, ",in" to change package. There is no analogue to :proc command, but it's accessible through C-c C-x t key, and you can easily add one with:
(defslime-repl-shortcut nil ("processes") (:handler 'slime-list-threads))
-- With Best Regards, Stas.
* Chris Kim [2010-05-19 08:15+0200] writes:
Hi, all,
I've been using Slime on top of Franz ACL for quite a while. My experience with Slime is very positive and I like Slime better in every aspects except in following situations.
1. Slime debugger: It prints bunch of Slime (swank: ..... ) related
messages that I'm not interested. It's always hard to trying to comb through messages that I'm interested. How can I turn Slime related messages off?
Slime frames are either at the top end or the bottom end of the stack. Those on the bottom shouldn't be a problem. To hide the frames on the top Slime needs to guess in which frame the error occurred and that's not always perfect (ie. it shows too many frames). Have a look at the function FIND-TOPFRAME in swank-allegro.lisp. That's where the decision is made. Improvements welcome.
- While debugging, evaulating expression does not print anything but only
the retuned result. Can I have it print to the standard output, i.e., console?
The debugger doesn't change *standard-output*. The output is probably in the *inferior-lisp* buffer or the *slime-repl* buffer or you forgot to call FORCE-OUTPUT. If you connect to a remote server (or similar) then the output will be written to whatever *standard-output* is connected. You may be interested in the slime-redirect-inferior-output command which redirects the output which would normally go to *inferior-lisp* to the *slime-repl* buffer.
- Lack of REPL command: Franz Eli supports REPL commands, for
example, ":proc" for listing processes, ":pa" to change package and so on. Is there way to add them in?
It's a bit different in Slime: if you type ",in" you can change the package. There a few more of those "shortcuts" and you can add your own with defslime-repl-shortcut.
Helmut
You guys are awesome!!
-------------------------------------------------- From: "Helmut Eller" heller@common-lisp.net Sent: Wednesday, May 19, 2010 4:00 PM To: slime-devel@common-lisp.net Subject: Re: [slime-devel] Slime vs Franz Eli
- Chris Kim [2010-05-19 08:15+0200] writes:
Hi, all,
I've been using Slime on top of Franz ACL for quite a while. My experience with Slime is very positive and I like Slime better in every aspects except in following situations.
1. Slime debugger: It prints bunch of Slime (swank: ..... ) related
messages that I'm not interested. It's always hard to trying to comb through messages that I'm interested. How can I turn Slime related messages off?
Slime frames are either at the top end or the bottom end of the stack. Those on the bottom shouldn't be a problem. To hide the frames on the top Slime needs to guess in which frame the error occurred and that's not always perfect (ie. it shows too many frames). Have a look at the function FIND-TOPFRAME in swank-allegro.lisp. That's where the decision is made. Improvements welcome.
- While debugging, evaulating expression does not print anything but
only the retuned result. Can I have it print to the standard output, i.e., console?
The debugger doesn't change *standard-output*. The output is probably in the *inferior-lisp* buffer or the *slime-repl* buffer or you forgot to call FORCE-OUTPUT. If you connect to a remote server (or similar) then the output will be written to whatever *standard-output* is connected. You may be interested in the slime-redirect-inferior-output command which redirects the output which would normally go to *inferior-lisp* to the *slime-repl* buffer.
- Lack of REPL command: Franz Eli supports REPL commands, for
example, ":proc" for listing processes, ":pa" to change package and so on. Is there way to add them in?
It's a bit different in Slime: if you type ",in" you can change the package. There a few more of those "shortcuts" and you can add your own with defslime-repl-shortcut.
Helmut
slime-devel site list slime-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/slime-devel
Hi, there.
I would like to assign a hotkey to switch between the last two buffers to compare the differences quickly.
The closest thing I found is "slime-selector l" Is there way I can assign an hotkey to the command above?
Thanks.
-chris
"Chris Kim" chrisk414@hotmail.com writes:
Hi, there.
I would like to assign a hotkey to switch between the last two buffers to compare the differences quickly.
The closest thing I found is "slime-selector l" Is there way I can assign an hotkey to the command above?
(global-set-key "key" (lambda (interactive) (slime-recently-visited-buffer 'lisp-mode)))
Awesome!! Thanks a lot!
-----원본 메시지----- From: Stas Boukarev Sent: Wednesday, April 13, 2011 8:42 AM To: Chris Kim Cc: slime-devel@common-lisp.net Subject: Re: [slime-devel] Switching between last two buffers
"Chris Kim" chrisk414@hotmail.com writes:
Hi, there.
I would like to assign a hotkey to switch between the last two buffers to compare the differences quickly.
The closest thing I found is "slime-selector l" Is there way I can assign an hotkey to the command above?
(global-set-key "key" (lambda (interactive) (slime-recently-visited-buffer 'lisp-mode)))
Hi Stas, Nico told me a different method but I think your suggestion might better in some case where I want to switch between two lisp buffers. I think there is an error in the original method below, missing () after lambda. This is what I have now.. (global-set-key "\C-\M-l" (lambda () (interactive) (slime-recently-visited-buffer 'lisp-mode))) But it doesn't do anything. Of course "slime-selector l" works fine.
I'm just curious why it isn't working.
Thanks for your help.
-chris
-----원본 메시지----- From: Stas Boukarev Sent: Wednesday, April 13, 2011 8:42 AM To: Chris Kim Cc: slime-devel@common-lisp.net Subject: Re: [slime-devel] Switching between last two buffers
"Chris Kim" chrisk414@hotmail.com writes:
Hi, there.
I would like to assign a hotkey to switch between the last two buffers to compare the differences quickly.
The closest thing I found is "slime-selector l" Is there way I can assign an hotkey to the command above?
(global-set-key "key" (lambda (interactive) (slime-recently-visited-buffer 'lisp-mode)))
"Chris Kim" chrisk414@hotmail.com writes:
Hi Stas, Nico told me a different method but I think your suggestion might better in some case where I want to switch between two lisp buffers. I think there is an error in the original method below, missing () after lambda. This is what I have now.. (global-set-key "\C-\M-l" (lambda () (interactive) (slime-recently-visited-buffer 'lisp-mode))) But it doesn't do anything. Of course "slime-selector l" works fine.
I'm just curious why it isn't working.
Sorry, it should've been (global-set-key "\C-\M-l" (lambda () (interactive) (switch-to-buffer (slime-recently-visited-buffer 'lisp-mode))))
Ah.. it makes sense.. Thanks. ^^ -chris
-----원본 메시지----- From: Stas Boukarev Sent: Wednesday, April 13, 2011 11:10 PM To: Chris Kim Cc: slime-devel@common-lisp.net Subject: Re: [slime-devel] Switching between last two buffers
"Chris Kim" chrisk414@hotmail.com writes:
Hi Stas, Nico told me a different method but I think your suggestion might better in some case where I want to switch between two lisp buffers. I think there is an error in the original method below, missing () after lambda. This is what I have now.. (global-set-key "\C-\M-l" (lambda () (interactive) (slime-recently-visited-buffer 'lisp-mode))) But it doesn't do anything. Of course "slime-selector l" works fine.
I'm just curious why it isn't working.
Sorry, it should've been (global-set-key "\C-\M-l" (lambda () (interactive) (switch-to-buffer (slime-recently-visited-buffer 'lisp-mode))))
Doesn't emacs already have that built-in? This isn't slime-specific at all...
C-x b RET (and repeat it again to come back, as many times as needed)
I use this extensively...
And of course if you want to compare differences, C-x 2 or C-x 3 might be the thing for you. C-x 0 to kill the current "window", C-x 1 to keep only the current "window" (going back to "full-screen mode")...
You might want to have a look at the Emacs manual for "Windows":
C-h i (to access Info)
d (to access the Directory node, if not already there)
m Emacs (to access the Emacs manual from the menu)
m Windows (to access the chapter on windows from the menu).
From within Info, press H to access the info tutorial for basic
commands on how to use Info, it's a necessity to learn Emacs properly and many Unix tools have their main documentation in Info...
Hope this helps!
Doesn't emacs already have that built-in? This isn't slime-specific at all...
C-x b RET (and repeat it again to come back, as many times as needed)
Also, I believe recent Emacs have the following for navigating back and forth in the buffer list: C-x <left> C-x <C-left> C-x <right> C-x <C-right>
-- Duncan
"Chris Kim" chrisk414@hotmail.com writes:
Hi, there.
I would like to assign a hotkey to switch between the last two buffers to compare the differences quickly.
The closest thing I found is "slime-selector l" Is there way I can assign an hotkey to the command above?
Thanks.
I have the following in my .emacs file to switch back and forth between (any) two buffers with C-M-l:
(defun back-forth () "Switch to previous buffer." (interactive) (switch-to-buffer (other-buffer)))
(global-set-key "\C-\M-l" 'back-forth)
Nico
You guys are always the best!. Thanks a lot! -chris
-----원본 메시지----- From: Nico de Jager Sent: Wednesday, April 13, 2011 3:56 PM To: Chris Kim Cc: slime-devel@common-lisp.net Subject: Re: [slime-devel] Switching between last two buffers
"Chris Kim" chrisk414@hotmail.com writes:
Hi, there.
I would like to assign a hotkey to switch between the last two buffers to compare the differences quickly.
The closest thing I found is "slime-selector l" Is there way I can assign an hotkey to the command above?
Thanks.
I have the following in my .emacs file to switch back and forth between (any) two buffers with C-M-l:
(defun back-forth () "Switch to previous buffer." (interactive) (switch-to-buffer (other-buffer)))
(global-set-key "\C-\M-l" 'back-forth)
Nico