From: "Drew Adams" <drew.adams@oracle.com>
To: "'Harry Putnam'" <reader@newsguy.com>, <help-gnu-emacs@gnu.org>
Subject: RE: how to load code conditional on uid
Date: Fri, 11 Nov 2011 06:44:23 -0800 [thread overview]
Message-ID: <4C03066C51894FF99AF38EF210C163C4@us.oracle.com> (raw)
In-Reply-To: <87obwiwzp5.fsf@newsguy.com>
> Can anyone shoe an example making the loading of specific code,
> conditional on the users ID?
>
> 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")
(when (= me (user-uid)) ; ME = your UID
(add-to-list 'load-path ...)
(add-to-list 'load-path ...))
See (elisp) `User Identification'.
next prev parent reply other threads:[~2011-11-11 14:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-11 13:33 how to load code conditional on uid Harry Putnam
2011-11-11 14:44 ` Drew Adams [this message]
2011-11-11 15:26 ` Harry Putnam
2011-11-11 15:45 ` Drew Adams
2011-11-11 22:46 ` Harry Putnam
2011-11-12 11:19 ` Harry Putnam
2011-11-12 14:36 ` Drew Adams
2011-11-13 23:14 ` Harry Putnam
[not found] <mailman.258.1321018489.798.help-gnu-emacs@gnu.org>
2011-11-12 2:40 ` Jason Rumney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C03066C51894FF99AF38EF210C163C4@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=reader@newsguy.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.