From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Morgan Newsgroups: gmane.emacs.bugs Subject: bug#12380: other window related commands broken Date: Sat, 08 Sep 2012 18:34:40 -0700 Message-ID: <504BF230.1000805@sprynet.com> References: <504A43D2.1010307@sprynet.com> <504A5866.9010009@gmx.at> <504A724B.3020202@sprynet.com> <504AFF67.7070600@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347154544 20253 80.91.229.3 (9 Sep 2012 01:35:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Sep 2012 01:35:44 +0000 (UTC) Cc: 12380@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 09 03:35:46 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TAWR7-0000CP-HT for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Sep 2012 03:35:45 +0200 Original-Received: from localhost ([::1]:44406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAWR3-0000FD-W5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Sep 2012 21:35:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAWR0-0000Ef-33 for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 21:35:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TAWQy-0004tr-7W for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 21:35:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAWQy-0004tn-3h for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 21:35:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TAWRO-0002Ws-5o for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 21:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Doug Morgan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Sep 2012 01:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12380 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, 12380@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13471545239678 (code B ref -1); Sun, 09 Sep 2012 01:36:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Sep 2012 01:35:23 +0000 Original-Received: from localhost ([127.0.0.1]:49293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TAWQj-0002W1-NR for submit@debbugs.gnu.org; Sat, 08 Sep 2012 21:35:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40800) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TAWQh-0002Vu-IF for submit@debbugs.gnu.org; Sat, 08 Sep 2012 21:35:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TAWQF-0004GD-Fr for submit@debbugs.gnu.org; Sat, 08 Sep 2012 21:34:53 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:53925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAWQF-0004G8-CR for submit@debbugs.gnu.org; Sat, 08 Sep 2012 21:34:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAWQD-00007e-Ia for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 21:34:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TAWQB-0004Fx-GX for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 21:34:49 -0400 Original-Received: from elasmtp-masked.atl.sa.earthlink.net ([209.86.89.68]:40225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAWQB-0004Fq-A8 for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2012 21:34:47 -0400 Original-Received: from [76.21.104.63] (helo=[192.168.0.2]) by elasmtp-masked.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1TAWQ7-0001Gl-DM; Sat, 08 Sep 2012 21:34:43 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: <504AFF67.7070600@gmx.at> X-ELNK-Trace: f1ad82a4556da985904be2c59b54ee5a9ef193a6bfc3dd489fdc0e49cd11e0dec8755b8572c990c5a8438e0f32a48e08350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 76.21.104.63 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:63984 Archived-At: First, here is what the debugger says when I try to "Send Bug Report:..." Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-name-directory(nil) byte-code("\300\301\302\303\304!!\"\305BC\207" [format "hides \\(%s.*\\)" file-name-directory locate-library "simple.el" (1 font-lock-warning-face)] 5) (defvar load-path-shadows-font-lock-keywords (byte-code "\300\301\302\303\304!!\"\305BC\207" [format "hides \\(%s.*\\)" file-name-directory locate-library "simple.el" (1 font-lock-warning-face)] 5) ("/usr/share/emacs/24.2/lisp/emacs-lisp/shadow.elc" . 3268)) list-load-path-shadows(t) report-emacs-bug("other window splitting again" [24 50 24 2 (help-echo # "mouse-1, mouse-2: sort by size" # #(" CRM Buffer Size Mode File\n" 0 1 (display (space :align-to 0)) 1 4 (face fixed-pitch) 4 5 (display (space :align-to 4)) 5 11 (keymap (keymap (13 . Buffer-menu-sort-by-column) (follow-link . mouse-face) (mouse-2 . Buffer-menu-sort-by-column) (header-line keymap (mouse-2 . Buffer-menu-sort-by-column) (mouse-1 . Buffer-menu-sort-by-column))) mouse-face highlight help-echo "mouse-1, mouse-2: sort by buffer" column 2) 11 27 (display (space :align-to 26)) 27 31 (column 3 help-echo "mouse-1, mouse-2: sort by size" mouse-face highlight keymap (keymap (13 . Buffer-menu-sort-by-column) (follow-link . mouse-face) (mouse-2 . Buffer-menu-sort-by-column) (header-line keymap (mouse-2 . Buffer-menu-sort-by-column) (mouse-1 . Buffer-menu-sort-by-column)))) 31 33 (display (space :align-to 32)) 33 37 (keymap (keymap (13 . Buffer-menu-sort-by-column) (follow-link . mouse-face) (mouse-2 . Buffer-menu-sort-by-column) (header-line keymap (mouse-2 . Buffer-menu-sort-by-column) (mouse-1 . Buffer-menu-sort-by-column))) mouse-face highlight help-echo "mouse-1, mouse-2: sort by mode" column 4) 37 51 (display (space :align-to 50)) 51 55 (keymap (keymap (13 . Buffer-menu-sort-by-column) (follow-link . mouse-face) (mouse-2 . Buffer-menu-sort-by-column) (header-line keymap (mouse-2 . Buffer-menu-sort-by-column) (mouse-1 . Buffer-menu-sort-by-column))) mouse-face highlight help-echo "mouse-1, mouse-2: sort by file" column 5) 55 56 (display (space :align-to 55))) 28) (help-echo # "Major mode\nmouse-1: Display major mode menu\nmouse-2: Show help for major mode\nmouse-3: Toggle minor modes" # #("Buffer Menu" 0 11 (local-map (keymap (mode-line keymap (down-mouse-3 keymap (abbrev-mode menu-item "Abbrev (Abbrev)" abbrev-mode :help "Automatically expand abbreviations" :button ...) (auto-fill-mode menu-item "Auto fill (Fill)" auto-fill-mode :help "Automatically insert new lines" :button ...) (auto-revert-mode menu-item "Auto revert (ARev)" auto-revert-mode :help "Revert the buffer when the file on disk changes" :button ...) (auto-revert-tail-mode menu-item "Auto revert tail (Tail)" auto-revert-tail-mode :help "Revert the tail of the buffer when buffer grows" :enable ... :button ...) (flyspell-mode menu-item "Flyspell (Fly)" flyspell-mode :help "Spell checking on the fly" :button ...) (font-lock-mode menu-item "Font Lock" font-lock-mode :help "Syntax coloring" :button ...) (glasses-mode menu-item "Glasses (o^o)" glasses-mode :help "Insert virtual separators to make long identifiers easy to read" :button ...) (hide-ifdef-mode menu-item "Hide ifdef (Ifdef)" hide-ifdef-mode :help "Show/Hide code within #ifdef constructs" :button ...) (highlight-changes-mode menu-item "Highlight changes (Chg)" highlight-changes-mode :help "Show changes in the buffer in a distinctive color" :button ...) (outline-minor-mode menu-item "Outline (Outl)" outline-minor-mode :help "" :button ...) (overwrite-mode menu-item "Overwrite (Ovwrt)" overwrite-mode :help "Overwrite mode: typed characters replace existing text" :button ...) "Minor Modes") (mouse-2 . describe-mode) (down-mouse-1 menu-item "Menu Bar" ignore :filter (lambda ... ...)))) mouse-face mode-line-highlight help-echo "Major mode\nmouse-1: Display major mode menu\nmouse-2: Show help for major mode\nmouse-3: Toggle minor modes")) 9) (help-echo # "mouse-1: Select (drag to resize)\nmouse-2: Make current window occupy the whole frame\nmouse-3: Remove current window from display" # #(" " 0 3 (help-echo "mouse-1: Select (drag to resize)\nmouse-2: Make current window occupy the whole frame\nmouse-3: Remove current window from display")) 0) (help-echo # "Buffer name\nmouse-1: previous buffer\nmouse-3: next buffer" # #("%12b" 0 4 (local-map (keymap (header-line keymap (mouse-3 . mode-line-next-buffer) (down-mouse-3 . ignore) (mouse-1 . mode-line-previous-buffer) (down-mouse-1 . ignore)) (mode-line keymap (mouse-3 . mode-line-next-buffer) (mouse-1 . mode-line-previous-buffer))) mouse-face mode-line-highlight help-echo "Buffer name\nmouse-1: previous buffer\nmouse-3: next buffer" face mode-line-buffer-id)) 1) (help-echo # "Read a directory, to operate on its files" nil nil 0) (help-echo # "Make text in active region stand out in color (Transient Mark mode)" nil nil 0) (help-echo # "Highlight matching/mismatched parentheses at cursor (Show Paren mode)" nil nil 0) (help-echo # "Automatically fill text while typing (Auto Fill mode)" nil nil 0) (help-echo # "Ignore letter-case in search commands" nil nil 0) (help-echo # "Use C-z/C-x/C-c/C-v keys for undo/cut/copy/paste" nil nil 0) (help-echo # "Uniquify buffer names by adding parent directory names" nil nil 0) (help-echo # "Visit files of previous session when restarting Emacs" nil nil 0) (help-echo # "Uniquify buffer names by adding parent directory names" nil nil 0) (help-echo # "Use C-z/C-x/C-c/C-v keys for undo/cut/copy/paste" nil nil 0) (help-echo # "Ignore letter-case in search commands" nil nil 0) (help-echo # "Use C-z/C-x/C-c/C-v keys for undo/cut/copy/paste" nil nil 0) (help-echo # "Uniquify buffer names by adding parent directory names" nil nil 0) (help-echo # "Visit files of previous session when restarting Emacs" nil nil 0) (help-echo # "Whether the cursor blinks (Blink Cursor mode)" nil nil 0) (help-echo # "Enter Lisp debugger when an error is signaled" nil nil 0) (help-echo # "Enter Lisp debugger when C-g is pressed" nil nil 0) (help-echo # "Enter Lisp debugger when an error is signaled" nil nil 0) (help-echo # "Whether the cursor blinks (Blink Cursor mode)" nil nil 0) (help-echo # "Visit files of previous session when restarting Emacs" nil nil 0) (help-echo # "Whether the cursor blinks (Blink Cursor mode)" nil nil 0) (help-echo # "Enter Lisp debugger when an error is signaled" nil nil 0) (menu-bar) options debug-on-error (help-echo # "Cut (kill) text in region between mark and current position" nil nil 0) (help-echo # "Learn how to use Emacs" nil nil 0) (help-echo # "Learn how to use Emacs (choose a language)" nil nil 0) (help-echo # "Frequently asked (and answered) questions about Emacs" nil nil 0) (help-echo # "New features of this version" nil nil 0) (help-echo # "Read about known problems with Emacs" nil nil 0) (help-echo # "Send e-mail to Emacs maintainers" nil nil 0) (help-echo # "Our doctor will help you feel better" nil nil 0) (help-echo # "Send e-mail to Emacs maintainers" nil nil 0) (menu-bar) help-menu send-emacs-bug-report]) call-interactively(report-emacs-bug nil nil) It's in a window named *Backtrace* so I hope that is the backtrace you want. I almost thought I was going crazy, I could not reproduce the problem. Then I found the missing trick is to widen the entire emacs window. Then I read your email more carefully and checked that split_window_threshold was 160 and that it was changed/introduced in 23.1 (which is about when I first started noticing the problem but figured I'd wait for an new version before reporting it - long suffering is my middle name). I did exactly flip my usage of vertical and horizontal splitting from the emacs usage of the term. I should have said "One of the windows **splits horizontally**(!!) ". In any case the bad split is into two side-by-side windows. The to-my-taste poor splitting happens when (window-total-width) >= 164. The problem is fixed by setting split-width-threshold to 500. Thank you! I did try setting it to nil as the variable's documentation suggests and the customization dialog told me the value of the variable needed to be an integer. Don't know if it accepted nil anyway or rejected it or what, but 500 sure works. Thanks again. I do think split-width-threshold should default to never splitting horizontally (I've got the right word this time), but that's just decades of never have wide windows automatically split horizontally talking. Maybe it will seem perfectly natural to someone not shocked to see it. On second thought, I wouldn't so much mind emacs splitting a window horizontally when I just have one window visible at the time. That might actually be nice. However, when I already have my screen split in two, but vertically, I think it's a bad idea without redeeming qualities to split one of the windows horizontally instead of just jumping to the "other" already open window. So, I'm changing my bug report to say that emacs should never automatically introduce any new split for M-x M-b (and similar commands) when it already has two or more open windows (regardless of how they are arranged). The problem is just a bit deeper than simply changing the value of split-width-threshold. Doug On 9/8/2012 1:18 AM, martin rudalics wrote: > > I had only tested it with "emacs -q" (forgot about the Q version). > > However, retesting with "emacs -Q" gives the same behavior. > > Interesting. > > > Also, the > > menu only has "Send Bug Report..." which doesn't work for me "Wrong > type > > argument: string, nil" after I enter a subject title (never having set > > up emacs to handle mail). > > This should not happen. Can you get us a backtrace by checking the > "Enter Debugger on Error" entry in the Options menu before trying the > "Send Bug Report...". (My apologies if this has been reported before > and already fixed.) > > > Inside the unsent email buffer was this interesting looking text > (and it > > looked like it would go to bug-gnu-emacs@gnu.org so I'm cc'ing that: > > Tha's what we need ;-) > > > In GNU Emacs 24.2.1 (i686-pc-cygwin, GTK+ Version 2.24.11) > > of 2012-08-27 on fiona > > I suppose the following > > > Major mode: Dired by name > > is not part of the recipe? Anyway, back to your first report. Does > > >> One of the windows **splits vertically**(!!) > > mean that the new window appears on the right of another window or below > it? Also please tell us which window was split - the upper one or the > lower one. If the new window appears below, then in the window that > gets split please do (before the split): > > M-: (window-total-height) RET > > and > > C-h v split-height-threshold > > If the new window appears on the right, please do > > M-: (window-total-width) RET > > and > > C-h v split-width-threshold > > instead. In either case, tell us what gets printed by these. > > Thanks, martin >