unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7510: 23.2; negative "left" parameter of initial-frame-alist interpreted incorrectly
@ 2010-11-28 21:01 Sean McAfee
  2010-12-01 16:39 ` Jan Djärv
  0 siblings, 1 reply; 6+ messages in thread
From: Sean McAfee @ 2010-11-28 21:01 UTC (permalink / raw)
  To: 7510

When I start emacs after replacing the contents of my .emacs file with
just the single line:

(setq initial-frame-alist (append '((top . 0) (left . -100))
initial-frame-alist))

...then the initial frame appears with its left edge 100 pixels to the
left of the left edge of the screen--that is, hanging off of the edge of
the screen.  Prior to my recent upgrade from Emacs 22, this same snippet
cause my initial frame to correctly be placed with its right edge 100
pixels to the left of the right edge of the screen.


In GNU Emacs 23.2.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
 of 2010-11-14 on sean-mcafees-macbook-pro.local
Windowing system distributor `Apple', version 10.3.949
configured using `configure  '--prefix=/opt/local' '--with-ns'
'--without-x' '--without-dbus' 'CC=/usr/bin/gcc-4.0' 'CFLAGS=-O2 -arch
i386' 'LDFLAGS=-L/opt/local/lib -arch i386'
'CPPFLAGS=-I/opt/local/include''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  desktop-save-mode: t
  iswitchb-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
t SPC i s , SPC p a e r <backspace> <backspace> <backspace>
<backspace> [ a <backspace> <backspace> p a r <backspace>
<backspace> <backspace> h a n g i n g SPC o f f SPC
t h e SPC l e t <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> SPC
o f f SPC t h e SPC l e f t SPC s i d e SPC o f SPC
t h e SPC s c r e e n C-n C-p M-q M-> C-/ C-f C-/ M->
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-l C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-l C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-f C-f C-f C-f C-f M-d e d g e M-q
C-a C-c C-c y e s <return> M-s-x M-s-p C-x o C-u C-x
C-o C-p C-n <s-left> <s-left> <s-left> M-x r e p o
r t - e m a c s <tab> <return>

Recent messages:
Mark set
Auto-saving...done
Auto-saving...done
Mark set
Undo!
Redo!
Mark set
Sending...
Sending via mail...
Sending...done

Load-path shadows:
~/emacs/misc hides
/opt/local/var/macports/software/emacs-app/23.2_1/Applications/MacPorts/Emacs.app/Contents/Resources/lisp/misc
~/emacs/japanese hides
/opt/local/var/macports/software/emacs-app/23.2_1/Applications/MacPorts/Emacs.app/Contents/Resources/lisp/language/japanese
~/emacs/emms-3.0/tq hides
/opt/local/var/macports/software/emacs-app/23.2_1/Applications/MacPorts/Emacs.app/Contents/Resources/lisp/emacs-lisp/tq

Features:
(browse-url mailalias mailclient gnus-msg gnus-art mm-uu mml2015
epg-config mm-view smime dig gnus-sum nnoo gnus-group gnus-undo nnmail
mail-source format-spec gnus-start gnus-spec gnus-int gnus-range
gnus-win gnus gnus-ems newcomment shadow sort mail-extr message
ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies
mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums
mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr
gmm-utils mailheader canlock sha1 hex-util hashcash mail-utils emacsbug
help-mode view vc-git zenburn color-theme wid-edit sendmail reporter
term disp-table ehelp electric ring advice help-fns advice-preload
emms-cache emms-info-ogginfo emms-info-mp3info emms-playlist-mode
edmacro kmacro emms-player-mplayer emms-source-playlist emms-source-file
locate dired regexp-opt emms-playing-time emms-info later-do
emms-player-mpg321-remote emms-player-simple emms-setup emms emms-compat
desktop server iswitchb cl cl-19 tooltip ediff-hook vc-hooks
lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mldrag 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 loaddefs button minibuffer faces cus-face files text-properties
overlay md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process ns multi-tty
emacs)





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

* bug#7510: 23.2; negative "left" parameter of initial-frame-alist interpreted incorrectly
  2010-11-28 21:01 bug#7510: 23.2; negative "left" parameter of initial-frame-alist interpreted incorrectly Sean McAfee
@ 2010-12-01 16:39 ` Jan Djärv
  2010-12-01 17:22   ` Glenn Morris
  2010-12-01 18:08   ` Stefan Monnier
  0 siblings, 2 replies; 6+ messages in thread
From: Jan Djärv @ 2010-12-01 16:39 UTC (permalink / raw)
  To: Sean McAfee; +Cc: 7510

It seems the X|YNegative handling code was lost in Emacs 23.
It is easy enough to fix, but shall this be fixed in the emacs-23 branch or 
just the trunk.  It is a regression from Emacs 22, but nobody noticed it in 
Emacs 23.1 AFAIK.

	Jan D.

2010-11-28 22:01, Sean McAfee skrev:
> When I start emacs after replacing the contents of my .emacs file with
> just the single line:
>
> (setq initial-frame-alist (append '((top . 0) (left . -100))
> initial-frame-alist))
>
> ...then the initial frame appears with its left edge 100 pixels to the
> left of the left edge of the screen--that is, hanging off of the edge of
> the screen.  Prior to my recent upgrade from Emacs 22, this same snippet
> cause my initial frame to correctly be placed with its right edge 100
> pixels to the left of the right edge of the screen.
>
>
> In GNU Emacs 23.2.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
>   of 2010-11-14 on sean-mcafees-macbook-pro.local
> Windowing system distributor `Apple', version 10.3.949
> configured using `configure  '--prefix=/opt/local' '--with-ns'
> '--without-x' '--without-dbus' 'CC=/usr/bin/gcc-4.0' 'CFLAGS=-O2 -arch
> i386' 'LDFLAGS=-L/opt/local/lib -arch i386'
> 'CPPFLAGS=-I/opt/local/include''
>
> Important settings:
>    value of $LC_ALL: nil
>    value of $LC_COLLATE: nil
>    value of $LC_CTYPE: nil
>    value of $LC_MESSAGES: nil
>    value of $LC_MONETARY: nil
>    value of $LC_NUMERIC: nil
>    value of $LC_TIME: nil
>    value of $LANG: nil
>    value of $XMODIFIERS: nil
>    locale-coding-system: nil
>    default enable-multibyte-characters: t
>
> Major mode: Emacs-Lisp
>
> Minor modes in effect:
>    desktop-save-mode: t
>    iswitchb-mode: t
>    tooltip-mode: t
>    mouse-wheel-mode: t
>    menu-bar-mode: t
>    file-name-shadow-mode: t
>    global-font-lock-mode: t
>    font-lock-mode: t
>    auto-encryption-mode: t
>    auto-compression-mode: t
>    line-number-mode: t
>    transient-mark-mode: t
>
> Recent input:
> t SPC i s , SPC p a e r<backspace>  <backspace>  <backspace>
> <backspace>  [ a<backspace>  <backspace>  p a r<backspace>
> <backspace>  <backspace>  h a n g i n g SPC o f f SPC
> t h e SPC l e t<backspace>  <backspace>  <backspace>
> <backspace>  <backspace>  <backspace>  <backspace>  <backspace>
> <backspace>  <backspace>  <backspace>  <backspace>  SPC
> o f f SPC t h e SPC l e f t SPC s i d e SPC o f SPC
> t h e SPC s c r e e n C-n C-p M-q M->  C-/ C-f C-/ M->
> C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
> C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
> C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
> C-p C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
> C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
> C-l C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
> C-p C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p
> C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
> C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
> C-p C-p C-p C-p C-p C-l C-p C-p C-p C-p C-p C-p C-p
> C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
> C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n
> C-n C-n C-n C-n C-f C-f C-f C-f C-f M-d e d g e M-q
> C-a C-c C-c y e s<return>  M-s-x M-s-p C-x o C-u C-x
> C-o C-p C-n<s-left>  <s-left>  <s-left>  M-x r e p o
> r t - e m a c s<tab>  <return>
>
> Recent messages:
> Mark set
> Auto-saving...done
> Auto-saving...done
> Mark set
> Undo!
> Redo!
> Mark set
> Sending...
> Sending via mail...
> Sending...done
>
> Load-path shadows:
> ~/emacs/misc hides
> /opt/local/var/macports/software/emacs-app/23.2_1/Applications/MacPorts/Emacs.app/Contents/Resources/lisp/misc
> ~/emacs/japanese hides
> /opt/local/var/macports/software/emacs-app/23.2_1/Applications/MacPorts/Emacs.app/Contents/Resources/lisp/language/japanese
> ~/emacs/emms-3.0/tq hides
> /opt/local/var/macports/software/emacs-app/23.2_1/Applications/MacPorts/Emacs.app/Contents/Resources/lisp/emacs-lisp/tq
>
> Features:
> (browse-url mailalias mailclient gnus-msg gnus-art mm-uu mml2015
> epg-config mm-view smime dig gnus-sum nnoo gnus-group gnus-undo nnmail
> mail-source format-spec gnus-start gnus-spec gnus-int gnus-range
> gnus-win gnus gnus-ems newcomment shadow sort mail-extr message
> ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies
> mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums
> mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr
> gmm-utils mailheader canlock sha1 hex-util hashcash mail-utils emacsbug
> help-mode view vc-git zenburn color-theme wid-edit sendmail reporter
> term disp-table ehelp electric ring advice help-fns advice-preload
> emms-cache emms-info-ogginfo emms-info-mp3info emms-playlist-mode
> edmacro kmacro emms-player-mplayer emms-source-playlist emms-source-file
> locate dired regexp-opt emms-playing-time emms-info later-do
> emms-player-mpg321-remote emms-player-simple emms-setup emms emms-compat
> desktop server iswitchb cl cl-19 tooltip ediff-hook vc-hooks
> lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe
> lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
> mldrag 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 loaddefs button minibuffer faces cus-face files text-properties
> overlay md5 base64 format env code-pages mule custom widget
> hashtable-print-readable backquote make-network-process ns multi-tty
> emacs)
>
>






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

* bug#7510: 23.2; negative "left" parameter of initial-frame-alist interpreted incorrectly
  2010-12-01 16:39 ` Jan Djärv
@ 2010-12-01 17:22   ` Glenn Morris
  2010-12-01 18:12     ` Jan Djärv
  2010-12-01 18:08   ` Stefan Monnier
  1 sibling, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2010-12-01 17:22 UTC (permalink / raw)
  To: Jan Djärv; +Cc: 7510, Sean McAfee

Jan Djärv wrote:

> It seems the X|YNegative handling code was lost in Emacs 23.

It seems to work for me with

GNU Emacs 23.1,2 (GTK+ Version 2.10.4)

and the Lucid toolkit version of emacs-23 and trunk.

Isn't this an NS-specific problem?

>> In GNU Emacs 23.2.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)





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

* bug#7510: 23.2; negative "left" parameter of initial-frame-alist interpreted incorrectly
  2010-12-01 16:39 ` Jan Djärv
  2010-12-01 17:22   ` Glenn Morris
@ 2010-12-01 18:08   ` Stefan Monnier
  2010-12-02  7:14     ` Jan Djärv
  1 sibling, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2010-12-01 18:08 UTC (permalink / raw)
  To: Jan Djärv; +Cc: 7510, Sean McAfee

> It seems the X|YNegative handling code was lost in Emacs 23.
> It is easy enough to fix, but shall this be fixed in the emacs-23 branch or
> just the trunk.  It is a regression from Emacs 22, but nobody noticed it in
> Emacs 23.1 AFAIK.

Better fix it in Emacs-23.3 unless the fix is somewhat risky.


        Stefan





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

* bug#7510: 23.2; negative "left" parameter of initial-frame-alist interpreted incorrectly
  2010-12-01 17:22   ` Glenn Morris
@ 2010-12-01 18:12     ` Jan Djärv
  0 siblings, 0 replies; 6+ messages in thread
From: Jan Djärv @ 2010-12-01 18:12 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 7510, Sean McAfee

2010-12-01 18:22, Glenn Morris skrev:
> Jan Djärv wrote:
>
>> It seems the X|YNegative handling code was lost in Emacs 23.
>
> It seems to work for me with
>
> GNU Emacs 23.1,2 (GTK+ Version 2.10.4)
>
> and the Lucid toolkit version of emacs-23 and trunk.
>
> Isn't this an NS-specific problem?

Yes of course.  The switch to Cocoa apparently introduced this bug.

	Jan D.






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

* bug#7510: 23.2; negative "left" parameter of initial-frame-alist interpreted incorrectly
  2010-12-01 18:08   ` Stefan Monnier
@ 2010-12-02  7:14     ` Jan Djärv
  0 siblings, 0 replies; 6+ messages in thread
From: Jan Djärv @ 2010-12-02  7:14 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Sean McAfee, 7510-done



Stefan Monnier skrev 2010-12-01 19.08:
>> It seems the X|YNegative handling code was lost in Emacs 23.
>> It is easy enough to fix, but shall this be fixed in the emacs-23 branch or
>> just the trunk.  It is a regression from Emacs 22, but nobody noticed it in
>> Emacs 23.1 AFAIK.
>
> Better fix it in Emacs-23.3 unless the fix is somewhat risky.
>

Done.

	Jan D.





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

end of thread, other threads:[~2010-12-02  7:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-28 21:01 bug#7510: 23.2; negative "left" parameter of initial-frame-alist interpreted incorrectly Sean McAfee
2010-12-01 16:39 ` Jan Djärv
2010-12-01 17:22   ` Glenn Morris
2010-12-01 18:12     ` Jan Djärv
2010-12-01 18:08   ` Stefan Monnier
2010-12-02  7:14     ` Jan Djärv

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