23.3.50; Bug after frame resizing

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

23.3.50; Bug after frame resizing

pictavien
Enter your bug report here.

Hi,

I'm trying to write a function that maximize my Emacs frames vertically.
Each time
I use the following function to do the job Aquamacs fails to redraw
correctly the frame.

Regards.

(defun maximize-frame-vertically ()
   (interactive)
   (let ((screen-bounds (effective-screen-pixel-bounds)))
     (let (
       (height-in-pixels (- (caddr screen-bounds) (cadr screen-bounds)))
       (thisframe (selected-frame))
       )
       (set-frame-height thisframe (/ height-in-pixels
(frame-char-height)))
       (recenter)
       (redraw-frame thisframe)
       )
     )
   )


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/Applications/Aquamacs.app/Contents/Resources/etc/DEBUG.


In GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
of 2011-10-25 on braeburn.aquamacs.org - Aquamacs Distribution 2.4
Windowing system distributor `Apple', version 10.3.1187
configured using `configure '--with-ns' '--without-x' 'CC=gcc'
'CFLAGS=-O0 -g -arch i386' 'LDFLAGS=-O0 -g -arch i386''

Important settings:
value of $LC_ALL: C
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: fr_FR.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: nil
default enable-multibyte-characters: t

Major mode: Autoconf

Minor modes in effect:
display-time-mode: t
savehist-mode: t
smart-frame-positioning-mode: t
aquamacs-autoface-mode: t
recentf-mode: t
osx-key-mode: t
emulate-mac-french-keyboard-mode: t
tabbar-mwheel-mode: t
tabbar-mode: t
show-paren-mode: t
delete-selection-mode: t
pc-selection-mode: t
cua-mode: t
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t

Recent input:
^X ^F C O N <escape> <backspace> <escape> <backspace>
<escape> <backspace> C O N F <tab> U <tab> . A <tab>
<return> <escape> <escape> <up> <escape> < < <menu-bar>
<help-menu> <bug-diagnosis> <debug-on-error> <escape>
<escape> <up> <escape> <escape> <down> ^L ^L ^X O ^X
^G ^G ^G ^G ^X O ^X O ^X O ^L ^L ^L <help-echo> <down-mouse-1>
<mouse-1> ^X 1 ^X U <escape> <escape> <up> <prior>
<prior> <prior> <next> <next> <escape> < <escape> <
^X ^F <escape> <backspace> <escape> <backspace> <escape>
<backspace> <escape> <backspace> <escape> <backspace>
E M <tab> ^G ^G <menu-bar> <help-menu> <bug-diagnosis>
<send-emacs-bug-report>

Recent messages:
Aquamacs is based on GNU Emacs, a part of the GNU/Linux system. It is
Free Software: you can improve and redistribute it under the GNU General
Public License, version 3 or later. Copyright (C) 2011 Free Software
Foundation, Inc. (C) 2011 D. Reitter. No Warranty.
configure.ac has auto save data; consider M-x recover-this-file
Loading vc-git...done
Mark set
Debug on Error enabled globally
Entering debugger...
Quit [3 times]
Undo!
cua-scroll-down: Beginning of buffer [3 times]
Mark set [2 times]
Quit [2 times]

Load-path shadows:
/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/wikipedia-mode
hides
/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/nxhtml/related/wikipedia-mode
/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/visual-basic-mode
hides
/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/nxhtml/related/visual-basic-mode
/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/php-mode
hides
/Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/nxhtml/related/php-mode

Features:
(shadow sort mail-extr message ecomplete rfc822 mml mml-sec
password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231
mailabbrev nnheader gnus-util netrc gmm-utils mailheader canlock sha1
hex-util hashcash mail-utils emacsbug vc-git autoconf autoconf-mode time
load-emacs-plugins aquamacs-mode-defaults auctex-config server
preview-latex tex-site auto-loads aquamacs-aux savehist mouse-sel
one-buffer-one-frame smart-frame-positioning drews_init
color-theme-autoloads saveplace visual-line aquamacs-bug
aquamacs-autoface-mode aquamacs-editing sendmail rfc2047 rfc2045
ietf-drums qp mm-util mail-prsvr recentf tree-widget cus-edit osxkeys
emulate-mac-keyboard-mode frame-cmds strings misc-fns thingatpt+
thingatpt frame-fns avoid aquamacs-mac-fontsets fit-frame
aquamacs-frame-setup aquamacs-tabbar tabbar-window cl cl-19 cus-start
cus-load tabbar easy-mmode warnings load-emacs-pre-plugins
aquamacs-site-start cocoa-compatibility matlab-load smart-dnd filladapt
aquamacs-redo check-for-updates aquamacs-menu osx_defaults
aquamacs-tool-bar aquamacs mac-extra-functions aquamacs-tools
aquamacs-macros parse-time timezone time-date paren delsel pc-select
cua-base wid-edit regexp-opt advice advice-preload byte-opt bytecomp
byte-compile debug help-fns help-mode view image-file disp-table 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)

Command line: (Aquamacs)

PATH:
/Users/pictavien/bin:/Users/pictavien/Projects/dev/install/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/pictavien/bin:/Users/pictavien/Projects/dev/install/bin:/opt/local/bin:/opt/local/sbin:/Applications/Aquamacs.app/Contents/MacOS/:/Applications/LibreOffice.app/Contents/MacOS/:/Applications/Aquamacs.app/Contents/MacOS/:/Applications/LibreOffice.app/Contents/MacOS/:/Users/pictavien/bin:/Users/pictavien/Projects/dev/install/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Applications/Aquamacs.app/Contents/MacOS/:/Applications/LibreOffice.app/Contents/MacOS/:/usr/texbin

exec-path: (/Users/pictavien/bin
/Users/pictavien/Projects/dev/install/bin /opt/local/bin /opt/local/sbin
/usr/bin /bin /usr/sbin /sbin /usr/local/bin /opt/X11/bin
/Users/pictavien/bin /Users/pictavien/Projects/dev/install/bin
/opt/local/bin /opt/local/sbin
/Applications/Aquamacs.app/Contents/MacOS/
/Applications/LibreOffice.app/Contents/MacOS/
/Applications/Aquamacs.app/Contents/MacOS/
/Applications/LibreOffice.app/Contents/MacOS/ /Users/pictavien/bin
/Users/pictavien/Projects/dev/install/bin /opt/local/bin /opt/local/sbin
/usr/bin /bin /usr/sbin /sbin /usr/local/bin /opt/X11/bin
/Applications/Aquamacs.app/Contents/MacOS/
/Applications/LibreOffice.app/Contents/MacOS/
/Applications/Aquamacs.app/Contents/MacOS/bin /usr/texbin)
_______________________________________________
Aquamacs-bugs mailing list
[hidden email]
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-bugs