From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: rydis (Martin Rydstr|m) @CD.Chalmers.SE Newsgroups: gmane.emacs.help Subject: Re: frames and reading of .emacs? Date: 09 Jan 2004 10:41:57 +0100 Organization: Chalmers University of Technology, Sweden Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: rydis+replies@cd.chalmers.se NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073643816 19945 80.91.224.253 (9 Jan 2004 10:23:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Jan 2004 10:23:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 09 11:23:32 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aetng-00030i-00 for ; Fri, 09 Jan 2004 11:23:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AeuOn-0000dz-Gt for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Jan 2004 06:01:53 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.bahnhof.se!newsfeed.sunet.se!news01.sunet.se!dd.chalmers.se!cd.chalmers.se!rydis Original-Newsgroups: gnu.emacs.help Original-Lines: 62 Original-NNTP-Posting-Host: boris.cd.chalmers.se X-Attribution: mr X-Url: http://www.cd.chalmers.se/~rydis/ Mail-Copies-To: rydis+copies@cd.chalmers.se User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:119918 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15850 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15850 Jan Even Nilsen 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_