From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.emacs.help Subject: Functions that need X Date: Sat, 01 Jan 2011 20:35:58 +0100 Organization: Decebal Computing Message-ID: <87sjxcv2ld.fsf@Compaq.site> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1293924865 1389 80.91.229.12 (1 Jan 2011 23:34:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 1 Jan 2011 23:34:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 02 00:34:21 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PZAxo-00072e-Lg for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Jan 2011 00:34:20 +0100 Original-Received: from localhost ([127.0.0.1]:39954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZAxn-0004Hc-U9 for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Jan 2011 18:34:20 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Original-Newsgroups: gnu.emacs.help X-Homepage: http://www.decebal.nl/ User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:Wh3rU6g80dxEN42RE5VbJA9cDig= Original-Lines: 16 Original-NNTP-Posting-Host: 84.53.123.169 Original-X-Trace: 1293910562 news.xs4all.nl 32470 decebal/[::ffff:84.53.123.169]:24733 Original-X-Complaints-To: abuse@xs4all.nl Original-Xref: usenet.stanford.edu gnu.emacs.help:183816 X-Mailman-Approved-At: Sat, 01 Jan 2011 18:33:40 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78034 Archived-At: I have a lot of functionality written for my Emacs. I was asked to maintain a server for a friend. I installed Emacs there and put my Emacs functionality there also. But some things are depending on X. Because of this I made those depended working with X. In the start of my .emacs I have: (defconst +using-X+ (getenv "DISPLAY")) And where I use X-functionality (not much at the moment) I have: (unless (not +using-X+) (set-scroll-bar-mode 'right) (tool-bar-mode -1)) -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof