unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#11830: 24.1; "scroll-bar-mode disabled" not honored when emacs started as daemon
@ 2012-07-01  1:14 Reynaldo Baquerizo
  2012-07-01 19:05 ` Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: Reynaldo Baquerizo @ 2012-07-01  1:14 UTC (permalink / raw)
  To: 11830

In my .emacs file I keep this

(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))

- I start emacs as a daemon. emacs --daemon
- I create a new frame. emacsclient -c

I expect:
A frame with no scroll-bar

Instead I get:
A frame with scroll-bar

Additional:
(fboundp 'scroll-bar-mode) evaluates to true. I checked this adding the
following and can see in buffer *Messages* the debug message.

(when (fboundp 'scroll-bar-mode)
      (scroll-bar-mode -1)
      (message "[DBG] scroll-bar-mode disabled"))

###################################################################

In GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10)
 of 2012-06-11 on bitzer.hoetzel.info
Windowing system distributor `The X.Org Foundation', version 11.0.11202000
Configured using:
 `configure '--prefix=/usr' '--sysconfdir=/etc' '--libexecdir=/usr/lib'
 '--localstatedir=/var' '--with-x-toolkit=gtk' '--with-xft'
 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
 --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: en_US.utf8
  value of $LC_MONETARY: es_PE.utf8
  value of $LC_NUMERIC: es_PE.utf8
  value of $LC_TIME: es_PE.utf8
  value of $LANG: es_PE.utf8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  display-time-mode: t
  auto-insert-mode: t
  shell-dirtrack-mode: t
  delete-selection-mode: t
  ido-everywhere: t
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <down> <down> <down>
<down> <down> <down> <down> <down> C-g C-M-SPC C-g
C-M-d C-M-d C-M-u C-M-SPC C-g C-M-f C-f C-M-SPC C-g
C-M-u <down-mouse-1> <mouse-1> M-x e m a c s - C-SPC
b v u <backspace> <backspace> u g C-s C-s <return>

Recent messages:
~/.emacs and /home/rbm/dotemacs/.emacs are the same file
(No changes need to be saved)
Mark saved where search started
byte-code: Beginning of buffer [13 times]
Quit
Mark set
Quit
Mark set
Quit
Mark set
Quit

Load-path shadows:
None found.

Features:
(shadow sort mail-extr multi-isearch help-mode view tmm electric vc-hg
ibuf-ext wid-edit network-stream starttls url-cache emacsbug sendmail
server coffee-mode easy-mmode imenu ibuffer time warnings weblogger
derived message format-spec rfc822 mml mml-sec mm-decode mm-bodies
mm-encode mailabbrev mail-utils gmm-utils mailheader xml-rpc timezone
url-http tls url url-proxy url-privacy url-expand url-methods
url-history mailcap url-auth mail-parse rfc2231 rfc2047 rfc2045
ietf-drums url-cookie url-util url-parse auth-source eieio byte-opt
bytecomp byte-compile cconv macroexp assoc gnus-util password-cache
url-gw url-vars mm-util mail-prsvr xml autoinsert erlang-flymake flymake
erlang-start ipython edmacro kmacro python-mode info-look info easymenu
compile executable shell pcomplete cl advice help-fns advice-preload
delsel ido time-date paren comint regexp-opt ansi-color ring tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer loaddefs button faces cus-face files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)





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

* bug#11830: 24.1; "scroll-bar-mode disabled" not honored when emacs started as daemon
  2012-07-01  1:14 bug#11830: 24.1; "scroll-bar-mode disabled" not honored when emacs started as daemon Reynaldo Baquerizo
@ 2012-07-01 19:05 ` Glenn Morris
  2012-07-01 19:54   ` Reynaldo Baquerizo
  0 siblings, 1 reply; 5+ messages in thread
From: Glenn Morris @ 2012-07-01 19:05 UTC (permalink / raw)
  To: Reynaldo Baquerizo; +Cc: 11830

Reynaldo Baquerizo wrote:

> In my .emacs file I keep this
>
> (if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
> (if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
> (if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
>
> - I start emacs as a daemon. emacs --daemon
> - I create a new frame. emacsclient -c
>
> I expect:
> A frame with no scroll-bar

Works for me. I tried both Gtk and Lucid toolkit builds.

> In GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10)
>  of 2012-06-11 on bitzer.hoetzel.info





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

* bug#11830: 24.1; "scroll-bar-mode disabled" not honored when emacs started as daemon
  2012-07-01 19:05 ` Glenn Morris
@ 2012-07-01 19:54   ` Reynaldo Baquerizo
  2012-07-02  0:49     ` Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: Reynaldo Baquerizo @ 2012-07-01 19:54 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 11830

> > In my .emacs file I keep this
> >
> > (if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
> > (if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
> > (if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
> >
> > - I start emacs as a daemon. emacs --daemon
> > - I create a new frame. emacsclient -c
> >
> > I expect:
> > A frame with no scroll-bar
> 
> Works for me. I tried both Gtk and Lucid toolkit builds.

I left only those lines in my .emacs file and it did work.
Later I found that messing with default-frame-alist produced the unwanted result.

(setq default-frame-alist '((font . "Monaco-11"))

If instead I use:
(add-to-list 'default-frame-alist '(font . "Monaco-11"))

then it's OK.

It's a bit confusing the behaviour of frame related parameterers when used --daemon.

With the .emacs working file the value of default-parameter-list is

Its value is ((width . 112)
 (height . 30)
 (font . "Monaco-11")
 (vertical-scroll-bars))

I know that when --daemon is used initial-parameter-list has no effect, but
default-parameter-list does. 

Then, that (vertical-scroll-bars) shouldn't make new frames have a scroll-bar?






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

* bug#11830: 24.1; "scroll-bar-mode disabled" not honored when emacs started as daemon
  2012-07-01 19:54   ` Reynaldo Baquerizo
@ 2012-07-02  0:49     ` Glenn Morris
  2012-07-02  1:56       ` Reynaldo Baquerizo
  0 siblings, 1 reply; 5+ messages in thread
From: Glenn Morris @ 2012-07-02  0:49 UTC (permalink / raw)
  To: Reynaldo Baquerizo; +Cc: 11830

Reynaldo Baquerizo wrote:

> Later I found that messing with default-frame-alist produced the
> unwanted result.
>
> (setq default-frame-alist '((font . "Monaco-11"))

I think that explains it.

> With the .emacs working file the value of default-parameter-list is
>
> Its value is ((width . 112)
>  (height . 30)
>  (font . "Monaco-11")
>  (vertical-scroll-bars))

The last one can be written as (vertical-scroll-bars . nil).
By setq'ing default-frame-alist, you were clobbering this setting.





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

* bug#11830: 24.1; "scroll-bar-mode disabled" not honored when emacs started as daemon
  2012-07-02  0:49     ` Glenn Morris
@ 2012-07-02  1:56       ` Reynaldo Baquerizo
  0 siblings, 0 replies; 5+ messages in thread
From: Reynaldo Baquerizo @ 2012-07-02  1:56 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 11830

> > Later I found that messing with default-frame-alist produced the
> > unwanted result.
> >
> > (setq default-frame-alist '((font . "Monaco-11"))
> 
> I think that explains it.
> 
> > With the .emacs working file the value of default-parameter-list is
> >
> > Its value is ((width . 112)
> >  (height . 30)
> >  (font . "Monaco-11")
> >  (vertical-scroll-bars))
> 
> The last one can be written as (vertical-scroll-bars . nil).
> By setq'ing default-frame-alist, you were clobbering this setting.

Ach, I see. Sorry for the noise.





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

end of thread, other threads:[~2012-07-02  1:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-01  1:14 bug#11830: 24.1; "scroll-bar-mode disabled" not honored when emacs started as daemon Reynaldo Baquerizo
2012-07-01 19:05 ` Glenn Morris
2012-07-01 19:54   ` Reynaldo Baquerizo
2012-07-02  0:49     ` Glenn Morris
2012-07-02  1:56       ` Reynaldo Baquerizo

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).