From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: test for presence of library Date: Fri, 26 Feb 2010 14:21:35 -0600 Organization: Still searching... Message-ID: <87ljefg33k.fsf@newsguy.com> References: <87mxz6116b.fsf@galatea.lan.informatimago.com> <87fx4u6nfg.fsf@galatea.lan.informatimago.com> <87ljehcbof.fsf@galatea.lan.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267215750 25453 80.91.229.12 (26 Feb 2010 20:22:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Feb 2010 20:22:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 26 21:22:23 2010 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 1Nl6hY-0001YJ-AN for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Feb 2010 21:22:20 +0100 Original-Received: from localhost ([127.0.0.1]:34337 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nl6hX-0007iq-J3 for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Feb 2010 15:22:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nl6h9-0007iE-Ds for help-gnu-emacs@gnu.org; Fri, 26 Feb 2010 15:21:55 -0500 Original-Received: from [140.186.70.92] (port=41376 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nl6h4-0007hF-Pf for help-gnu-emacs@gnu.org; Fri, 26 Feb 2010 15:21:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nl6h3-0000wU-9P for help-gnu-emacs@gnu.org; Fri, 26 Feb 2010 15:21:50 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:59390) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nl6h2-0000wL-Sj for help-gnu-emacs@gnu.org; Fri, 26 Feb 2010 15:21:49 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Nl6h0-0001IX-Ku for help-gnu-emacs@gnu.org; Fri, 26 Feb 2010 21:21:46 +0100 Original-Received: from c-98-215-178-110.hsd1.in.comcast.net ([98.215.178.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Feb 2010 21:21:46 +0100 Original-Received: from reader by c-98-215-178-110.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Feb 2010 21:21:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 57 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-110.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:XTURmiad4IH+BvkJlabfgV1cAyk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:72173 Archived-At: pjb@informatimago.com (Pascal J. Bourguignon) writes: > Harry Putnam writes: > >> Sorry for my tardy response... I got distracted for a while. >> >> Thanks posters one and all... good suggestions and great helpful >> info. I have several solutions now. >> >> One case, the one that actually pertains here that didn't get >> mentioned by TimX is where something being required is only useful in >> certain environments.. >> >> An example might be using emacs as root when doing system configs. >> >> There are really quite a few aspects of emacs I'll never use in that >> situation. Yet its handy to have a portable emacs that loads the stuff >> I need in some environments but skips it when working as root doing >> system configs. >> >> Or maybe running emacs as user but while setting up a new os where I >> won't expect many things to be available... >> >> In those cases the idea that things may fail down the road from not >> loading certain libs is not a problem since those things will not even >> be attempted. >> >> Now I know how to do it. > > Really, when you are in for a quick edit (vi-like) with emacs as root, > just use: > > emacs -nw -q Well, yeah for really quick vi-like... but mostly No, not what I was after... Even there, my .emacs has settings I want in force, such as custom fontlocking, etc.. and several `skeletons' I use quite a bit. (Especially when editing configs) Probably quite a few more that would not be there with -q but don't involve `requiring' extra pkgs. Particularly one skeleton that wraps original lines with: # [HP 10/02/26_14:13:11 # original stuff here Type my new stuff here # ] So I can see exactly what was there and what is new for debug purposes. > or: > > alias ed='emacs -nw -q' > ed > ;-) But then I'd miss the joy of doing complicated edits with ed... hehe.