* "emacs --daemon" does not load init file
@ 2008-11-25 8:51 Chengqi(Lars) Song
2008-11-25 14:07 ` Tassilo Horn
0 siblings, 1 reply; 10+ messages in thread
From: Chengqi(Lars) Song @ 2008-11-25 8:51 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
I'm using emacs23 snapshot, now it has a fancy function "emacs
--daemon" to run emacs in background. But when I use "emacsclient -c"
to connect to the daemon, I found that my ~/.emacs is not
loaded. That's so bad, is there anyone experienced in emacs daemon?
Thanks.
best
lars
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: "emacs --daemon" does not load init file
[not found] <mailman.1212.1227617005.26697.help-gnu-emacs@gnu.org>
@ 2008-11-25 13:27 ` Richard Riley
2008-11-25 13:59 ` Richard Riley
2008-11-25 16:08 ` Chengqi(Lars) Song
0 siblings, 2 replies; 10+ messages in thread
From: Richard Riley @ 2008-11-25 13:27 UTC (permalink / raw)
To: help-gnu-emacs
"Chengqi(Lars) Song" <songcq@gmail.com> writes:
> Hi,
>
> I'm using emacs23 snapshot, now it has a fancy function "emacs
> --daemon" to run emacs in background. But when I use "emacsclient -c"
> to connect to the daemon, I found that my ~/.emacs is not
> loaded. That's so bad, is there anyone experienced in emacs daemon?
> Thanks.
>
> best
> lars
using CVS emacs, I use "emacs -daemon" and it executes the .emacs or
init fine. "--" or "-" both seem to work from a bash shell btw.
Are you sure there is no error in your .emacs? Did you run emacs -daemon
from the command line where you can see any error output?
Just to be sure - you dont expect emacs -c to run the .emacs?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: "emacs --daemon" does not load init file
2008-11-25 13:27 ` "emacs --daemon" does not load init file Richard Riley
@ 2008-11-25 13:59 ` Richard Riley
2008-11-25 16:08 ` Chengqi(Lars) Song
1 sibling, 0 replies; 10+ messages in thread
From: Richard Riley @ 2008-11-25 13:59 UTC (permalink / raw)
To: help-gnu-emacs
Richard Riley <rileyrgdev@gmail.com> writes:
> "Chengqi(Lars) Song" <songcq@gmail.com> writes:
>
>> Hi,
>>
>> I'm using emacs23 snapshot, now it has a fancy function "emacs
>> --daemon" to run emacs in background. But when I use "emacsclient -c"
>> to connect to the daemon, I found that my ~/.emacs is not
>> loaded. That's so bad, is there anyone experienced in emacs daemon?
>> Thanks.
>>
>> best
>> lars
>
> using CVS emacs, I use "emacs -daemon" and it executes the .emacs or
> init fine. "--" or "-" both seem to work from a bash shell btw.
>
> Are you sure there is no error in your .emacs? Did you run emacs -daemon
> from the command line where you can see any error output?
>
> Just to be sure - you dont expect emacs -c to run the .emacs?
^^^^^^^^^^^^^^^^^^^^^
I meant : "emacsclient -c"
And if Debian based Linux : And did you be sure to run "sudo update-alternatives --config" for emacs
and emacsclient?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: "emacs --daemon" does not load init file
2008-11-25 8:51 Chengqi(Lars) Song
@ 2008-11-25 14:07 ` Tassilo Horn
0 siblings, 0 replies; 10+ messages in thread
From: Tassilo Horn @ 2008-11-25 14:07 UTC (permalink / raw)
To: help-gnu-emacs
"Chengqi(Lars) Song" <songcq@gmail.com> writes:
Hi!
> I'm using emacs23 snapshot, now it has a fancy function "emacs
> --daemon" to run emacs in background. But when I use "emacsclient -c"
> to connect to the daemon, I found that my ~/.emacs is not
> loaded. That's so bad, is there anyone experienced in emacs daemon?
Yes, I had a problem where my .emacs was only loaded partially till a
specific line and everything after that line was omitted. The problem
was that the expression in that line required a file which tried to
retrieve informations from the current frame at load time, but with
emacs --daemon there is no frame then.
So I'd try to check if your .emacs isn't loaded at all or if it's loaded
partially. If it's the latter, try to find the offending code.
Bye,
Tassilo
--
"Emacs is not a development tool but a way of life."
- David Kastrup in alt.religion.emacs -
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: "emacs --daemon" does not load init file
2008-11-25 13:27 ` "emacs --daemon" does not load init file Richard Riley
2008-11-25 13:59 ` Richard Riley
@ 2008-11-25 16:08 ` Chengqi(Lars) Song
2008-11-25 19:45 ` Tassilo Horn
2008-11-25 22:44 ` "emacs --daemon" does not load init file Peter Dyballa
1 sibling, 2 replies; 10+ messages in thread
From: Chengqi(Lars) Song @ 2008-11-25 16:08 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
Yeah, when I run "emacs --daemon" in console it shows this error
message:
error: Fontset `tty' does not exist
But if run "emacs" there is no such message. Note that my emacs is
emacs-gtk.
The font setting script in my .emacs is:
;; font setting
(set-default-font "Bitstream Vera Sans Mono-10")
(set-fontset-font (frame-parameter nil 'font)
'chinese-gbk '("Microsfot Yahei-10" . "unicode-bmp"))
Is there anything wrong?
Best
Lars
On Tue, 25 Nov 2008, Richard Riley wrote:
>
> "Chengqi(Lars) Song" <songcq@gmail.com> writes:
>
> > Hi,
> >
> > I'm using emacs23 snapshot, now it has a fancy function "emacs
> > --daemon" to run emacs in background. But when I use "emacsclient -c"
> > to connect to the daemon, I found that my ~/.emacs is not
> > loaded. That's so bad, is there anyone experienced in emacs daemon?
> > Thanks.
> >
> > best
> > lars
>
> using CVS emacs, I use "emacs -daemon" and it executes the .emacs or
> init fine. "--" or "-" both seem to work from a bash shell btw.
>
> Are you sure there is no error in your .emacs? Did you run emacs -daemon
> from the command line where you can see any error output?
>
> Just to be sure - you dont expect emacs -c to run the .emacs?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: "emacs --daemon" does not load init file
2008-11-25 16:08 ` Chengqi(Lars) Song
@ 2008-11-25 19:45 ` Tassilo Horn
2008-11-26 2:42 ` Chengqi(Lars) Song
2008-11-25 22:44 ` "emacs --daemon" does not load init file Peter Dyballa
1 sibling, 1 reply; 10+ messages in thread
From: Tassilo Horn @ 2008-11-25 19:45 UTC (permalink / raw)
To: help-gnu-emacs
"Chengqi(Lars) Song" <songcq@gmail.com> writes:
Hi!
> Yeah, when I run "emacs --daemon" in console it shows this error
> message:
>
> error: Fontset `tty' does not exist
>
> But if run "emacs" there is no such message. Note that my emacs is
> emacs-gtk.
>
> The font setting script in my .emacs is:
>
> ;; font setting
> (set-default-font "Bitstream Vera Sans Mono-10")
> (set-fontset-font (frame-parameter nil 'font)
> 'chinese-gbk '("Microsfot Yahei-10" . "unicode-bmp"))
>
> Is there anything wrong?
As I've said in <87od03j3vf.fsf@thinkpad.tsdh.de> there's no initial
frame when starting emacs as daemon, so you cannot get frame parameters.
Maybe adding the code to `window-setup-hook' will work. Or simply use
`M-x customize-face' for font settings.
Bye,
Tassilo
--
Richard Stallman doesn't need it, since he already read the internet.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: "emacs --daemon" does not load init file
2008-11-25 16:08 ` Chengqi(Lars) Song
2008-11-25 19:45 ` Tassilo Horn
@ 2008-11-25 22:44 ` Peter Dyballa
1 sibling, 0 replies; 10+ messages in thread
From: Peter Dyballa @ 2008-11-25 22:44 UTC (permalink / raw)
To: Chengqi Song; +Cc: help-gnu-emacs
Am 25.11.2008 um 17:08 schrieb Chengqi(Lars) Song:
> ;; font setting
> (set-default-font "Bitstream Vera Sans Mono-10")
> (set-fontset-font (frame-parameter nil 'font)
> 'chinese-gbk '("Microsfot Yahei-10" . "unicode-
> bmp"))
>
> Is there anything wrong?
At least the second statement is only applicable when GNU Emacs runs
in windowing environment. You should execute it, and maybe more, only
when the window-system is not nil.
My init file is organised like this – and I can launch GNU Emacs
23.0.60 as daemon.
--
Greetings
Pete
Never be led astray onto the path of virtue
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: "emacs --daemon" does not load init file
2008-11-25 19:45 ` Tassilo Horn
@ 2008-11-26 2:42 ` Chengqi(Lars) Song
2008-11-26 7:43 ` Adding toolbar buttons Maindoor
0 siblings, 1 reply; 10+ messages in thread
From: Chengqi(Lars) Song @ 2008-11-26 2:42 UTC (permalink / raw)
To: help-gnu-emacs
I changed the frame related settings to:
(add-hook 'window-setup-hook
(lambda nil
;; font setting
(set-default-font "Bitstream Vera Sans Mono-10")
(set-fontset-font (frame-parameter nil 'font)
'chinese-gbk '("Microsfot Yahei-10" . "unicode-bmp"))
;; window positioning
(setq default-frame-alist '((top . 0) (left . 0) (width . 100) (height . 40)))
))
Now emacs-daemon can startup without any error message:
loading.....
loading.....
loading.....
starting emacs daemon....
But then I found emacsclient -c can not connect to emacs daemon, and "ps ax|grep emacs" returns nothing. That means emacs daemon failed to startup... It's so wierd, and I don't know why...
On Tue, 25 Nov 2008, Tassilo Horn wrote:
> As I've said in <87od03j3vf.fsf@thinkpad.tsdh.de> there's no initial
> frame when starting emacs as daemon, so you cannot get frame parameters.
> Maybe adding the code to `window-setup-hook' will work. Or simply use
> `M-x customize-face' for font settings.
>
> Bye,
> Tassilo
> --
> Richard Stallman doesn't need it, since he already read the internet.
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Adding toolbar buttons
2008-11-26 2:42 ` Chengqi(Lars) Song
@ 2008-11-26 7:43 ` Maindoor
2008-11-26 13:18 ` Maindoor
0 siblings, 1 reply; 10+ messages in thread
From: Maindoor @ 2008-11-26 7:43 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 236 bytes --]
I want to add toolbar buttons, I searched around and found
that it could be done using toolbar utils. Can anyone tell
where I can find
toolbar-utils.el, edit-toolbar.el & xemacs-toolbar.el
? I am using kubuntu 8.04.
Thanks.
[-- Attachment #2: Type: text/html, Size: 407 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Adding toolbar buttons
2008-11-26 7:43 ` Adding toolbar buttons Maindoor
@ 2008-11-26 13:18 ` Maindoor
0 siblings, 0 replies; 10+ messages in thread
From: Maindoor @ 2008-11-26 13:18 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 603 bytes --]
Looks like the functionality is there, but i cannot get it
to work like tool-bar-add-item. If someone has tried it
do let me know.
--- On Wed, 11/26/08, Maindoor <sanjeevfiles@yahoo.com> wrote:
From: Maindoor <sanjeevfiles@yahoo.com>
Subject: Adding toolbar buttons
To: "help-gnu-emacs" <help-gnu-emacs@gnu.org>
Date: Wednesday, November 26, 2008, 1:13 PM
I want to add toolbar buttons, I searched around and found
that it could be done using toolbar utils. Can anyone tell
where I can find
toolbar-utils.el, edit-toolbar.el & xemacs-toolbar.el
? I am using kubuntu 8.04.
Thanks.
[-- Attachment #2: Type: text/html, Size: 1296 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-11-26 13:18 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1212.1227617005.26697.help-gnu-emacs@gnu.org>
2008-11-25 13:27 ` "emacs --daemon" does not load init file Richard Riley
2008-11-25 13:59 ` Richard Riley
2008-11-25 16:08 ` Chengqi(Lars) Song
2008-11-25 19:45 ` Tassilo Horn
2008-11-26 2:42 ` Chengqi(Lars) Song
2008-11-26 7:43 ` Adding toolbar buttons Maindoor
2008-11-26 13:18 ` Maindoor
2008-11-25 22:44 ` "emacs --daemon" does not load init file Peter Dyballa
2008-11-25 8:51 Chengqi(Lars) Song
2008-11-25 14:07 ` Tassilo Horn
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).