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: how to load code conditional on uid Date: Fri, 11 Nov 2011 07:33:58 -0600 Organization: Still searching... Message-ID: <87obwiwzp5.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1321018506 6639 80.91.229.12 (11 Nov 2011 13:35:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Nov 2011 13:35:06 +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 Nov 11 14:35:01 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ROrFv-0002j9-Ci for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Nov 2011 14:34:55 +0100 Original-Received: from localhost ([::1]:41476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROrFr-0003DJ-QZ for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Nov 2011 08:34:51 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:52893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROrFj-00034d-DE for help-gnu-emacs@gnu.org; Fri, 11 Nov 2011 08:34:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROrFi-0006Ms-DB for help-gnu-emacs@gnu.org; Fri, 11 Nov 2011 08:34:43 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:39291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROrFi-0006Ml-8C for help-gnu-emacs@gnu.org; Fri, 11 Nov 2011 08:34:42 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1ROrFg-0002bC-ET for help-gnu-emacs@gnu.org; Fri, 11 Nov 2011 14:34:40 +0100 Original-Received: from c-98-215-179-64.hsd1.in.comcast.net ([98.215.179.64]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Nov 2011 14:34:40 +0100 Original-Received: from reader by c-98-215-179-64.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Nov 2011 14:34:40 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 13 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-179-64.hsd1.in.comcast.net User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) Cancel-Lock: sha1:ngfuvx+HCf/k69Kh3TDITPw7J74= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:82850 Archived-At: Can anyone shoe an example making the loading of specific code, conditional on the users ID? For an example, maybe something like a list of load path additions, perhaps the equivalent of what you would do with shell type coding, only in elisp: if you are specific uid; then ## load theses paths (add-to-list 'load-path "/usr/local/src/vcs/cvs/bbdb") (add-to-list 'load-path "/usr/local/src/vcs/cvs/bbdb/lisp") fi