From: jpkotta <jpkotta@gmail.com>
To: gnu.emacs.help@googlegroups.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: workgroups.el, switching non-interactively
Date: Mon, 15 Oct 2012 08:14:37 -0700 (PDT) [thread overview]
Message-ID: <91459ee5-9808-4dd8-9db1-44b8e4c7e84b@googlegroups.com> (raw)
In-Reply-To: <mailman.11014.1350294667.855.help-gnu-emacs@gnu.org>
On Monday, October 15, 2012 4:51:08 AM UTC-5, Julien Cubizolles wrote:
> Hi, I'm using workgroups.el (works great by the way) to manage windows
>
> configuration but fails miserably at programming a simple task : how to
>
> use the function wg-switch-to-workgroup in a non-interactive way, to
>
> call it inside another elisp function. One of my workgroups is named
>
> "org" and
>
>
>
> (wg-switch-to-workgroup "org")
>
> (wg-switch-to-workgroup org)
>
> and such don't work.
>
>
>
> Thanks for your help.
>
>
>
> Julien, seriously thinking about properly learning lisp...
Looks like you need to use wg-get-workgroup:
(wg-switch-to-workgroup (wg-get-workgroup 'name "org"))
next parent reply other threads:[~2012-10-15 15:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.11014.1350294667.855.help-gnu-emacs@gnu.org>
2012-10-15 15:14 ` jpkotta [this message]
2012-10-15 16:36 ` workgroups.el, switching non-interactively Julien Cubizolles
2012-10-15 9:50 Julien Cubizolles
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=91459ee5-9808-4dd8-9db1-44b8e4c7e84b@googlegroups.com \
--to=jpkotta@gmail.com \
--cc=gnu.emacs.help@googlegroups.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.