all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Not a big issue re: Xresources ... but ??
@ 2007-06-27 12:37 William Case
  2007-06-27 13:02 ` Andrea Vettorello
  0 siblings, 1 reply; 8+ messages in thread
From: William Case @ 2007-06-27 12:37 UTC (permalink / raw)
  To: EMACS List

Hi;

I have set my Xresources file as below:

/etc/X11/Xresources
...
! start emacs with scroll bar on right side
Emacs.Geometry: 80x65+96+32
Emacs.verticleScrollBars: right

It does the job.  But Emacs always starts with a different position size
and with the scrollbar on the left.  That lasts for a fraction of a
second, just long enough for me to see that it is some default
configuration then flashes to the Xresources setup.  It looks a little
hacky; I can live with that.

But.

Shouldn't there be some way to setup Emacs so that it opens in the
desired configuration cleanly and smoothly without first creating some
default view?

I am using a slightly older machine -- new 5 years ago -- with a P4 1.3
CPU and 640MB Ram.  It is at the low end for today, but should be fast
enough to draw Emacs instantly.

Dare I change this ?
Is there some default instructions in an earlier loading file (*.el)
that I can remove?  Or, change?

As the subject line says, this not a big issue for me but it would be
nice if it worked smoothly -- just cleaning up items on my to-do list.


-- 
Regards Bill,
Emacs 22.0.990.1  Fedora 7 

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

* Re: Not a big issue re: Xresources ... but ??
  2007-06-27 12:37 William Case
@ 2007-06-27 13:02 ` Andrea Vettorello
  2007-06-27 13:30   ` William Case
  0 siblings, 1 reply; 8+ messages in thread
From: Andrea Vettorello @ 2007-06-27 13:02 UTC (permalink / raw)
  To: EMACS List

On 6/27/07, William Case <billlinux@rogers.com> wrote:
> Hi;
>
> I have set my Xresources file as below:
>
> /etc/X11/Xresources
> ...
> ! start emacs with scroll bar on right side
> Emacs.Geometry: 80x65+96+32
> Emacs.verticleScrollBars: right
>
> It does the job.  But Emacs always starts with a different position size
> and with the scrollbar on the left.  That lasts for a fraction of a
> second, just long enough for me to see that it is some default
> configuration then flashes to the Xresources setup.  It looks a little
> hacky; I can live with that.

Do you set a font in your ~/.emacs? Try to set it in your
~/.Xresources file instead (Emacs.font: blah-blah-blah), this should
fix the frame (window) resizing. For the position, i'll blame your WM.

About the scrollbar, i've no idea...


-- 
Andrea

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

* Re: Not a big issue re: Xresources ... but ??
  2007-06-27 13:02 ` Andrea Vettorello
@ 2007-06-27 13:30   ` William Case
  0 siblings, 0 replies; 8+ messages in thread
From: William Case @ 2007-06-27 13:30 UTC (permalink / raw)
  To: Andrea Vettorello; +Cc: EMACS List

Hi Andrea;
On Wed, 2007-06-27 at 15:02 +0200, Andrea Vettorello wrote:
> On 6/27/07, William Case <billlinux@rogers.com> wrote:
> > Hi;
> >
> > I have set my Xresources file as below:
> >
> > /etc/X11/Xresources
> > ...
> > ! start emacs with scroll bar on right side
> > Emacs.Geometry: 80x65+96+32
> > Emacs.verticleScrollBars: right
> >
> > It does the job.  But Emacs always starts with a different position size
> > and with the scrollbar on the left.  That lasts for a fraction of a
> > second, just long enough for me to see that it is some default
> > configuration then flashes to the Xresources setup.  It looks a little
> > hacky; I can live with that.
> 
> Do you set a font in your ~/.emacs? Try to set it in your
> ~/.Xresources file instead (Emacs.font: blah-blah-blah), this should
> fix the frame (window) resizing. For the position, i'll blame your WM.
> 
> About the scrollbar, i've no idea...

I have no fonts set in ~/.emacs.  I am content to use the default as my
start up font.

You may notice that I have set the postion, size and scrollbar
in /etc/X11/Xresources rather than ~/.Xresources.  I wanted the defined
behaviour to be global on my machine.
-- 
Regards Bill

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

* Re: Not a big issue re: Xresources ... but ??
       [not found] <mailman.2681.1182948307.32220.help-gnu-emacs@gnu.org>
@ 2007-06-27 14:02 ` Gordon Beaton
  2007-06-27 22:14   ` William Case
       [not found]   ` <mailman.2714.1182982984.32220.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Gordon Beaton @ 2007-06-27 14:02 UTC (permalink / raw)
  To: help-gnu-emacs

On Wed, 27 Jun 2007 12:37:10 +0000, William Case wrote:
> Emacs.verticleScrollBars: right

ITYM "vertical".

Because of the spelling mistake, I suspect that the setting is
actually being handled by (scroll-bar-mode 'right) in your .emacs,
i.e. *after* X has rendered the original window (emacs "frame").

Also, check with 

  xrdb -query | grep -i emacs

that your values are in effect.

/gordon

-- 

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

* Re: Not a big issue re: Xresources ... but ??
  2007-06-27 14:02 ` Not a big issue re: Xresources ... but ?? Gordon Beaton
@ 2007-06-27 22:14   ` William Case
       [not found]   ` <mailman.2714.1182982984.32220.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 8+ messages in thread
From: William Case @ 2007-06-27 22:14 UTC (permalink / raw)
  To: Gordon Beaton; +Cc: help-gnu-emacs

Thanks Gordon

On Wed, 2007-06-27 at 14:02 +0000, Gordon Beaton wrote:
> On Wed, 27 Jun 2007 12:37:10 +0000, William Case wrote:
> > Emacs.verticleScrollBars: right
> 
> ITYM "vertical".
> 
I must of looked at that file 20 times and never saw the spelling
mistake.  (Well, maybe 3 times)

> Because of the spelling mistake, I suspect that the setting is
> actually being handled by (scroll-bar-mode 'right) in your .emacs,
> i.e. *after* X has rendered the original window (emacs "frame").
> 

This sounds right.  But, in fact having corrected the spelling error and
re-booted, I now get three stutters as Emacs tries to place my
scrollbar.  I have tried removing, nil -ing and re-adding
'(scroll-bar-mode 'right) in my .emacs, and whichever way, I still get
the stutter.

> Also, check with 
> 
>   xrdb -query | grep -i emacs
> 
Checked.  They are in effect according to xrdb.

As I said, this is not a major issue, just something I thought I would
correct today.  If there is not an easy solution, I'll just let sleeping
dogs lay.

-- 
Regards Bill

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

* Re: Not a big issue re: Xresources ... but ??
       [not found]   ` <mailman.2714.1182982984.32220.help-gnu-emacs@gnu.org>
@ 2007-06-28  6:31     ` Gordon Beaton
  2007-06-28 11:05       ` William Case
  0 siblings, 1 reply; 8+ messages in thread
From: Gordon Beaton @ 2007-06-28  6:31 UTC (permalink / raw)
  To: help-gnu-emacs

On Wed, 27 Jun 2007 18:14:53 -0400, William Case wrote:
> This sounds right. But, in fact having corrected the spelling error
> and re-booted, I now get three stutters as Emacs tries to place my
> scrollbar. I have tried removing, nil -ing and re-adding
> '(scroll-bar-mode 'right) in my .emacs, and whichever way, I still
> get the stutter.

I think you need to do (set-scroll-bar-mode 'right). However do you
still get the stutter if you run "emacs -q --no-site-file"?

/gordon

-- 

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

* Re: Not a big issue re: Xresources ... but ??
  2007-06-28  6:31     ` Gordon Beaton
@ 2007-06-28 11:05       ` William Case
  2007-06-28 11:22         ` William Case
  0 siblings, 1 reply; 8+ messages in thread
From: William Case @ 2007-06-28 11:05 UTC (permalink / raw)
  To: Gordon Beaton; +Cc: help-gnu-emacs

Well, Well, Well Charles;

Thanks for leading me to emacs --help.  Should have known of it, but
somewhere back of my mind I must of assumed normal gnome things don't
apply to emacs.

On Thu, 2007-06-28 at 06:31 +0000, Gordon Beaton wrote:
> On Wed, 27 Jun 2007 18:14:53 -0400, William Case wrote:
> > This sounds right. But, in fact having corrected the spelling error
> > and re-booted, I now get three stutters as Emacs tries to place my
> > scrollbar. I have tried removing, nil -ing and re-adding
> > '(scroll-bar-mode 'right) in my .emacs, and whichever way, I still
> > get the stutter.
> 
> I think you need to do (set-scroll-bar-mode 'right). However do you
> still get the stutter if you run "emacs -q --no-site-file"?
> 
"emacs -q --no-site-file"  Returns the emacs start up with NO stutter
and the correct geometry.  The the stutter problem seems to stem from a
slightly larger font size from the default in .emacs.  I.E. after
configuring the frame based on Xresources, emacs has to reconfigure
again based on the ~/.emacs font size.

I'll figure out what I did (originally a couple of years ago) --
something with the font height.  I will put the non-default size font
(old eyes fading slightly) in the Xresources file.

Thanks Gordon

-- 
Regards Bill,
Emacs 22.0.990.1  Fedora 7 

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

* Re: Not a big issue re: Xresources ... but ??
  2007-06-28 11:05       ` William Case
@ 2007-06-28 11:22         ` William Case
  0 siblings, 0 replies; 8+ messages in thread
From: William Case @ 2007-06-28 11:22 UTC (permalink / raw)
  To: Gordon Beaton; +Cc: help-gnu-emacs

Sorry Gordon;

On Thu, 2007-06-28 at 07:05 -0400, William Case wrote:
> Well, Well, Well Charles;
                   ^^^^^^^
                   Gordon

> 
> Thanks for leading me to emacs --help.  Should have known of it, but
> somewhere back of my mind I must of assumed normal gnome things don't
> apply to emacs.
> 
> On Thu, 2007-06-28 at 06:31 +0000, Gordon Beaton wrote:
> > On Wed, 27 Jun 2007 18:14:53 -0400, William Case wrote:
> > > This sounds right. But, in fact having corrected the spelling error
> > > and re-booted, I now get three stutters as Emacs tries to place my
> > > scrollbar. I have tried removing, nil -ing and re-adding
> > > '(scroll-bar-mode 'right) in my .emacs, and whichever way, I still
> > > get the stutter.
> > 
> > I think you need to do (set-scroll-bar-mode 'right). However do you
> > still get the stutter if you run "emacs -q --no-site-file"?
> > 
> "emacs -q --no-site-file"  Returns the emacs start up with NO stutter
> and the correct geometry.  The the stutter problem seems to stem from a
> slightly larger font size from the default in .emacs.  I.E. after
> configuring the frame based on Xresources, emacs has to reconfigure
> again based on the ~/.emacs font size.
> 
> I'll figure out what I did (originally a couple of years ago) --
> something with the font height.  I will put the non-default size font
> (old eyes fading slightly) in the Xresources file.
> 
> Thanks Gordon
> 
-- 
Regards Bill

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

end of thread, other threads:[~2007-06-28 11:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2681.1182948307.32220.help-gnu-emacs@gnu.org>
2007-06-27 14:02 ` Not a big issue re: Xresources ... but ?? Gordon Beaton
2007-06-27 22:14   ` William Case
     [not found]   ` <mailman.2714.1182982984.32220.help-gnu-emacs@gnu.org>
2007-06-28  6:31     ` Gordon Beaton
2007-06-28 11:05       ` William Case
2007-06-28 11:22         ` William Case
2007-06-27 12:37 William Case
2007-06-27 13:02 ` Andrea Vettorello
2007-06-27 13:30   ` William Case

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.