From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#18390: 24.4.50; REGRESSION: `split-window' error Date: Tue, 2 Sep 2014 11:33:25 -0700 (PDT) Message-ID: <04dc6e08-382f-46a2-8d57-62522529e7c4@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1409682932 10149 80.91.229.3 (2 Sep 2014 18:35:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2014 18:35:32 +0000 (UTC) To: 18390@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 02 20:35:25 2014 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 1XOsvL-0004yO-Pe for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Sep 2014 20:35:24 +0200 Original-Received: from localhost ([::1]:39699 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOsvL-0008Ia-6D for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Sep 2014 14:35:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOsv9-0008Ew-U3 for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2014 14:35:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOsv1-0003Kl-A7 for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2014 14:35:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOsv1-0003KH-6j for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2014 14:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XOsv0-00073r-He for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2014 14:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Sep 2014 18:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18390 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140968284727070 (code B ref -1); Tue, 02 Sep 2014 18:35:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Sep 2014 18:34:07 +0000 Original-Received: from localhost ([127.0.0.1]:57119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XOsu6-00072X-NC for submit@debbugs.gnu.org; Tue, 02 Sep 2014 14:34:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46181) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XOsu3-000720-AV for submit@debbugs.gnu.org; Tue, 02 Sep 2014 14:34:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOstp-0002ja-H6 for submit@debbugs.gnu.org; Tue, 02 Sep 2014 14:33:58 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOstp-0002jU-EB for submit@debbugs.gnu.org; Tue, 02 Sep 2014 14:33:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOsth-000833-Ms for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2014 14:33:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOstW-0002bc-MK for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2014 14:33:41 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:39727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOstW-0002bI-G3 for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2014 14:33:30 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s82IXTZ0008601 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 2 Sep 2014 18:33:29 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s82IXR0O002899 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 2 Sep 2014 18:33:28 GMT Original-Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s82IXQOm002860 for ; Tue, 2 Sep 2014 18:33:26 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:92972 Archived-At: The regression was introduced after this build: In GNU Emacs 24.4.50.1 (i686-pc-mingw32) of 2014-06-01 on ODIEONE Repository revision: 117212 michael.albinus@gmx.de-20140601104945-g88x0mwrx= =3D orz302h Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D3D/c/Devel/emacs/snapshot/trunk --enable-checking=3D3Dyes,glyphs 'CFLAGS=3D3D-O0 -g3' LDFLAGS=3D3D-Lc:/Devel/emacs/lib 'CPPFLAGS=3D3D-DGC_MCHECK=3D3D1 -Ic:/Devel/emacs/include'' In GNU Emacs 24.4.50.1 (i686-pc-mingw32) of 2014-05-25 on ODIEONE Repository revision: 117153 tsdh@gnu.org-20140525174054-vzeh4zeg00a1ley8 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D3D/c/Devel/emacs/snapshot/trunk --enable-checking=3D3Dyes,glyphs 'CFLAGS=3D3D-O0 -g3' LDFLAGS=3D3D-Lc:/Devel/emacs/lib 'CPPFLAGS=3D3D-DGC_MCHECK=3D3D1 -Ic:/Devel/emacs/include'' and before this build, one week later: In GNU Emacs 24.4.50.1 (i686-pc-mingw32) of 2014-06-01 on ODIEONE Repository revision: 117212 michael.albinus@gmx.de-20140601104945-g88x0mwrx= =3D orz302h Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D3D/c/Devel/emacs/snapshot/trunk --enable-checking=3D3Dyes,glyphs 'CFLAGS=3D3D-O0 -g3' LDFLAGS=3D3D-Lc:/Devel/emacs/lib 'CPPFLAGS=3D3D-DGC_MCHECK=3D3D1 -Ic:/Devel/emacs/include'' Recipe to repro: 1. emacs -Q 2. Load library hexrgb.el, then library palette.el. Both available from Emacs Wiki. http://www.emacswiki.org/emacs-en/download/hexrgb.el http://www.emacswiki.org/emacs-en/download/palette.el 3. M-x set-variable debug-on-error t RET 4. M-x palette RET RET ; Opens color palette for an arbitrary color. 5. You get this backtrace: Debugger entered--Lisp error: (error "Window # too small for splitting 3") signal(error ("Window # too small= =3D for splitting 3")) error("Window %s too small for splitting 3" #) byte-code("... split-window(# 100 t) (let* ((pop-up-frames t) (window-min-width 5) (fit-frame-inhibit-fitting-= =3D flag t) (temp-buffer-setup-hook nil) (temp-buffer-show-functions nil) (widt= =3D h 100) (height 100) (stringlen (* width height))) (set-buffer (get-buffer-c= =3D reate "Palette (Hue x Saturation)")) (make-variable-frame-local (quote 1on1= =3D -change-cursor-on-input-method-flag)) (modify-frame-parameters (make-frame = =3D (list (quote (menu-bar-lines . 0)) (quote (tool-bar-lines . 0)) (quote (lef= =3D t-fringe . 0)) (quote (right-fringe . 0)) (quote (fringe . 0)) (quote (heig= =3D ht . 100)) (quote (width . 115)) (quote (minibuffer)) (quote (vertical-scro= =3D ll-bars)) (quote (cursor-type . box)) (quote (background-color . "Black")) = =3D (quote (mouse-color . "Black")) (quote (cursor-color . "Black")) (cons (quo= =3D te font) palette-font))) (quote ((1on1-change-cursor-on-input-method-flag))= =3D )) (let* ((old-dir default-directory) (buf (save-current-buffer (set-buffer= =3D (get-buffer-create "Palette (Hue x Saturation)")) (prog1 (current-buffer) = =3D (kill-all-local-variables) (setq default-directory old-dir) (setq buffer-re= =3D ad-only nil) (setq buffer-file-name nil) (setq buffer-undo-list t) (let (..= =3D . ...) (erase-buffer) (run-hooks ...))))) (standard-output buf)) (prog1 (pr= =3D ogn (let* ((cells (make-string stringlen 32)) (hue 0.999999) (sat 1.0) (ind= =3D ex 0) (col "#000000000000") (hhh 0) (sss 0)) (while (< index stringlen) (se= =3D tq sss 0) (while (< sss height) (setq hhh 0 hue 1.0) (while ... ... ... ...= =3D ) (setq sat ... sss ...))) (set-buffer "Palette (Hue x Saturation)") (setq = =3D sss 0 index 0) (while (< sss height) (insert (substring cells index ...) 10= =3D ) (setq sss (1+ sss) index (+ index width))))) (internal-temp-output-buffer= =3D -show buf))) (select-window (get-buffer-window "Palette (Hue x Saturation)"= =3D (quote visible))) (set-window-dedicated-p (selected-window) t) (setq heade= =3D r-line-format nil window-size-fixed t) (palette-mode) (setq buffer-read-onl= =3D y t) (split-window (selected-window) width t) (palette-swatch) (palette-swa= =3D tch t) (split-window (selected-window) 10 t) (palette-brightness-scale) (se= =3D lect-window (get-buffer-window "Palette (Hue x Saturation)" (quote visible)= =3D ))) palette("") funcall-interactively(palette "") call-interactively(palette record nil) command-execute(palette record) execute-extended-command(nil "palette") funcall-interactively(execute-extended-command nil "palette") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) 6. I'm sorry to say that I tried to trace this, in detail, from the beginning (in `emacs -Q') using `debug-on-entry' for function `palette', and the error was not raised. And yet the error is 100% reproducible... Perhaps the debugger interacts in some way with the (window-splitting?) code. Sorry, I don't have a simpler recipe than this. In GNU Emacs 24.4.50.1 (i686-pc-mingw32) of 2014-08-15 on LEG570 Bzr revision: 117706 rgm@gnu.org-20140815043406-p5hbu97cbm7pulcn Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --enable-checking 'CFLAGS=3D3D-O0 -g3' CPPFLAGS=3D3D-DGLYPH_DEB= UG=3D =3D3D1'