unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Setting CVSROOT for VC-mode (without .bashrc)
@ 2008-03-18 21:21 Sven Bretfeld
  2008-03-18 22:26 ` Peter Dyballa
  0 siblings, 1 reply; 5+ messages in thread
From: Sven Bretfeld @ 2008-03-18 21:21 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1448 bytes --]

Hi to all

Due to an unknown reason Emacs (23.0.50.1) doesn't recognize my
environment variables when started via Icon or start-menu. I use one
CVS repository for all my work, and it's specified in ~/.bashrc. The
VC mode is working as expected if I start Emacs from the bash.
However, when started in the "common" ways under X (Icon, KDE-Menu,
kicker), Emacs behaves like this:

M-x cvs-update RET ~/aktuell/ RET

,----
| Repository : ?????
| Module     : 
| Working dir: ~/aktuell/
| 
| Message: cvs [update aborted]: or set the CVSROOT environment variable.
| Message: cvs update: No CVSROOT specified!  Please use the `-d' option
`----

I have my primary Debian Etch machine newly installed on Sunday. It
worked before, when I used exactly the same configuration (same OS,
same Emacs version, same Emacs-init-file, same .bashrc). I have two
other PCs running Debian with exactly the same configuration. One of
them shows the same behavior. The other one does alright. So, this
seems to be a somewhat arbitrary behavior. 

I got help from the German Debian mailing list but with no solution so
far. ~/.bashrc, ~/.bash_profile and /etc/kde3/kdm/Xsession seem to be
alright.

Is there a way to specify CVSROOT in the .emacs? That will be a
workaround, but I have found no hints in the manual. It seems to
consider the environment variables to be read by Emacs. Or, are there
any other ideas?

Greetings

Sven

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Setting CVSROOT for VC-mode (without .bashrc)
  2008-03-18 21:21 Setting CVSROOT for VC-mode (without .bashrc) Sven Bretfeld
@ 2008-03-18 22:26 ` Peter Dyballa
  2008-03-19  0:50   ` Johan Lindström
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Dyballa @ 2008-03-18 22:26 UTC (permalink / raw)
  To: Sven Bretfeld; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 308 bytes --]


Am 18.03.2008 um 22:21 schrieb Sven Bretfeld:

> Is there a way to specify CVSROOT in the .emacs?


	(setenv "CVSROOT" "/some/value")

--
Mit friedvollen Grüßen

   Pete

One person with a belief is a social power equal to ninety-nine who  
have only interests.
				– John Stuart Mill




[-- Attachment #2: Signierter Teil der Nachricht --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Setting CVSROOT for VC-mode (without .bashrc)
  2008-03-18 22:26 ` Peter Dyballa
@ 2008-03-19  0:50   ` Johan Lindström
  2008-03-19  2:08     ` Lennart Borgman (gmail)
  2008-03-19 22:56     ` Sven Bretfeld
  0 siblings, 2 replies; 5+ messages in thread
From: Johan Lindström @ 2008-03-19  0:50 UTC (permalink / raw)
  To: help-gnu-emacs

At 22:26 2008-03-18, Peter Dyballa wrote:
>>Is there a way to specify CVSROOT in the .emacs?
>
>         (setenv "CVSROOT" "/some/value")

Export environment vars to a running Emacs server
http://www.shellarchive.co.uk/emacs.html#sec15

Do stuff (like exporting env vars) when cd-ing into a directory (like 
your different branches, eh?)
http://www.shellarchive.co.uk/shell.html#sec16

Very clever. Very useful.


/J





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Setting CVSROOT for VC-mode (without .bashrc)
  2008-03-19  0:50   ` Johan Lindström
@ 2008-03-19  2:08     ` Lennart Borgman (gmail)
  2008-03-19 22:56     ` Sven Bretfeld
  1 sibling, 0 replies; 5+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-19  2:08 UTC (permalink / raw)
  To: Johan Lindström; +Cc: help-gnu-emacs

Johan Lindström wrote:
> At 22:26 2008-03-18, Peter Dyballa wrote:
>>> Is there a way to specify CVSROOT in the .emacs?
>>
>>         (setenv "CVSROOT" "/some/value")
> 
> Export environment vars to a running Emacs server
> http://www.shellarchive.co.uk/emacs.html#sec15
> 
> Do stuff (like exporting env vars) when cd-ing into a directory (like 
> your different branches, eh?)
> http://www.shellarchive.co.uk/shell.html#sec16
> 
> Very clever. Very useful.


It contained some nice screen shots too. Did you notice most of them are 
text, not pictures? You can easily make something similar with 
hfy-view.el + htmlfontify.el, see

   http://ourcomments.org/Emacs/nXhtml/doc/htmlfontify-example.html

Though it is of course difficult to make something that nicely looking 
... ;-)




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Setting CVSROOT for VC-mode (without .bashrc)
  2008-03-19  0:50   ` Johan Lindström
  2008-03-19  2:08     ` Lennart Borgman (gmail)
@ 2008-03-19 22:56     ` Sven Bretfeld
  1 sibling, 0 replies; 5+ messages in thread
From: Sven Bretfeld @ 2008-03-19 22:56 UTC (permalink / raw)
  To: Johan Lindström; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 464 bytes --]

Hi to all

Johan Lindström <johanl@DarSerMan.com> writes:

>>         (setenv "CVSROOT" "/some/value")

Thanks, Pete. One can always count on you. Shame on me that I didn't
know this. I've seen it many times before. Now my problem is solved.

> Export environment vars to a running Emacs server
> http://www.shellarchive.co.uk/emacs.html#sec15

That is really a nice site. I've learned many useful tricks I've not
known before.

Greetings

Sven

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-03-19 22:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-18 21:21 Setting CVSROOT for VC-mode (without .bashrc) Sven Bretfeld
2008-03-18 22:26 ` Peter Dyballa
2008-03-19  0:50   ` Johan Lindström
2008-03-19  2:08     ` Lennart Borgman (gmail)
2008-03-19 22:56     ` Sven Bretfeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).