[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Combine 2 commands in a toggle-function

From: Martin Butz
Subject: Re: Combine 2 commands in a toggle-function
Date: Sat, 13 Oct 2012 15:02:53 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20081125 Thunderbird/ Mnenhy/

Hello Andreas,

thanks for the code!

Am 13.10.2012 13:46, schrieb Andreas Röhler:
(defvar my-toggled-commands-p nil
   "When switched on, commands are run ")

(defun my-commands-toggle ()
   (if my-toggled-commands-p
         (setq my-toggled-commands-p nil)
         (message "%s" "my-toggled-commands-p switched off"))
     (message "%s" "Running my-toggled-commands")
     (setq my-toggled-commands-p t)
     (funcall 'FIRST)
     (funcall 'SECOND)))

WRT the the function called, you might need to figure out the details, which 
arguments to pass etc.

Yes. This way 'kill-buffer-other-window does obviously not know, which frame/buffer to kill. I will have to start learning lisp to stand on my own feet.


| G. Martin Butz,, 0421 98749324, |

reply via email to

[Prev in Thread] Current Thread [Next in Thread]