From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.bugs Subject: bug#16430: 24.3.50; When fullscreen is triggered from the window manager, I can't resize window (via M-x org-export RET) Date: Mon, 13 Jan 2014 20:13:43 +0100 Message-ID: <87txd7g0ew.fsf@bzg.ath.cx> References: <87mwj0glf4.fsf@bzg.ath.cx> <52D427EA.5090609@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1389640450 26599 80.91.229.3 (13 Jan 2014 19:14:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2014 19:14:10 +0000 (UTC) Cc: 16430@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 13 20:14:17 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 1W2mxk-0006Vy-Um for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Jan 2014 20:14:17 +0100 Original-Received: from localhost ([::1]:44627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2mxk-0000ki-Af for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Jan 2014 14:14:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2mxc-0000kP-PS for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2014 14:14:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2mxW-0001rT-4q for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2014 14:14:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2mxW-0001rF-0v for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2014 14:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W2mxV-0006db-Iq for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2014 14:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bastien Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Jan 2014 19:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16430 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16430-submit@debbugs.gnu.org id=B16430.138964043125488 (code B ref 16430); Mon, 13 Jan 2014 19:14:01 +0000 Original-Received: (at 16430) by debbugs.gnu.org; 13 Jan 2014 19:13:51 +0000 Original-Received: from localhost ([127.0.0.1]:49363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W2mxK-0006cz-RF for submit@debbugs.gnu.org; Mon, 13 Jan 2014 14:13:51 -0500 Original-Received: from mail-we0-f182.google.com ([74.125.82.182]:58891) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W2mxH-0006cp-Tc for 16430@debbugs.gnu.org; Mon, 13 Jan 2014 14:13:49 -0500 Original-Received: by mail-we0-f182.google.com with SMTP id w62so1837989wes.27 for <16430@debbugs.gnu.org>; Mon, 13 Jan 2014 11:13:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=6EiCvW+u9SbUabEi36V6WgQzQUX7sQQhw08aNAiJRmY=; b=jbv/D6MCndEhGufajbYj/UNMZn7MAgvDb64jHBzuLtMaL1MyqM3cRzJtvHBPIajAUa GJYX/ry4f2BgJW9yuPr4EqmA6P96UD/2kR633kY/Bbc8sRZZW9bbD/ihX+zbvqixqvjk IVqV1RguebveQsfCQ26x3I89r3DunpRf1lrI0JT94T/6e4z4dbR9nQdkHHStV/oHaIzB uhTubZ7ioxB7NsEFkb/ga0eQ9UvekHGSxyvU3Wk7UNykjX6gWuLhWaUet7hWIoGTyq5s WBcRPZuPxKp+mcmliLrY4bJhu+SgatKBraQWpe0Jbp+UC6j6LJR4W4QWvIPbchKUwQy7 qGfw== X-Received: by 10.180.206.138 with SMTP id lo10mr16877592wic.25.1389640426980; Mon, 13 Jan 2014 11:13:46 -0800 (PST) Original-Received: from bzg.localdomain (mar75-2-81-56-68-112.fbx.proxad.net. [81.56.68.112]) by mx.google.com with ESMTPSA id w1sm19317562wib.6.2014.01.13.11.13.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Jan 2014 11:13:45 -0800 (PST) Original-Received: by bzg.localdomain (Postfix, from userid 1000) id 5190D1C20860; Mon, 13 Jan 2014 20:13:43 +0100 (CET) In-Reply-To: <52D427EA.5090609@gmx.at> (martin rudalics's message of "Mon, 13 Jan 2014 18:52:42 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) 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:83420 Archived-At: --=-=-= Content-Type: text/plain martin rudalics writes: >> 1. Open Emacs. >> 2. Put it in fullscreen using your window manager command. >> 3. C-x C-f ~/test.org RET >> 4. C-c C-e >> >> This triggers an error. > > Which one? See attached backtrace. --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=backtrace.txt Content-Transfer-Encoding: quoted-printable Debugger entered--Lisp error: (error "Cannot resize window #") signal(error ("Cannot resize window #")) error("Cannot resize window %s" #) window-resize(# 17 nil # nil) window-resize-no-error(# 17 nil #= nil) fit-window-to-buffer(nil nil nil) (cond ((if (fboundp (quote window-full-width-p)) (not (window-full-width-= p window)) (> (frame-width) (window-width window)))) ((and (fboundp (quote = fit-window-to-buffer)) (not shrink-only)) (fit-window-to-buffer window max-= height min-height)) ((fboundp (quote shrink-window-if-larger-than-buffer)) = (shrink-window-if-larger-than-buffer window))) org-fit-window-to-buffer() (if expertp (org-export--dispatch-action expert-prompt allowed-keys entri= es options first-key expertp) (if (get-buffer "*Org Export Dispatcher*") ni= l (delete-other-windows) (org-switch-to-buffer-other-window (get-buffer-cre= ate "*Org Export Dispatcher*")) (setq cursor-type nil header-line-format "U= se SPC, DEL, C-n or C-p to navigate.") (set-syntax-table (copy-syntax-table= )) (modify-syntax-entry 91 "w")) (save-current-buffer (set-buffer "*Org Exp= ort Dispatcher*") (let ((pos (window-start))) (erase-buffer) (insert help) = (set-window-start nil pos))) (org-fit-window-to-buffer) (org-export--dispat= ch-action standard-prompt allowed-keys entries options first-key expertp)) (let* ((fontify-key (function (lambda (key &optional access-key) (if (or = (eq access-key t) (eq access-key first-key)) (org-propertize key (quote fac= e) (quote org-warning)) key)))) (fontify-value (function (lambda (value) (o= rg-propertize value (quote face) (quote font-lock-variable-name-face))))) (= entries (sort (sort (delq nil (mapcar (quote org-export-backend-menu) org-e= xport--registered-backends)) (function (lambda (a b) (let ... ...)))) (quot= e car-less-than-car))) (allowed-keys (nconc (list 2 22 19 6 1) (if (not fir= st-key) (org-uniquify (mapcar (quote car) entries)) (let (sub-menu) (let (.= .. entry) (while --dolist-tail-- ... ... ...) (setq entry nil) (sort ... ..= .)))) (cond ((eq first-key 80) (list 102 112 120 97)) ((not first-key) (lis= t 80))) (list 38 35) (if expertp (progn (list 63))) (list 113))) (help (if = expertp nil (concat (format "[%s] Body only: %s [%s] Visible o= nly: %s\n[%s] Export scope: %s [%s] Force publishing: %s\n[%s] As= ync export: %s\n\n" (funcall fontify-key "C-b" t) (funcall fontify-value (i= f ... "On " "Off")) (funcall fontify-key "C-v" t) (funcall fontify-value (i= f ... "On " "Off")) (funcall fontify-key "C-s" t) (funcall fontify-value (i= f ... "Subtree" "Buffer ")) (funcall fontify-key "C-f" t) (funcall fontify-= value (if ... "On " "Off")) (funcall fontify-key "C-a" t) (funcall fontify-= value (if ... "On " "Off"))) (let (last-key) (mapconcat (function ...) entr= ies "")) (format "\n[%s] Publish\n [%s] Current file [%s] C= urrent project\n [%s] Choose project [%s] All projects\n\n\n"= (funcall fontify-key "P") (funcall fontify-key "f" 80) (funcall fontify-ke= y "p" 80) (funcall fontify-key "x" 80) (funcall fontify-key "a" 80)) (forma= t "[%s] Export stack [%s] Insert template\n" (funcall font= ify-key "&" t) (funcall fontify-key "#" t)) (format "[%s] %s" (funcall font= ify-key "q" t) (if first-key "Main menu" "Exit"))))) (standard-prompt (if e= xpertp nil "Export command: ")) (expert-prompt (if expertp (progn (format "= Export command (C-%s%s%s%s%s) [%s]: " (if (memq ... options) (funcall fonti= fy-key "b" t) "b") (if (memq ... options) (funcall fontify-key "v" t) "v") = (if (memq ... options) (funcall fontify-key "s" t) "s") (if (memq ... optio= ns) (funcall fontify-key "f" t) "f") (if (memq ... options) (funcall fontif= y-key "a" t) "a") (mapconcat (function ...) allowed-keys "")))))) (if exper= tp (org-export--dispatch-action expert-prompt allowed-keys entries options = first-key expertp) (if (get-buffer "*Org Export Dispatcher*") nil (delete-o= ther-windows) (org-switch-to-buffer-other-window (get-buffer-create "*Org E= xport Dispatcher*")) (setq cursor-type nil header-line-format "Use SPC, DEL= , C-n or C-p to navigate.") (set-syntax-table (copy-syntax-table)) (modify-= syntax-entry 91 "w")) (save-current-buffer (set-buffer "*Org Export Dispatc= her*") (let ((pos (window-start))) (erase-buffer) (insert help) (set-window= -start nil pos))) (org-fit-window-to-buffer) (org-export--dispatch-action s= tandard-prompt allowed-keys entries options first-key expertp))) org-export--dispatch-ui((buffer nil) nil nil) (setq org-export-dispatch-last-action (org-export--dispatch-ui (list org-= export-initial-scope (and org-export-in-background (quote async))) nil org-= export-dispatch-use-expert-ui)) (progn (move-marker org-export-dispatch-last-position (point) (org-base-b= uffer (current-buffer))) (setq org-export-dispatch-last-action (org-export-= -dispatch-ui (list org-export-initial-scope (and org-export-in-background (= quote async))) nil org-export-dispatch-use-expert-ui))) (unwind-protect (progn (move-marker org-export-dispatch-last-position (po= int) (org-base-buffer (current-buffer))) (setq org-export-dispatch-last-act= ion (org-export--dispatch-ui (list org-export-initial-scope (and org-export= -in-background (quote async))) nil org-export-dispatch-use-expert-ui))) (an= d (get-buffer "*Org Export Dispatcher*") (kill-buffer "*Org Export Dispatch= er*"))) (progn (unwind-protect (progn (move-marker org-export-dispatch-last-posit= ion (point) (org-base-buffer (current-buffer))) (setq org-export-dispatch-l= ast-action (org-export--dispatch-ui (list org-export-initial-scope (and org= -export-in-background (quote async))) nil org-export-dispatch-use-expert-ui= ))) (and (get-buffer "*Org Export Dispatcher*") (kill-buffer "*Org Export D= ispatcher*")))) (unwind-protect (progn (unwind-protect (progn (move-marker org-export-dis= patch-last-position (point) (org-base-buffer (current-buffer))) (setq org-e= xport-dispatch-last-action (org-export--dispatch-ui (list org-export-initia= l-scope (and org-export-in-background ...)) nil org-export-dispatch-use-exp= ert-ui))) (and (get-buffer "*Org Export Dispatcher*") (kill-buffer "*Org Ex= port Dispatcher*")))) (set-window-configuration wconfig)) (let ((wconfig (current-window-configuration))) (unwind-protect (progn (u= nwind-protect (progn (move-marker org-export-dispatch-last-position (point)= (org-base-buffer (current-buffer))) (setq org-export-dispatch-last-action = (org-export--dispatch-ui (list org-export-initial-scope ...) nil org-export= -dispatch-use-expert-ui))) (and (get-buffer "*Org Export Dispatcher*") (kil= l-buffer "*Org Export Dispatcher*")))) (set-window-configuration wconfig))) (cond ((equal arg (quote (16))) (quote (stack))) ((and arg org-export-dis= patch-last-action)) (t (let ((wconfig (current-window-configuration))) (unw= ind-protect (progn (unwind-protect (progn (move-marker org-export-dispatch-= last-position ... ...) (setq org-export-dispatch-last-action ...)) (and (ge= t-buffer "*Org Export Dispatcher*") (kill-buffer "*Org Export Dispatcher*")= ))) (set-window-configuration wconfig))))) (let* ((input (cond ((equal arg (quote (16))) (quote (stack))) ((and arg = org-export-dispatch-last-action)) (t (let ((wconfig ...)) (unwind-protect (= progn ...) (set-window-configuration wconfig)))))) (action (car input)) (op= tns (cdr input))) (if (memq (quote subtree) optns) nil (move-marker org-exp= ort-dispatch-last-position nil)) (cond ((eql action (quote template)) (org-= export-insert-default-template nil optns)) ((eql action (quote stack)) (org= -export-stack)) ((eql action (quote publish-current-file)) (org-publish-cur= rent-file (memq (quote force) optns) (memq (quote async) optns))) ((eql act= ion (quote publish-current-project)) (org-publish-current-project (memq (qu= ote force) optns) (memq (quote async) optns))) ((eql action (quote publish-= choose-project)) (org-publish (assoc (org-icompleting-read "Publish project= : " org-publish-project-alist nil t) org-publish-project-alist) (memq (quot= e force) optns) (memq (quote async) optns))) ((eql action (quote publish-al= l)) (org-publish-all (memq (quote force) optns) (memq (quote async) optns))= ) (t (save-excursion (if arg (progn (if (eq ... ...) (goto-char org-export-= dispatch-last-position) (move-marker org-export-dispatch-last-position nil)= ))) (funcall action (and (memq (quote async) optns) t) (and (memq (quote su= btree) optns) t) (and (memq (quote visible) optns) t) (and (memq (quote bod= y) optns) t)))))) org-export-dispatch(nil) call-interactively(org-export-dispatch nil nil) command-execute(org-export-dispatch) --=-=-= Content-Type: text/plain >> This does not happen with M-x toggle-frame-fullscreen RET. > > Your scenario is complicated by the fact that the only means I know to > put Emacs in fullscreen mode is F11. Does it happen with maximized > frames too? No, it only happens in window-manager triggered fullstreen, not in a maximized frame. I use i3 as a window manager. I hope you or somebody else can try the recipe above and confirm the bug. >> The attached patch for Org fixes the issue but I guess there >> is a more general issue here. > > Please explain what the "issue" is, how it is related to `org-mode', and > how it is related to `window-resize-pixelwise'. The latter is a user > option and should not be set by an application. For the issue, see the backtrace. For the rest, I don't know. -- Bastien --=-=-=--