From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SDAlDfc2uV9pFwAA0tVLHw (envelope-from ) for ; Sat, 21 Nov 2020 15:49:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kgngCPc2uV+bKgAAbx9fmQ (envelope-from ) for ; Sat, 21 Nov 2020 15:49:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2937E9403CA for ; Sat, 21 Nov 2020 15:49:10 +0000 (UTC) Received: from localhost ([::1]:58910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgV8N-00007u-Sm for larch@yhetil.org; Sat, 21 Nov 2020 10:49:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgV7q-00007e-5s for emacs-orgmode@gnu.org; Sat, 21 Nov 2020 10:48:34 -0500 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:43870) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kgV7n-0008Mx-Ld for emacs-orgmode@gnu.org; Sat, 21 Nov 2020 10:48:33 -0500 Received: by mail-lf1-x132.google.com with SMTP id d17so17731064lfq.10 for ; Sat, 21 Nov 2020 07:48:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniroma1.it; s=google; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=ZIWnuBW4kgn8vR3GOftokxdxUFawjWVIGX0UaXeTCQA=; b=uw3URqIt3XLjigrfH8s0gAOjexyqyWkVHaEhTvsGo3DdMkrNEuaRT0XELPdwVq0xqw MDy7wvgegzIAw61xnYlrCw4hVpkDMIDz5zQlt8+tNPj8ExzpxvtDY1LDijn31Us/EzTM L9n5u90ucBjvjLcFViZ41Kxsu9nLnDlDuVYK7oBEg0mpXiR3iSz/fA3qjKEnJfZxqski iSDT6QJKo3XG30rC7rf9zJJUeQtGsE5GRaA5rkawjouzBLDPGrgRtk/o1amjcMnb+Nyl YXrlN0Jf+Uzo6nVf+oALHAb7tHyU7wVvrFwLdvL6Wqs+JNWz6gGaq0dB7Szz+mi6sATg SwFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=ZIWnuBW4kgn8vR3GOftokxdxUFawjWVIGX0UaXeTCQA=; b=dcxkbifb7tD2Eu5bCH3un6kXuGaVQB+vTxPg3miQye/+uzCUj1Yh55dRobJS4RHGyw KM/iHEcM8e6uGaqr6j9d6IV61xA7dlHb6uMKZZuxAb1CSNE1O5T5fiDhRTBk8V5zT+G/ APdkgKmKdd0FxPXOfpQTZEsdB0StTNiwqlL699cvdU/BFaEOmeFmrm45cytp+iKW1ZJI SvHGHuGUJzk9aqu1vG1LM6Rmz1Wmfkw7qq+Zc6Mh89paBqq8HgdyqIu8acPiIxWClRJj 6YbDABlMYx0Nfsr6GY11fGzZhNX0IR0CUemx/yHupZ3j2ET/MF7w76AfT+5p8Bau4+Nj yVpA== X-Gm-Message-State: AOAM530bTEjtIeKvy2T2+Wkj4wSWbNUeYIO/YNQ1OeeuUrOB6kucmHHy yFZMsBnGciqmWJxG0Sx1obBHXfm5/OF3Op1RuEDKHY30HxtM0Q== X-Google-Smtp-Source: ABdhPJxQK3L3xhVpGgTxpfL8RejT3l6OnTtkB2o41s1T5Eloutaj2VQ1HVjsoF8SbWktK4CEPTt3KH+qw8wVKJeiRSE= X-Received: by 2002:ac2:563a:: with SMTP id b26mr9743497lff.596.1605973708340; Sat, 21 Nov 2020 07:48:28 -0800 (PST) MIME-Version: 1.0 From: Massimo Lauria Date: Sat, 21 Nov 2020 16:48:16 +0100 Message-ID: Subject: Bug: Having '%p" in frame-title-format makes org-mode to freeze [9.4 (release_9.4-134-g0d525c @ /home/massimo/bugreport/org-mode/lisp/)] To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=lauria.massimo@gmail.com; helo=mail-lf1-x132.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=uniroma1.it header.s=google header.b=uw3URqIt; dmarc=pass (policy=quarantine) header.from=uniroma1.it; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: nFzDac81nEer Hi all, I recently came across this weird issue using org-mode. Essentially when I fold/unfold/fold some header in org-mode, pressing tab three times, I expect the section to fold again at the third keypress, and instead emacs freezes. By detective work I discovered that it has to do with having the '%p' option in frame-title-format. The bug disappeared when I took "%p" option away from frame-title-format. Thank you for all you work and for any attention you will give to this bug. I hope this message is useful. I will now give enough info and data to reproduce the bug with a minimal setup, and at the end of the message my emacs/org/Linux configuration follows. * Steps to reproduce the bug Note that these steps only reproduce the bug when emacs runs graphically. Using "emacs -nw" fails to reproduce the bug. ** Step 0. Prepare a folder ~/bugreport/ with the three files "test.sh", "test.el" and "test.org" as follows ---- test.sh ---- downloads org-mode and runs emacs with the test setup cd ~/bugreport/ git clone https://code.orgmode.org/bzg/org-mode.git cd org-mode/ make autoloads cd ~/bugreport/ emacs -Q -l test.el test.org & ----------------------------------------- --- test.el ---- loads org-mode from the repository and set frame-title-for= mat (add-to-list 'load-path "~/bugreport/org-mode/lisp") (setq frame-title-format '("%p")) ----------------------------------------- ---- test.org ---- just an org file with a header * Try to hang emacs To hang emacs you should fold/unfold/fold the header of this section a couple of times. ----------------------------------------- ** Step 1. Run the test It is sufficient to go "cd ~/bugreport/" and do "sh ./test.sh" You should see emacs starting and opening "test.org" file, and by running 'org-version' you could double check that the appropriate version of org has been loaded. ** Step 2. Make emacs freeze Go to first line in the "test.org" file and press TAB three times. Emacs should freeze now. * Emacs/Org/Linux configuration Here's some more details about my environment. Emacs : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2020-09-19 Package: Org mode version 9.4 (release_9.4-134-g0d525c @ /home/massimo/bugreport/org-mode/lisp/) Linux: Linux nuc2020 5.4.0-53-generic #59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Content of /etc/lsb-release: DISTRIB_ID=3DUbuntu DISTRIB_RELEASE=3D20.04 DISTRIB_CODENAME=3Dfocal DISTRIB_DESCRIPTION=3D"Ubuntu 20.04.1 LTS" current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-link-shell-confirm-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-mode-hook '((closure (org--rds reftex-docstruct-symbol org-element-greater-elements org-clock-history org-agenda-current-date org-with-time org-defdecode org-def org-read-date-inactive org-ans2 org-ans1 org-columns-current-fmt-compiled org-clock-current-task org-clock-effort org-agenda-skip-function org-agenda-skip-comment-trees org-agenda-archives-mode org-end-time-was-given org-time-was-given org-log-note-extra org-log-note-purpose org-log-post-message org-last-inserted-timestamp org-last-changed-timestamp org-entry-property-inherited-from org-blocked-by-checkboxes org-state org-agenda-headline-snapshot-before-repeat org-agenda-start-on-weekday org-agenda-buffer-tmp-name org-priority-regexp org-mode-abbrev-table org-mode-syntax-table buffer-face-mode-face org-tbl-menu org-org-menu org-struct-menu org-entities org-last-state org-id-track-globally org-clock-start-time texmathp-why remember-data-file org-agenda-tags-todo-honor-ignore-options iswitchb-temp-buflist calc-embedded-open-mode calc-embedded-open-formula calc-embedded-close-formula align-mode-rules-list org-emphasis-alist org-emphasis-regexp-components org-export-registered-backends org-modules org-babel-load-languages org-id-overriding-file-name org-indent-indentation-per-level org-element-paragraph-separate ffap-url-regexp org-inlinetask-min-level t) nil (add-hook 'change-major-mode-hook 'org-show-all 'append 'local) ) (closure (org-src-window-setup *this* org-babel-confirm-evaluate-answer-no org-babel-tangle-uncomment-comments org-src-preserve-indentation org-src-lang-modes org-edit-src-content-indentation org-babel-library-of-babel t) nil (add-hook 'change-major-mode-hook 'org-babel-show-result-all 'append 'local) ) org-babel-result-hide-spec org-babel-hide-all-hashes) org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function '(closure (org-id-locations org-agenda-search-view-always-boolean org-agenda-overriding-header t) (entry) (cdr (assq :title entry))) org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-export-before-parsing-hook '(org-attach-expand-links) org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow org-eww-open :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow (closure ((scheme . "news") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("mailto" :follow (closure ((scheme . "mailto") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("https" :follow (closure ((scheme . "https") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("http" :follow (closure ((scheme . "http") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("ftp" :follow (closure ((scheme . "ftp") (--dolist-tail--) org-ts-regexp org-time-stamp-formats org-src-source-file-name org-outline-regexp-bol org-inhibit-startup org-id-link-to-org-use-id org-highlight-links org-comment-string org-agenda-buffer-name clean-buffer-list-kill-buffer-names t) (url arg) (browse-url (concat scheme ":" url) arg)) ) ("help" :follow org-link--open-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp) ("doi" :follow org-link--open-doi)) org-link-elisp-confirm-function 'yes-or-no-p ) --=20 Massimo Lauria http://www.massimolauria.net Universit=C3=A0 degli studi di Roma - La Sapienza Dipartimento di Scienze Statistiche Piazzale Aldo Moro, 5 00185 Roma, Italy