From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jpkotta Newsgroups: gmane.emacs.help Subject: Re: workgroups.el, switching non-interactively Date: Mon, 15 Oct 2012 08:14:37 -0700 (PDT) Message-ID: <91459ee5-9808-4dd8-9db1-44b8e4c7e84b@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1350314102 9288 80.91.229.3 (15 Oct 2012 15:15:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2012 15:15:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: gnu.emacs.help@googlegroups.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 15 17:15:07 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TNmNn-0001KZ-90 for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Oct 2012 17:15:07 +0200 Original-Received: from localhost ([::1]:56713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNmNg-0000Gf-AA for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Oct 2012 11:15:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNmNS-0000Cv-7v for help-gnu-emacs@gnu.org; Mon, 15 Oct 2012 11:14:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNmNK-0003vZ-Ic for help-gnu-emacs@gnu.org; Mon, 15 Oct 2012 11:14:46 -0400 Original-Received: from mail-vb0-f61.google.com ([209.85.212.61]:58869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNmNK-0003vO-F5 for help-gnu-emacs@gnu.org; Mon, 15 Oct 2012 11:14:38 -0400 Original-Received: by mail-vb0-f61.google.com with SMTP id b23so6113802vbz.6 for ; Mon, 15 Oct 2012 08:14:37 -0700 (PDT) Original-Received: by 10.236.192.164 with SMTP id i24mr1434081yhn.14.1350314077602; Mon, 15 Oct 2012 08:14:37 -0700 (PDT) Original-Path: glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.97.12.233; posting-account=EwI0QQoAAADdqmqX_mVfawBNtwyks2YE Original-NNTP-Posting-Host: 70.97.12.233 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 70.97.12.233 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.61 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87267 Archived-At: 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 >=20 > configuration but fails miserably at programming a simple task=A0: how to >=20 > use the function wg-switch-to-workgroup in a non-interactive way, to >=20 > call it inside another elisp function. One of my workgroups is named >=20 > "org" and=20 >=20 >=20 >=20 > (wg-switch-to-workgroup "org") >=20 > (wg-switch-to-workgroup org) >=20 > and such don't work. >=20 >=20 >=20 > Thanks for your help. >=20 >=20 >=20 > 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"))