all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: rydis (Martin Rydstr|m) @CD.Chalmers.SE
Subject: Re: frames and reading of .emacs?
Date: 09 Jan 2004 10:41:57 +0100	[thread overview]
Message-ID: <w4c8ykhe9wa.fsf@boris.cd.chalmers.se> (raw)
In-Reply-To: btlrv3$2720$1@toralf.uib.no

Jan Even Nilsen <evenREMOVE@THISgfi.uib.no> writes:
> Greg Fenton wrote:
> > Jan Even Nilsen wrote:
> >> ...
> >> I have now stripped down the .emacs, and I am still puzzled, so I
> >> hope someone can give me a hint as to what my new emacs is doing.
> >> I know that an existing default.el would be read last, but there is
> >> no such file on my system, as far as I can see.
> > What about ~/.Xresources ?
> 
> No such file on my system, but I'll look into the system's Xresources files.
> 
> > Can you post your "stripped down" .emacs ?
> 
> It's contents is only the text posted between the --- lines, that's
> how stripped it is, to make sure this strange behaviour is not my own
> doing.
> 
> Xresources:
> The system Xresources file(s all) contain the line
> emacs.geometry: 80x25
> This is the size the frame gets initially.
> Then, when .emacs is read, the line
> (setq initial-frame-alist  '((top . -00) (left . 300) (width . 89)
> (height . 51)))
> makes the frame move, but does not manage to resize it.

My guess, without researching, is that X-resources take precedence
over initial-frame-alist, which takes precedence over app-defaults.

> I do not understand? Is it wrong syntax for setq of height and width
> (works for default-frame-alist though)?
> 
> A Q&D way, since new-frames are like I want them, is to set
> (delete-frame)
> (new-frame)
> in the end of .emacs
> 
> BTW: The inclusion of the emacs related entry into a ~/.Xresources and
> edit of these, did not help.

Resources in ".Xresources" aren't automatically activated (except on
some weird systems which confuse user-level app-defaults (which are
normally in .Xdefaults-`hostname`, or something like that)), but are
only loaded into the resource database when logging in via Xdm (or
similar). You probably need to do something along the lines of
"xrdb -merge .Xresources" to get any changes within a session.

> 2) The changing of the face for the marked region is somewhat of a
> puzzle, but I can live with it. It nags me that some function
> overrides my settings, though.

Yes, that's weird. One possibility is to explicitly set the back-
ground color of the face. (set-face-background 'region "goldenrod").

Regards,

'mr

-- 
[Emacs] is written in Lisp, which is the only computer language that is
beautiful.  -- Neal Stephenson, _In the Beginning was the Command Line_

  reply	other threads:[~2004-01-09  9:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-07 15:00 frames and reading of .emacs? Jan Even Nilsen
2004-01-07 20:50 ` Martin Stemplinger
2004-01-08  9:01   ` Jan Even Nilsen
2004-01-08 16:36     ` Greg Fenton
2004-01-09  8:41       ` Jan Even Nilsen
2004-01-09  9:41         ` Martin Rydstr|m [this message]
2004-01-13  8:56           ` Jan Even Nilsen

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=w4c8ykhe9wa.fsf@boris.cd.chalmers.se \
    --to=rydis@cd.chalmers.se \
    --cc=rydis+replies@cd.chalmers.se \
    /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.