From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Bug: CAPTION space after 70th character (8.2.7c-71-g60418c-elpa) Date: Fri, 26 Sep 2014 12:50:47 -0400 Message-ID: References: <87d2aiv0nt.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXYjT-0008Cl-M2 for emacs-orgmode@gnu.org; Fri, 26 Sep 2014 12:51:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXYjN-0007yR-Jr for emacs-orgmode@gnu.org; Fri, 26 Sep 2014 12:50:59 -0400 Received: from mail-qa0-x231.google.com ([2607:f8b0:400d:c00::231]:57529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXYjN-0007xY-5Q for emacs-orgmode@gnu.org; Fri, 26 Sep 2014 12:50:53 -0400 Received: by mail-qa0-f49.google.com with SMTP id n8so6194972qaq.8 for ; Fri, 26 Sep 2014 09:50:47 -0700 (PDT) In-reply-to: <87d2aiv0nt.fsf@gmx.us> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org * On 2014-09-26 at 11:53, Rasmus wrote: > Ken Mankoff writes: >> If I have a #+CAPTION line, I can type my figure caption as I would >> expect. But as soon as I pass the 70th column, the spacebar triggers >> an error. I can type letters after the 70th column, but not a >> space. When I press the spacebar on the 70th or higher column, the >> mini-buffer says: >> >> Buffer ` *temp*-624801' still has clients; kill it? (y or n) >> > > I can't reproduce using the latest version of org. > > Does this happen when you start Emacs with emacs -q? If not, it could > be some third-party package causing the error. > > Try also M-x toggle-debug-on-error and make the error reappear. This > should give insights in where the error occurs. > debug-on-error doesn't help because there isn't actually an error as far as I can tell. It is a bug, not an error. Nothing shows up in *Messages* I've isolated the problem to this line: (add-hook 'text-mode-hook 'turn-on-auto-fill) Which I've had enabled for a long time, but has only recently been causing issues with CAPTION lines. I can re-create it only when that line is uncommented. Oddly, even the re-creation is complicated. I can't get the bug to show up in the primary window. I must launch a second frame. I can re-create it like this: $ /usr/local/Cellar/emacs-mac/emacs-24.3-mac-4.8/bin/emacs -Q load Org M-x auto-fill-mode #+CAPTION lots of text and spaces does not cause bug $ /usr/local/Cellar/emacs-mac/emacs-24.3-mac-4.8/bin/emacsclient -c foo.org #+CAPTION and now the bug exists after line 70 It doesn't appear if I open a new frame with "C-x 5 2", only if I open a new frame with emacsclient from the command line. Some more strange behavior: If the bug appears and I close the frame, and then open the file again (find-file foo.org), the file (a massive ORG file) appears as "*temp*" in the modeline and the contents of the file are only the 1 line of the caption. If I kill buffer *temp* and then find-file again, the contents are correctly loaded. -k.