From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jon Dufresne Newsgroups: gmane.emacs.bugs Subject: bug#17365: 24.3; Visiting tags table in combination with fill column indicator causes Emacs to hang Date: Mon, 28 Apr 2014 13:55:57 -0700 Message-ID: <87lhupxjfm.fsf@localhost.localdomain.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398718705 2454 80.91.229.3 (28 Apr 2014 20:58:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2014 20:58:25 +0000 (UTC) To: 17365@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 28 22:58:18 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 1Wescy-0003aa-8T for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Apr 2014 22:58:16 +0200 Original-Received: from localhost ([::1]:46027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wescx-0000bN-F9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Apr 2014 16:58:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wescp-0008B0-Jw for bug-gnu-emacs@gnu.org; Mon, 28 Apr 2014 16:58:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wesck-0004EF-MS for bug-gnu-emacs@gnu.org; Mon, 28 Apr 2014 16:58:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wesck-0004EB-If for bug-gnu-emacs@gnu.org; Mon, 28 Apr 2014 16:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wesck-0000SD-85 for bug-gnu-emacs@gnu.org; Mon, 28 Apr 2014 16:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jon Dufresne Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Apr 2014 20:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17365 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.13987186331659 (code B ref -1); Mon, 28 Apr 2014 20:58:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Apr 2014 20:57:13 +0000 Original-Received: from localhost ([127.0.0.1]:44151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wesbw-0000Qg-QV for submit@debbugs.gnu.org; Mon, 28 Apr 2014 16:57:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48814) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wesbt-0000PT-3n for submit@debbugs.gnu.org; Mon, 28 Apr 2014 16:57:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wesbi-00046n-P3 for submit@debbugs.gnu.org; Mon, 28 Apr 2014 16:57:03 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wesbi-00046j-Lb for submit@debbugs.gnu.org; Mon, 28 Apr 2014 16:56:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wesbd-0006KL-Kp for bug-gnu-emacs@gnu.org; Mon, 28 Apr 2014 16:56:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WesbY-000462-GS for bug-gnu-emacs@gnu.org; Mon, 28 Apr 2014 16:56:53 -0400 Original-Received: from mail-pd0-x231.google.com ([2607:f8b0:400e:c02::231]:47113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WesbY-00045v-4N for bug-gnu-emacs@gnu.org; Mon, 28 Apr 2014 16:56:48 -0400 Original-Received: by mail-pd0-f177.google.com with SMTP id v10so1865991pde.36 for ; Mon, 28 Apr 2014 13:56:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=jQIwtazQu1igdrf4AvQvtdHlwn37gNsO3k1pSTPduF4=; b=M5YwS/o5Mf+ORFb0BJeMq+BISzVe8qzlnj6pM30Mrt1YUYRb56p0Z8a2chMo1D+pMu JR4rlyfAEAzS60ygNYbPmivVBZDPKFxiMhCT4QpcKTT+MYdm3OWw7E0pFrv77LJ7S9Kn aPCi6P6dd1kKceDwc27oroOPQgEqp5CBPgpM7ADXY2Md+7F5EUOYAEDNQoCMWUDff07f XX84XVmykduP9fVpg8dtdzQdg43XCZ9uoczbbgoumk2hFjIYczICD1hWsdvVnaTW5bbc Or0Xh18c7ddirDKy7xHgxuwSr4W2Sf3kY2CeWSW0kh3/d9peiZQec8iisVo553FD/TOg hVPw== X-Received: by 10.68.198.36 with SMTP id iz4mr27965312pbc.109.1398718606291; Mon, 28 Apr 2014 13:56:46 -0700 (PDT) Original-Received: from localhost.localdomain ([184.71.161.246]) by mx.google.com with ESMTPSA id sh5sm37030952pbc.21.2014.04.28.13.56.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Apr 2014 13:56:45 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:88379 Archived-At: The following recipe causes Emacs to hang 100%. 0. Start in a mercurial repository directory. 1. Run "emacs -Q -l /path/to/test.el" 2. M-x project-compile-and-visit-tags-table 3. Wait for completion. 4. M-x project-compile-and-visit-tags-table 5. Receive prompt: "Tags file /path/to/TAGS has changed, read new contents? (yes or no)" 6. Type "yes" 7. Emacs hangs, must send kill signal to close. The goal of test.el is to re-compile and visit the TAGS file while coexisting with fci-mode. If there is a better way to accomplish the same thing, I'd be interested to know. It is possible that this is a bug in fci-mode, however, it seems to me that a buggy third party script should not be capable of freezing the entire Emacs process, so I am filing it here. Removing fci-mode removes the freezing. The test.el: --- (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/")) (package-initialize) (package-refresh-contents) (package-install 'fill-column-indicator) (require 'fill-column-indicator) (setq-default fci-rule-column 80) (defun fci-mode-on () "Turn fci-mode on." (fci-mode 1)) (define-globalized-minor-mode global-fci-mode fci-mode fci-mode-on) (global-fci-mode 1) (defun project-compile-and-visit-tags-table () "Compile TAGS file at the project ROOT directory." (interactive) (let ((root (project-root))) (when root (add-hook 'compilation-finish-functions #'project-visit-tags-table) (compile (format "ctags -e -R --exclude=updates --languages=PHP -o %s %s" (concat root "TAGS") root))))) (defun project-visit-tags-table (buffer string) "Tell tags commands to use tags table at the project root." (when (string= string "finished\n") (visit-tags-table (concat (project-root) "TAGS"))) (remove-hook 'compilation-finish-functions #'project-visit-tags-table)) (defun project-root () "Return the project's root directory." (locate-dominating-file default-directory ".hg")) --- In GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.10.8) of 2014-04-18 on buildvm-19.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11404000 System Description: Fedora release 20 (Heisenbug) Configured using: `configure '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk3' '--with-gpm=no' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro '' Important settings: value of $LANG: en_US.utf8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)