|
From: | GNU bug Tracking System |
Subject: | [debbugs-tracker] bug#12131: closed (24.1; First lines of buffer disappear when changing fonts or setting frame width in Emacs 24 on Mac OS) |
Date: | Mon, 10 Sep 2012 21:05:02 +0000 |
Your message dated Mon, 10 Sep 2012 23:03:04 +0200 with message-id <address@hidden> and subject line Re: bug#12131: 24.1; First lines of buffer disappear when changing fonts or setting frame width in Emacs 24 on Mac OS has caused the debbugs.gnu.org bug report #12131, regarding 24.1; First lines of buffer disappear when changing fonts or setting frame width in Emacs 24 on Mac OS to be marked as done. (If you believe you have received this mail in error, please contact address@hidden) -- 12131: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12131 GNU Bug Tracking System Contact address@hidden with problems
--- Begin Message ---Subject: 24.1; First lines of buffer disappear when changing fonts or setting frame width in Emacs 24 on Mac OS Date: Fri, 3 Aug 2012 10:20:58 -0700 --text follows this line--This bug report will be sent to the Bug-GNU-Emacs mailing listand the GNU bug tracker at debbugs.gnu.org. Please check thatthe From: line contains a valid email address. After a delay of upto one day, you should receive an acknowledgement at that address.Please write in English if possible, as the Emacs maintainersusually do not have translators for other languages.Please describe exactly what actions triggered the bug, andthe precise symptoms of the bug. If you can, give a recipestarting from `emacs -Q':Problem: First 4 to 6 lines of the buffer are not visible andcannot be reached when I either change the frame width in myinit file, or when I set the default font option to a differentvalue.Way to reproduce: Put this line in your init.el file:(global-linum-mode 1)(setq linum-format " %d ")(setq-default default-frame-alist'((width . 120)(height . 60))))Or change the fonts sizes to, for example, Geneva 24 using themenu Options > Set Default FontI do not know if the linum-mode is causing the problem, but when I start emacs without the init file, and just set the font size, I do not see the problem. Only after i set the width in the default frame alist I get the first lines of the buffer to start disappearing.Detailed Explanation:When I set the width of the frame from my init file to a value like120, using the default-frame-alist,the new emacs frame gets out of the screen, and the first 4 linesof the buffer are not visible.After playing with the dimensions, I was able to get the problemwith the first lines to go away using a different set of dimensionsthan the ones I use for windows and linux.(defvar running-macos (eq system-type 'darwin))(setq-default default-frame-alist(if running-macos'((cursor-color . "white")(mouse-color . "white")(foreground-color . "white")(background-color . "DodgerBlue4")(cursor-type . box)(tool-bar-lines . 0)(width . 60))'((cursor-color . "white")(mouse-color . "white")(foreground-color . "white")(background-color . "DodgerBlue4")(cursor-type . box)(tool-bar-lines . 0)(width . 120)(height . 60))))(if running-macos(modify-all-frames-parameters'((width . 50))))
A similar thing happens when changing the default fonts. The window (orframe) resize, the first 5 to 10 lines of the buffer become unreachable(not visible on the screen and cannot scroll up). The minibuffer heightexpands to 3 to 5 lines, and the left area of the frame where I have myline numbers widens to 5 to 10 characters instead of just 2 or 3.Sometimes, changing the size of the window with the mouse, brings itback to an usable state.Sometimes, when switching between different values of font sizes usingthe Optons > Set Default Font ... dialog makes the emacs window andframe to become unresponsive and I have to kill the process using theMac OS process kill dialog.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/MacPorts/Emacs.app/Contents/Resources/etc/DEBUG.In GNU Emacs 24.1.1 (x86_64-apple-darwin11.3.0, NS apple-appkit-1138.32)of 2012-06-15 on gamma.localWindowing system distributor `Apple', version 10.3.1187Configured using:`configure '--prefix=/opt/local' '--with-ns' '--without-x''--without-dbus' 'CC=/usr/bin/clang' 'CFLAGS=-pipe -O2 -arch x86_64''LDFLAGS=-L/opt/local/lib -arch x86_64''CPPFLAGS=-I/opt/local/include''Important settings:value of $LC_ALL: nilvalue of $LC_COLLATE: nilvalue of $LC_CTYPE: nilvalue of $LC_MESSAGES: nilvalue of $LC_MONETARY: nilvalue of $LC_NUMERIC: nilvalue of $LC_TIME: nilvalue of $LANG: nilvalue of $XMODIFIERS: nillocale-coding-system: nildefault enable-multibyte-characters: tMajor mode: JDEMinor modes in effect:display-time-mode: tglobal-ede-mode: tede-minor-mode: tglobal-linum-mode: tlinum-mode: tshow-paren-mode: trecentf-mode: ttooltip-mode: tmouse-wheel-mode: ttool-bar-mode: tmenu-bar-mode: tfile-name-shadow-mode: tglobal-font-lock-mode: tfont-lock-mode: tauto-composition-mode: tauto-encryption-mode: tauto-compression-mode: tline-number-mode: ttransient-mark-mode: tabbrev-mode: tRecent 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> C-x 4 f <tab> <M-backspace> <M-backspace>` ` <backspace> <backspace> <tab> <tab> m e <tab> <tab><tab> <tab> M a <tab> <return> C-x 1 C-x 4 f <tab><tab> S e <tab> <return> C-x 1 C-x 4 f <tab> <tab>L a u n <tab> <return> C-x 1 C-x 4 f <tab> <tab> Pa <tab> <return> C-x 1 <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> C-x4 f <tab> <tab> D <S-backspace> S e <tab> <return>C-x 1 C-x 4 f <tab> <M-backspace> <M-backspace> <M-backspace><M-backspace> <M-backspace> <M-backspace> ` <backspace><tab> <tab> A n <tab> <tab> s r <tab> <tab> <tab> <tab><tab> <tab> K <tab> <return> C-x 1 <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> C-x 4 f <tab> <tab> I n <tab><return> C-x 4 f <tab> <tab> L a y <tab> <return> C-x1 M-x r e m <backspace> p o r - <tab> <backspace> <backspace><tab> <return>Recent messages:Making completion list...Setting customized JDE variables to startup values...Making completion list...Setting customized JDE variables to startup values...Making completion list... [4 times]Setting customized JDE variables to startup values...Making completion list...Setting customized JDE variables to startup values...Making completion list...Setting customized JDE variables to startup values...Load-path shadows:/Users/marcelbecker/Dropbox/.emacs.d/elpa/vline-1.10/vline hides ~/Dropbox/.emacs.d/icicles/vline/Users/marcelbecker/Dropbox/.emacs.d/elpa/col-highlight-22.0/col-highlight hides ~/Dropbox/.emacs.d/icicles/col-highlight/Users/marcelbecker/Dropbox/.emacs.d/elpa/cygwin-mount-2001/cygwin-mount hides /Users/marcelbecker/Dropbox/.emacs.d/el-get/cygwin-mount/cygwin-mount/Users/marcelbecker/Dropbox/.emacs.d/elpa/col-highlight-22.0/col-highlight hides /Users/marcelbecker/Dropbox/.emacs.d/el-get/col-highlight/col-highlight/Users/marcelbecker/Dropbox/.emacs.d/elpa/vline-1.10/vline hides /Users/marcelbecker/Dropbox/.emacs.d/el-get/vline/vline/Users/marcelbecker/Dropbox/.emacs.d/el-get/tabbar-extension/tabbar-extension hides ~/Dropbox/.emacs.d/tabbar-extension/Users/marcelbecker/Dropbox/.emacs.d/elpa/col-highlight-22.0/col-highlight hides ~/Dropbox/.emacs.d/col-highlight~/Dropbox/.emacs.d/jdee/lisp/.dir-locals hides /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/gnus/.dir-localsFeatures:(shadow sort gnus-util mail-extr emacsbug message idna format-specrfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drumsmm-util mail-prsvr mail-utils ede/dired color crm debug nxml-uchnmrng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-urirng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-nsnxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltokmulti-isearch vc-dispatcher vc-svn antlr-mode ctags-update tex-fptextex-mik flyspell ispell time ede/linux ede/emacs ede/cpp-rootede/speedbar ede/files ede ede/base ede/auto ede/source eieio-speedbareieio-custom linum paren recentf-ext recentf-buffer recentftabbar-extension tabbar col-highlight auctex-autoloads tex-site infocol-highlight-autoloads color-theme-buffer-local-autoloadsctags-autoloads ctags-update-autoloads cygwin-mount-autoloadssolarized-theme-autoloads tabbar-ruler-autoloads tabbar-autoloadsvline-autoloads zenburn-theme-autoloads ensime ensime-uiensime-semantic-highlight ensime-doc ensime-search ensime-undoensime-refactor ensime-builder ensime-debug ensime-inf ensime-sbtensime-auto-complete ensime-config auto-complete popup hideshow pp jdejde-annotations jde-open-source semantic/senator semantic/decorate pulsejde-bsh jde-parse-expr etags jde-class jde-parse-class jde-importsemantic/find jde-java-font-lock jde-which-method jde-java-grammarjde-wiz jde-complete eldoc semantic/idle jde-plugins executablebrowse-url jde-gen tempo jde-run jde-jdb jde-bug jde-dbs jde-dbo regressjde-db jde-parse sregex jde-imenu semantic/imenu imenu semantic/db-filecedet-files semantic/db eieio-base semantic/java semantic/doc thingatptavl-tree semantic/sb speedbar sb-image dframe assoc semantic/sortsemantic/format ezimage semantic/tag-ls semantic/ctxt jde-compilecompile cus-edit cus-start cus-load cc-mode cc-fonts cc-guess cc-menuscc-cmds cc-styles cc-align cc-engine cc-vars cc-defs semantic/util-modessemantic/util semantic semantic/tag semantic/lex semantic/fw mode-localcedet jde-help jde-widgets tree-widget beanshell comint ansi-color ringjde-custom jde-project-file jde-util arc-mode archive-mode efc wid-editeieio .loaddefs vline scala-mode-auto yasnippet dropdown-list derivedbyte-opt warnings advice advice-preload easy-mmode edmacro kmacro el-gethelp-mode easymenu view autoload help-fns bytecomp byte-compile cconvmacroexp cl package tabulated-list dired regexp-opt time-date tooltipediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontsetimage fringe lisp-mode register page menu-bar rfn-eshadow timer selectscroll-bar mouse jit-lock font-lock syntax facemenu font-core frame chamgeorgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet laokorean japanese hebrew greek romanian slovak czech european ethiopicindian cyrillic chinese case-table epa-hook jka-cmpr-hook help simpleabbrev minibuffer loaddefs button faces cus-face files text-propertiesoverlay sha1 md5 base64 format env code-pages mule custom widgethashtable-print-readable backquote make-network-process ns multi-ttyemacs)
--- End Message ---
--- Begin Message ---Subject: Re: bug#12131: 24.1; First lines of buffer disappear when changing fonts or setting frame width in Emacs 24 on Mac OS Date: Mon, 10 Sep 2012 23:03:04 +0200
Hello. I think I have fixed this. I don't quite see the same symptoms as you do, so if you can, please test the trunk and see if it is fixed for you.Thanks,Jan D.3 aug 2012 kl. 19:20 skrev Marcel Becker <address@hidden>:--text follows this line--This bug report will be sent to the Bug-GNU-Emacs mailing listand the GNU bug tracker at debbugs.gnu.org. Please check thatthe From: line contains a valid email address. After a delay of upto one day, you should receive an acknowledgement at that address.Please write in English if possible, as the Emacs maintainersusually do not have translators for other languages.Please describe exactly what actions triggered the bug, andthe precise symptoms of the bug. If you can, give a recipestarting from `emacs -Q':Problem: First 4 to 6 lines of the buffer are not visible andcannot be reached when I either change the frame width in myinit file, or when I set the default font option to a differentvalue.Way to reproduce: Put this line in your init.el file:(global-linum-mode 1)(setq linum-format " %d ")(setq-default default-frame-alist'((width . 120)(height . 60))))Or change the fonts sizes to, for example, Geneva 24 using themenu Options > Set Default FontI do not know if the linum-mode is causing the problem, but when I start emacs without the init file, and just set the font size, I do not see the problem. Only after i set the width in the default frame alist I get the first lines of the buffer to start disappearing.Detailed Explanation:When I set the width of the frame from my init file to a value like120, using the default-frame-alist,the new emacs frame gets out of the screen, and the first 4 linesof the buffer are not visible.After playing with the dimensions, I was able to get the problemwith the first lines to go away using a different set of dimensionsthan the ones I use for windows and linux.(defvar running-macos (eq system-type 'darwin))(setq-default default-frame-alist(if running-macos'((cursor-color . "white")(mouse-color . "white")(foreground-color . "white")(background-color . "DodgerBlue4")(cursor-type . box)(tool-bar-lines . 0)(width . 60))'((cursor-color . "white")(mouse-color . "white")(foreground-color . "white")(background-color . "DodgerBlue4")(cursor-type . box)(tool-bar-lines . 0)(width . 120)(height . 60))))(if running-macos(modify-all-frames-parameters'((width . 50))))
A similar thing happens when changing the default fonts. The window (orframe) resize, the first 5 to 10 lines of the buffer become unreachable(not visible on the screen and cannot scroll up). The minibuffer heightexpands to 3 to 5 lines, and the left area of the frame where I have myline numbers widens to 5 to 10 characters instead of just 2 or 3.Sometimes, changing the size of the window with the mouse, brings itback to an usable state.Sometimes, when switching between different values of font sizes usingthe Optons > Set Default Font ... dialog makes the emacs window andframe to become unresponsive and I have to kill the process using theMac OS process kill dialog.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/MacPorts/Emacs.app/Contents/Resources/etc/DEBUG.In GNU Emacs 24.1.1 (x86_64-apple-darwin11.3.0, NS apple-appkit-1138.32)of 2012-06-15 on gamma.localWindowing system distributor `Apple', version 10.3.1187Configured using:`configure '--prefix=/opt/local' '--with-ns' '--without-x''--without-dbus' 'CC=/usr/bin/clang' 'CFLAGS=-pipe -O2 -arch x86_64''LDFLAGS=-L/opt/local/lib -arch x86_64''CPPFLAGS=-I/opt/local/include''Important settings:value of $LC_ALL: nilvalue of $LC_COLLATE: nilvalue of $LC_CTYPE: nilvalue of $LC_MESSAGES: nilvalue of $LC_MONETARY: nilvalue of $LC_NUMERIC: nilvalue of $LC_TIME: nilvalue of $LANG: nilvalue of $XMODIFIERS: nillocale-coding-system: nildefault enable-multibyte-characters: tMajor mode: JDEMinor modes in effect:display-time-mode: tglobal-ede-mode: tede-minor-mode: tglobal-linum-mode: tlinum-mode: tshow-paren-mode: trecentf-mode: ttooltip-mode: tmouse-wheel-mode: ttool-bar-mode: tmenu-bar-mode: tfile-name-shadow-mode: tglobal-font-lock-mode: tfont-lock-mode: tauto-composition-mode: tauto-encryption-mode: tauto-compression-mode: tline-number-mode: ttransient-mark-mode: tabbrev-mode: tRecent 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> C-x 4 f <tab> <M-backspace> <M-backspace>` ` <backspace> <backspace> <tab> <tab> m e <tab> <tab><tab> <tab> M a <tab> <return> C-x 1 C-x 4 f <tab><tab> S e <tab> <return> C-x 1 C-x 4 f <tab> <tab>L a u n <tab> <return> C-x 1 C-x 4 f <tab> <tab> Pa <tab> <return> C-x 1 <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> C-x4 f <tab> <tab> D <S-backspace> S e <tab> <return>C-x 1 C-x 4 f <tab> <M-backspace> <M-backspace> <M-backspace><M-backspace> <M-backspace> <M-backspace> ` <backspace><tab> <tab> A n <tab> <tab> s r <tab> <tab> <tab> <tab><tab> <tab> K <tab> <return> C-x 1 <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> <down> <down> <down> <down> <down><down> <down> <down> C-x 4 f <tab> <tab> I n <tab><return> C-x 4 f <tab> <tab> L a y <tab> <return> C-x1 M-x r e m <backspace> p o r - <tab> <backspace> <backspace><tab> <return>Recent messages:Making completion list...Setting customized JDE variables to startup values...Making completion list...Setting customized JDE variables to startup values...Making completion list... [4 times]Setting customized JDE variables to startup values...Making completion list...Setting customized JDE variables to startup values...Making completion list...Setting customized JDE variables to startup values...Load-path shadows:/Users/marcelbecker/Dropbox/.emacs.d/elpa/vline-1.10/vline hides ~/Dropbox/.emacs.d/icicles/vline/Users/marcelbecker/Dropbox/.emacs.d/elpa/col-highlight-22.0/col-highlight hides ~/Dropbox/.emacs.d/icicles/col-highlight/Users/marcelbecker/Dropbox/.emacs.d/elpa/cygwin-mount-2001/cygwin-mount hides /Users/marcelbecker/Dropbox/.emacs.d/el-get/cygwin-mount/cygwin-mount/Users/marcelbecker/Dropbox/.emacs.d/elpa/col-highlight-22.0/col-highlight hides /Users/marcelbecker/Dropbox/.emacs.d/el-get/col-highlight/col-highlight/Users/marcelbecker/Dropbox/.emacs.d/elpa/vline-1.10/vline hides /Users/marcelbecker/Dropbox/.emacs.d/el-get/vline/vline/Users/marcelbecker/Dropbox/.emacs.d/el-get/tabbar-extension/tabbar-extension hides ~/Dropbox/.emacs.d/tabbar-extension/Users/marcelbecker/Dropbox/.emacs.d/elpa/col-highlight-22.0/col-highlight hides ~/Dropbox/.emacs.d/col-highlight~/Dropbox/.emacs.d/jdee/lisp/.dir-locals hides /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/gnus/.dir-localsFeatures:(shadow sort gnus-util mail-extr emacsbug message idna format-specrfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drumsmm-util mail-prsvr mail-utils ede/dired color crm debug nxml-uchnmrng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-urirng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-nsnxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltokmulti-isearch vc-dispatcher vc-svn antlr-mode ctags-update tex-fptextex-mik flyspell ispell time ede/linux ede/emacs ede/cpp-rootede/speedbar ede/files ede ede/base ede/auto ede/source eieio-speedbareieio-custom linum paren recentf-ext recentf-buffer recentftabbar-extension tabbar col-highlight auctex-autoloads tex-site infocol-highlight-autoloads color-theme-buffer-local-autoloadsctags-autoloads ctags-update-autoloads cygwin-mount-autoloadssolarized-theme-autoloads tabbar-ruler-autoloads tabbar-autoloadsvline-autoloads zenburn-theme-autoloads ensime ensime-uiensime-semantic-highlight ensime-doc ensime-search ensime-undoensime-refactor ensime-builder ensime-debug ensime-inf ensime-sbtensime-auto-complete ensime-config auto-complete popup hideshow pp jdejde-annotations jde-open-source semantic/senator semantic/decorate pulsejde-bsh jde-parse-expr etags jde-class jde-parse-class jde-importsemantic/find jde-java-font-lock jde-which-method jde-java-grammarjde-wiz jde-complete eldoc semantic/idle jde-plugins executablebrowse-url jde-gen tempo jde-run jde-jdb jde-bug jde-dbs jde-dbo regressjde-db jde-parse sregex jde-imenu semantic/imenu imenu semantic/db-filecedet-files semantic/db eieio-base semantic/java semantic/doc thingatptavl-tree semantic/sb speedbar sb-image dframe assoc semantic/sortsemantic/format ezimage semantic/tag-ls semantic/ctxt jde-compilecompile cus-edit cus-start cus-load cc-mode cc-fonts cc-guess cc-menuscc-cmds cc-styles cc-align cc-engine cc-vars cc-defs semantic/util-modessemantic/util semantic semantic/tag semantic/lex semantic/fw mode-localcedet jde-help jde-widgets tree-widget beanshell comint ansi-color ringjde-custom jde-project-file jde-util arc-mode archive-mode efc wid-editeieio .loaddefs vline scala-mode-auto yasnippet dropdown-list derivedbyte-opt warnings advice advice-preload easy-mmode edmacro kmacro el-gethelp-mode easymenu view autoload help-fns bytecomp byte-compile cconvmacroexp cl package tabulated-list dired regexp-opt time-date tooltipediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontsetimage fringe lisp-mode register page menu-bar rfn-eshadow timer selectscroll-bar mouse jit-lock font-lock syntax facemenu font-core frame chamgeorgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet laokorean japanese hebrew greek romanian slovak czech european ethiopicindian cyrillic chinese case-table epa-hook jka-cmpr-hook help simpleabbrev minibuffer loaddefs button faces cus-face files text-propertiesoverlay sha1 md5 base64 format env code-pages mule custom widgethashtable-print-readable backquote make-network-process ns multi-ttyemacs)
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |