From: Sven Bretfeld <sven.bretfeld@gmx.ch>
To: help-gnu-emacs@gnu.org
Subject: Re: emacsserver unstable?
Date: Wed, 25 Jul 2007 15:43:52 +0200 [thread overview]
Message-ID: <20070725134352.GP3486@relwi.unibe.ch> (raw)
In-Reply-To: <6554B8F7-CBBD-4C97-860F-2AA4C204EB45@Web.DE>
On Tue, Jul 24, 2007 at 07:44:02PM +0200, Peter Dyballa wrote:
> Can you try to minimise your user init file, ~/.emacs or such? Could
> be there is some code that causes the error you see ...
Prepare for the hammer! The issue is in fact related to some code
lines in my init file, not to any cronjob or library on my
system. It's something nobody would probably have expected and it
twists my mind.
The dying of the server seems to depend on the interplay of two
definitions in my .emacs. I will call them code A and code B for
explanation (it's only phenomenology, since I cannot explain what
causes the problem):
Code A:
;; color-theme-------------------------
(require 'color-theme)
(color-theme-calm-forest)
;;-------------------------------------
Code B:
;; geometry of frames------------------
(setq default-frame-alist (append (list
'(width . 82)
'(height . 45))
default-frame-alist))
(add-to-list
'default-frame-alist
'(font . "-Adobe-Courier-Medium-R-Normal--24-240-75-75-M-150-ISO8859-1"))
;;-------------------------------------
What happens is as follows:
- If both codes are on:
Emacsserver dies after some minutes. I don't
know when exactly this happens. It seems to be a matter of time, not
a matter of doing anything. But it's hard to say. Phenomenologically:
I start Emacs. I change to Mutt (which runs on a different virtual
desktop) and prepare to compose an email. Emacsclient starts a new
frame on that virtual desktop with Mutt-mode (same size and color as
the initial frame, all other buffers of the session are
accessible). After composing the message I hit C-c C-c and return to
Mutt to send it. Thereafter, I'm working again on some LaTeX stuff
in the initial frame. Compose a message again after some
minutes. Working. Again LaTeX stuff. Again trying to send an
Email. No frame is started, no Emacsclient available!
- If only Code A is on (Code B commented):
The initial frame starts a little smaller. Not a problem, I can
maximize the frame. But, when I start to compose a message from
Mutt, the new frame is much too small (about half the geometry of the
initial frame) and with a much smaller font. Too small to work
with (that's why I inserted code B at all). But emacsserver seems to
be stable.
- If only Code B is on (Code A commented):
This is the worst version. Emacsserver seems to be stable, but
(apart from not having my beloved colors) a strange behavior occurs
with the fonts. And this really upsets me because I don't know
why and it didn't happen before I discovered the color-theme half a
year ago. I often use characters with uncommon accents, for example an n
with dot above (341797, #o1233445, #x53725, U+1E45). Without the
color theme newly inserted occurrences of these characters come in
adobe-helvetica, not in adobe-courier (which is my standard
font). Older occurrences of these characters are displayed as
normal. It looks very ugly of course. How can this happen?
Adobe-courier is defined via customize my standard-font. Nowhere
have I defined adobe-helvetica. There are font-definitions in
color-theme.el but this behavior, however, occurs when the
color-themes are off. Where is the conflict?
- If both codes are commented:
Same as the previous. Only a smaller initial frame.
What can we make out of this? The font problem, I feel, is
interrelated with the server-problem. Something seems to be in
conflict, but I cannot figure it out.
If someone is inclined to help me figuring out my problem, it might be
best to attach the relevant parts of my .emacs down below.
Please excuse the length of my posting and the ignorance displayed in
it.
Help is much welcome.
Greetings,
Sven
;;;;;;;;;;;~/.emacs
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(case-fold-search t)
'(current-language-environment "UTF-8")
'(default-input-method "rfc1345")
'(delete-selection-mode nil nil (delsel))
'(global-font-lock-mode t nil (font-lock))
'(scroll-bar-mode (quote right))
'(show-paren-mode t nil (paren))
'(transient-mark-mode t))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:stipple nil :background "#ffffff" :foreground "#000000" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 200 :width normal :family "adobe-courier")))))
;;-----------------------------------------------------------------
;; color-theme
;;-----------------------------------------------------------------
(require 'color-theme)
; (color-theme-gnome2)
(color-theme-calm-forest)
; (color-theme-dark-blue)
; (color-theme-dark-blue2)
; (color-theme-deep-blue)
; (color-theme-subtle-hacker)
;;----------------------------------------------------------------------
;; Grösse des Frames beim Starten
;;----------------------------------------------------------------------
(setq default-frame-alist (append (list
'(width . 82)
'(height . 45))
default-frame-alist))
(add-to-list
'default-frame-alist
'(font . "-Adobe-Courier-Medium-R-Normal--24-240-75-75-M-150-ISO8859-1"))
;;-----------------------------------------------------------------
;; Emacs und Mutt
;;-----------------------------------------------------------------
;; Start emacsclient in its own frame------------------------------
(add-hook 'server-switch-hook
(lambda nil
(let ((server-buf (current-buffer)))
(bury-buffer)
(switch-to-buffer-other-frame server-buf))))
(add-hook 'server-done-hook 'delete-frame)
(add-hook 'server-done-hook (lambda nil (kill-buffer nil)))
;; When in Terminal------------------------------------------------
(when (not window-system)
(set-keyboard-coding-system locale-coding-system)
(set-terminal-coding-system locale-coding-system)
(color-theme-emacs-nw)
)
;; mutt-mode-------------------------------------------------------
(setq load-path (cons "~/elisp/mutt" load-path))
(require 'mutt)
(add-to-list 'auto-mode-alist '("mutt-kamaloka.dhatu" . mutt-mode))
(push '(".*/tmp/mutt.*\\'" . mutt-mode) auto-mode-alist)
;;-----------------------------------------------------------------
;; Start emacsserver
;;-----------------------------------------------------------------
(server-start)
next prev parent reply other threads:[~2007-07-25 13:43 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-23 23:40 emacsserver unstable? Sven Bretfeld
2007-07-24 13:44 ` Sven Bretfeld
[not found] ` <mailman.3864.1185284692.32220.help-gnu-emacs@gnu.org>
2007-07-24 15:05 ` Tassilo Horn
2007-07-24 16:08 ` Sven Bretfeld
2007-07-24 17:44 ` Peter Dyballa
2007-07-24 19:08 ` Sven Bretfeld
2007-07-24 20:22 ` Peter Dyballa
2007-07-24 21:46 ` Lennart Borgman (gmail)
2007-07-24 21:50 ` Peter Dyballa
2007-07-24 22:01 ` Sven Bretfeld
2007-07-24 22:47 ` Peter Dyballa
2007-07-25 13:43 ` Sven Bretfeld [this message]
2007-07-25 15:13 ` Sven Bretfeld
2007-07-25 23:43 ` Sven Bretfeld
[not found] ` <mailman.3990.1185406991.32220.help-gnu-emacs@gnu.org>
2007-07-26 8:22 ` Tassilo Horn
[not found] <mailman.3828.1185234040.32220.help-gnu-emacs@gnu.org>
2007-07-24 7:48 ` Tassilo Horn
2007-07-24 9:09 ` Sven Bretfeld
[not found] ` <mailman.3845.1185268221.32220.help-gnu-emacs@gnu.org>
2007-07-25 5:59 ` Stefan Monnier
2007-07-26 13:26 ` Sven Bretfeld
2007-07-26 18:27 ` Peter Dyballa
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=20070725134352.GP3486@relwi.unibe.ch \
--to=sven.bretfeld@gmx.ch \
--cc=help-gnu-emacs@gnu.org \
/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.