From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: Opening *Calendar* in its own frame Date: Mon, 20 Jan 2003 21:17:24 +0000 Organization: None Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <11bs2bo717.fsf@ast.cam.ac.uk> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043097690 12044 80.91.224.249 (20 Jan 2003 21:21:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2003 21:21:30 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ajMH-000388-00 for ; Mon, 20 Jan 2003 22:21:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ajLe-0003lZ-06 for gnu-help-gnu-emacs@m.gmane.org; Mon, 20 Jan 2003 16:20:50 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!zen.net.uk!130.88.203.18.MISMATCH!peernews.mcc.ac.uk!server1.netnews.ja.net!hgmp.mrc.ac.uk!pegasus.csx.cam.ac.uk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: xpc21.ast.cam.ac.uk X-Attribution: GM Mail-Copies-To: never User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/directory/emacs.html) Cancel-Lock: sha1:6JwchzwpsqLTs5oyyA19IbQusL0= Original-Xref: shelby.stanford.edu gnu.emacs.help:109253 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5777 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5777 Jonathon Isaac Swiderski wrote: > I'm using v20.7. [...] > (if (eq window-system 'x) ; if we are running under X windows... > (progn > (calendar) > (speedbar))) > > > I'd like to have the calendar be in its own frame. (require 'cal-x) (setq calendar-setup 'calendar-only) I think it's a bug that you have to require cal-x (same in Emacs-21.x, by the way). There are some other options for calendar-setup you might like to investigate. > And if someone knows of a better way to do the > if-there's-a-graphical-environment check, i'd appreciate tips on that, > too, although I recall reading here previously that there doesn't seem to > be a good way to do it. (when (display-graphic-p) (calendar) (speedbar)) would be the recommended test in Emacs-21.x, but for 20.7 I'm not sure if there is anything better than window-system.