help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: launch a program in an arbitrary frame


From: Emanuel Berg
Subject: Re: launch a program in an arbitrary frame
Date: Sat, 18 Jul 2015 10:29:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
writes:

> (defun erc-other-frame (&optional server)
>   (interactive (list "irc.freenode.net"))
>   (switch-to-buffer-other-frame (erc :server server)))

Here is another version which lets you input a server
when calling it interactively and not just from Elisp.
If you hit RET you'll get the default value just
the same.

(defun erc-other-frame (&optional server)
  (interactive (list
                (let ((default "irc.freenode.net"))
                  (read-string (format "Server (%s): " default)
                               nil nil default) )))
  (switch-to-buffer-other-frame (erc :server server)) )

Personally, I don't do frames, so this comment is only
about the interactive stuff.

Here is my ERC setup, so far:

    http://user.it.uu.se/~embe8573/conf/emacs-init/erc-my.el

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

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