GNU bug report logs - #17746
24.4.50; "byte-code: `recenter'ing a window that does not display current-buffer." when composing a message

Previous Next

Packages: org-mode, emacs;

Reported by: David Griffiths <dogriffiths <at> gmail.com>

Date: Tue, 10 Jun 2014 15:39:01 UTC

Severity: normal

Merged with 17724, 17794, 18401, 18430, 18594

Found in version 24.4.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Daimrod <daimrod <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Bastien <bzg <at> altern.org>, David Griffiths <dogriffiths <at> gmail.com>, 17746 <at> debbugs.gnu.org, Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
Subject: bug#17746: [O] bug#17746: 24.4.50; "byte-code: `recenter'ing a window that does not display current-buffer." when composing a message
Date: Thu, 12 Jun 2014 13:10:46 +0900
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>> +(defun org-recenter (&optional arg)
>> +  "Like `recenter' but ensure that the `current-buffer' is
>> +properly set."
>> +  (with-current-buffer (window-buffer)
>> +    (recenter arg)))
>  
> This doesn't make much sense: in many case (window-buffer) can be
> a buffer completely unrelated to Org.

Hmm, what was the previous behaviour of `recenter'? (i.e. before it
reports an error)

Did it just do nothing?

Best,

-- 
Daimrod/Greg




This bug report was last modified 10 years and 227 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.