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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17746 in the body.
You can then email your comments to 17746 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17746; Package emacs. (Tue, 10 Jun 2014 15:39:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to David Griffiths <dogriffiths <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 10 Jun 2014 15:39:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: David Griffiths <dogriffiths <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4.50; "byte-code: `recenter'ing a window that does not display
 current-buffer." when composing a message
Date: Tue, 10 Jun 2014 10:42:13 +0100
[Message part 1 (text/plain, inline)]
When I try to compose an email, either directly or by pressing 'm' in
Gnus, I get the message:

`recenter'ing a window that does not display current-buffer.

This is using Emacs built from source on June 9th 2014, running on Mac
OSX 10.9.3. The message appears to come from a change to add additional
validation to src/window.c on June 6th with SHA:

0ce71d38bf295205067fd334e1993906f7fb0ba7



In GNU Emacs 24.4.50.1 (x86_64-apple-darwin10.8.0, NS apple-appkit-1038.36)
 of 2014-05-31 on grawpy.local
Configured using:
 `configure --with-ns'

Configured features:
IMAGEMAGICK ACL GNUTLS LIBXML2 ZLIB

Important settings:
  locale-coding-system: utf-8

Major mode: Lisp Interaction

Minor modes in effect:
  display-time-mode: t
  shell-dirtrack-mode: t
  recentf-mode: t
  csv-field-index-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
ESC [ > 0 ; 9 5 ; 0 c ESC x r e p o TAB r t - e m TAB 
b TAB RET

Recent messages:
Loading /Users/davidg/.emacs.d/elpa/package.el (source)...done
Source file `/Users/davidg/.emacs.d/elpa/inf-ruby-20130820.2222/inf-ruby.el' newer than byte-compiled file
Source file `/Users/davidg/.emacs.d/elpa/mediawiki-1.1/mediawiki.el' newer than byte-compiled file
ad-handle-definition: `w3m-search' got redefined [2 times]
Package pgg-def is obsolete!
Package pgg-parse is obsolete!
Package pgg is obsolete!
For information about GNU Emacs and the GNU system, type <f1> C-a.
Making completion list...
current-kill: Kill ring is empty

Load-path shadows:
/Users/davidg/.emacs.d/elpa/jtags-20111208.1922/jtags-extras hides /Users/davidg/.emacs.d/elpa/jtags-extras-0.3.0/jtags-extras
/Users/davidg/.emacs.d/elpa/bbdb-vcard-20131216.1632/vcard hides ~/.emacs.d/vm-8.1.1/lisp/vcard
/Users/davidg/.emacs.d/elpa/metaweblog-20130707.431/test-metaweblog hides ~/.emacs.d/org2blog/test-metaweblog
/Users/davidg/.emacs.d/elpa/org2blog-20130707.323/org2blog hides ~/.emacs.d/org2blog/org2blog
/Users/davidg/.emacs.d/elpa/org2blog-20130707.323/org2blog-pkg hides ~/.emacs.d/org2blog/org2blog-pkg
/Users/davidg/.emacs.d/elpa/org2blog-20130707.323/org2blog-autoloads hides ~/.emacs.d/org2blog/org2blog-autoloads
/Users/davidg/.emacs.d/elpa/metaweblog-20130707.431/metaweblog hides ~/.emacs.d/org2blog/metaweblog
/Users/davidg/.emacs.d/elpa/rvm-20140109.319/rvm hides ~/.emacs.d/lisp/rvm
/Users/davidg/.emacs.d/elpa/org-20140310/ox hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox
/Users/davidg/.emacs.d/elpa/org-20140310/ox-texinfo hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-texinfo
/Users/davidg/.emacs.d/elpa/org-20140310/ox-publish hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-publish
/Users/davidg/.emacs.d/elpa/org-20140310/ox-org hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-org
/Users/davidg/.emacs.d/elpa/org-20140310/ox-odt hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-odt
/Users/davidg/.emacs.d/elpa/org-20140310/ox-md hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-md
/Users/davidg/.emacs.d/elpa/org-20140310/ox-man hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-man
/Users/davidg/.emacs.d/elpa/org-20140310/ox-latex hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-latex
/Users/davidg/.emacs.d/elpa/org-20140310/ox-icalendar hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-icalendar
/Users/davidg/.emacs.d/elpa/org-20140310/ox-html hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-html
/Users/davidg/.emacs.d/elpa/org-20140310/ox-beamer hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-beamer
/Users/davidg/.emacs.d/elpa/org-20140310/ox-ascii hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-ascii
/Users/davidg/.emacs.d/elpa/org-20140310/org hides /Applications/Emacs.app/Contents/Resources/lisp/org/org
/Users/davidg/.emacs.d/elpa/org-20140310/org-w3m hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-w3m
/Users/davidg/.emacs.d/elpa/org-20140310/org-version hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-version
/Users/davidg/.emacs.d/elpa/org-20140310/org-timer hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-timer
/Users/davidg/.emacs.d/elpa/org-20140310/org-table hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-table
/Users/davidg/.emacs.d/elpa/org-20140310/org-src hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-src
/Users/davidg/.emacs.d/elpa/org-20140310/org-rmail hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-rmail
/Users/davidg/.emacs.d/elpa/org-20140310/org-protocol hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-protocol
/Users/davidg/.emacs.d/elpa/org-20140310/org-plot hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-plot
/Users/davidg/.emacs.d/elpa/org-20140310/org-pcomplete hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-pcomplete
/Users/davidg/.emacs.d/elpa/org-20140310/org-mouse hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-mouse
/Users/davidg/.emacs.d/elpa/org-20140310/org-mobile hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-mobile
/Users/davidg/.emacs.d/elpa/org-20140310/org-mhe hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-mhe
/Users/davidg/.emacs.d/elpa/org-20140310/org-macs hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-macs
/Users/davidg/.emacs.d/elpa/org-20140310/org-macro hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-macro
/Users/davidg/.emacs.d/elpa/org-20140310/org-loaddefs hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-loaddefs
/Users/davidg/.emacs.d/elpa/org-20140310/org-list hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-list
/Users/davidg/.emacs.d/elpa/org-20140310/org-irc hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-irc
/Users/davidg/.emacs.d/elpa/org-20140310/org-install hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-install
/Users/davidg/.emacs.d/elpa/org-20140310/org-inlinetask hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-inlinetask
/Users/davidg/.emacs.d/elpa/org-20140310/org-info hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-info
/Users/davidg/.emacs.d/elpa/org-20140310/org-indent hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-indent
/Users/davidg/.emacs.d/elpa/org-20140310/org-id hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-id
/Users/davidg/.emacs.d/elpa/org-20140310/org-habit hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-habit
/Users/davidg/.emacs.d/elpa/org-20140310/org-gnus hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-gnus
/Users/davidg/.emacs.d/elpa/org-20140310/org-footnote hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-footnote
/Users/davidg/.emacs.d/elpa/org-20140310/org-feed hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-feed
/Users/davidg/.emacs.d/elpa/org-20140310/org-faces hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-faces
/Users/davidg/.emacs.d/elpa/org-20140310/org-eshell hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-eshell
/Users/davidg/.emacs.d/elpa/org-20140310/org-entities hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-entities
/Users/davidg/.emacs.d/elpa/org-20140310/org-element hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-element
/Users/davidg/.emacs.d/elpa/org-20140310/org-docview hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-docview
/Users/davidg/.emacs.d/elpa/org-20140310/org-datetree hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-datetree
/Users/davidg/.emacs.d/elpa/org-20140310/org-ctags hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-ctags
/Users/davidg/.emacs.d/elpa/org-20140310/org-crypt hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-crypt
/Users/davidg/.emacs.d/elpa/org-20140310/org-compat hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-compat
/Users/davidg/.emacs.d/elpa/org-20140310/org-colview hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-colview
/Users/davidg/.emacs.d/elpa/org-20140310/org-clock hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-clock
/Users/davidg/.emacs.d/elpa/org-20140310/org-capture hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-capture
/Users/davidg/.emacs.d/elpa/org-20140310/org-bibtex hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-bibtex
/Users/davidg/.emacs.d/elpa/org-20140310/org-bbdb hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-bbdb
/Users/davidg/.emacs.d/elpa/org-20140310/org-attach hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-attach
/Users/davidg/.emacs.d/elpa/org-20140310/org-archive hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-archive
/Users/davidg/.emacs.d/elpa/org-20140310/org-agenda hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-agenda
/Users/davidg/.emacs.d/elpa/org-20140310/ob hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob
/Users/davidg/.emacs.d/elpa/org-20140310/ob-tangle hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-tangle
/Users/davidg/.emacs.d/elpa/org-20140310/ob-table hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-table
/Users/davidg/.emacs.d/elpa/org-20140310/ob-sqlite hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sqlite
/Users/davidg/.emacs.d/elpa/org-20140310/ob-sql hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sql
/Users/davidg/.emacs.d/elpa/org-20140310/ob-shen hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-shen
/Users/davidg/.emacs.d/elpa/org-20140310/ob-sh hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sh
/Users/davidg/.emacs.d/elpa/org-20140310/ob-screen hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-screen
/Users/davidg/.emacs.d/elpa/org-20140310/ob-scheme hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-scheme
/Users/davidg/.emacs.d/elpa/org-20140310/ob-scala hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-scala
/Users/davidg/.emacs.d/elpa/org-20140310/ob-sass hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sass
/Users/davidg/.emacs.d/elpa/org-20140310/ob-ruby hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ruby
/Users/davidg/.emacs.d/elpa/org-20140310/ob-ref hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ref
/Users/davidg/.emacs.d/elpa/org-20140310/ob-R hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-R
/Users/davidg/.emacs.d/elpa/org-20140310/ob-python hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-python
/Users/davidg/.emacs.d/elpa/org-20140310/ob-plantuml hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-plantuml
/Users/davidg/.emacs.d/elpa/org-20140310/ob-picolisp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-picolisp
/Users/davidg/.emacs.d/elpa/org-20140310/ob-perl hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-perl
/Users/davidg/.emacs.d/elpa/org-20140310/ob-org hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-org
/Users/davidg/.emacs.d/elpa/org-20140310/ob-octave hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-octave
/Users/davidg/.emacs.d/elpa/org-20140310/ob-ocaml hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ocaml
/Users/davidg/.emacs.d/elpa/org-20140310/ob-mscgen hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-mscgen
/Users/davidg/.emacs.d/elpa/org-20140310/ob-maxima hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-maxima
/Users/davidg/.emacs.d/elpa/org-20140310/ob-matlab hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-matlab
/Users/davidg/.emacs.d/elpa/org-20140310/ob-makefile hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-makefile
/Users/davidg/.emacs.d/elpa/org-20140310/ob-lob hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lob
/Users/davidg/.emacs.d/elpa/org-20140310/ob-lisp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lisp
/Users/davidg/.emacs.d/elpa/org-20140310/ob-lilypond hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lilypond
/Users/davidg/.emacs.d/elpa/org-20140310/ob-ledger hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ledger
/Users/davidg/.emacs.d/elpa/org-20140310/ob-latex hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-latex
/Users/davidg/.emacs.d/elpa/org-20140310/ob-keys hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-keys
/Users/davidg/.emacs.d/elpa/org-20140310/ob-js hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-js
/Users/davidg/.emacs.d/elpa/org-20140310/ob-java hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-java
/Users/davidg/.emacs.d/elpa/org-20140310/ob-io hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-io
/Users/davidg/.emacs.d/elpa/org-20140310/ob-haskell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-haskell
/Users/davidg/.emacs.d/elpa/org-20140310/ob-gnuplot hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-gnuplot
/Users/davidg/.emacs.d/elpa/org-20140310/ob-fortran hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-fortran
/Users/davidg/.emacs.d/elpa/org-20140310/ob-exp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-exp
/Users/davidg/.emacs.d/elpa/org-20140310/ob-eval hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-eval
/Users/davidg/.emacs.d/elpa/org-20140310/ob-emacs-lisp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-emacs-lisp
/Users/davidg/.emacs.d/elpa/org-20140310/ob-dot hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-dot
/Users/davidg/.emacs.d/elpa/org-20140310/ob-ditaa hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ditaa
/Users/davidg/.emacs.d/elpa/org-20140310/ob-css hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-css
/Users/davidg/.emacs.d/elpa/org-20140310/ob-core hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-core
/Users/davidg/.emacs.d/elpa/org-20140310/ob-comint hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-comint
/Users/davidg/.emacs.d/elpa/org-20140310/ob-clojure hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-clojure
/Users/davidg/.emacs.d/elpa/org-20140310/ob-calc hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-calc
/Users/davidg/.emacs.d/elpa/org-20140310/ob-C hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-C
/Users/davidg/.emacs.d/elpa/org-20140310/ob-awk hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-awk
/Users/davidg/.emacs.d/elpa/org-20140310/ob-asymptote hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-asymptote

Features:
(shadow face-remap reftex reftex-vars flyspell ispell org-element
org-rmail org-mhe org-irc org-info org-gnus org-docview org-bibtex
bibtex org-bbdb org-w3m mail-extr emacsbug xterm bbdb-message bbdb
bbdb-site time ido w3m-search w3m browse-url doc-view jka-compr
image-mode timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl
w3m-favicon w3m-image w3m-proc w3m-util mediawiki mm-url url-http
url-auth url-gw alert-autoloads android-mode-autoloads
asciidoc-autoloads bbdb-csv-import-autoloads bbdb-vcard-autoloads
bbdb-autoloads clippy-autoloads clojure-mode-autoloads dash-autoloads
framemove-autoloads helm-autoloads highlight-80+-autoloads
hippie-expand-slime-autoloads ido-ubiquitous-autoloads
ido-vertical-mode-autoloads jabber-autoloads jtags-autoloads
jtags-extras-autoloads magit-autoloads mediawiki-autoloads
notmuch-autoloads metaweblog-autoloads org-autoloads pcsv-autoloads
pos-tip-autoloads rhtml-mode-autoloads rinari-autoloads jump-autoloads
inflections-autoloads findr-autoloads finder-inf
ruby-compilation-autoloads inf-ruby-autoloads inf-ruby ruby-mode smie
rvm-autoloads scala-mode2-autoloads slime-autoloads twitter-autoloads
twittering-mode-autoloads w3-autoloads w3m-autoloads info
xml-rpc-autoloads yaml-mode-autoloads package tramp-cache tramp-sh tramp
tramp-compat tramp-loaddefs trampver shell recentf tree-widget pop3
ob-ditaa folding-isearch folding vm-autoloads vm-vars vm-version
smtpmail sendmail tidy compile edit-server minimap org2blog-autoloads
psgml-other sgml-mode psgml template csv-mode sort calfw-ical url
url-proxy url-privacy url-expand url-methods url-history url-cookie
url-domsuf url-util url-parse auth-source eieio eieio-core
password-cache url-vars mailcap icalendar diary-lib diary-loaddefs
calfw-org org-agenda org byte-opt bytecomp byte-compile cconv org-macro
org-footnote org-pcomplete pcomplete org-list org-faces org-entities
org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table
ob-keys ob-exp ob-comint comint ansi-color ring ob-core ob-eval
org-compat org-macs org-loaddefs find-func calfw holidays hol-loaddefs
cal-menu calendar cal-loaddefs ps-ccrypt pomodoro rvm markdown-mode
cl-macs cl gv thingatpt noutline outline easy-mmode wikipedia-mode
derived edmacro kmacro nnir gnus-sum gnus-group gnus-undo gnus-start
gnus-cloud nnimap nnmail mail-source tls utf7 netrc parse-time gnus-spec
gnus-int gnus-range message dired format-spec rfc822 mml easymenu
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems
wid-edit cl-loaddefs cl-lib nnoo nnheader gnus-util mm-util mail-prsvr
mail-utils pgg pgg-parse time-date pgg-def advice help-fns tooltip
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode prog-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 nadvice 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
cocoa ns multi-tty emacs)

Memory information:
((conses 16 418748 12573)
 (symbols 48 47014 4)
 (miscs 40 80 135)
 (strings 32 128512 14894)
 (string-bytes 1 4114666)
 (vectors 16 34186)
 (vector-slots 8 633560 2636)
 (floats 8 342 388)
 (intervals 56 339 0)
 (buffers 960 13))
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17746; Package emacs. (Tue, 10 Jun 2014 17:42:02 GMT) Full text and rfc822 format available.

Message #8 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: David Griffiths <dogriffiths <at> gmail.com>
Cc: 17746 <at> debbugs.gnu.org
Subject: Re: bug#17746: 24.4.50;
 "byte-code: `recenter'ing a window that does not
 display	current-buffer." when composing a message
Date: Tue, 10 Jun 2014 20:40:56 +0300
> From: David Griffiths <dogriffiths <at> gmail.com>
> Date: Tue, 10 Jun 2014 10:42:13 +0100
> 
> When I try to compose an email, either directly or by pressing 'm' in
> Gnus, I get the message:
> 
> `recenter'ing a window that does not display current-buffer.

Set debug-on-error to t and show us a backtrace, please.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17746; Package emacs. (Tue, 10 Jun 2014 20:41:03 GMT) Full text and rfc822 format available.

Message #11 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: David Griffiths <dogriffiths <at> gmail.com>
Cc: 17746 <at> debbugs.gnu.org
Subject: Re: bug#17746: 24.4.50;
 "byte-code: `recenter'ing a window that does not display
 current-buffer." when composing a message
Date: Tue, 10 Jun 2014 16:40:41 -0400
> This is using Emacs built from source on June 9th 2014, running on Mac
> OSX 10.9.3. The message appears to come from a change to add additional
> validation to src/window.c on June 6th with SHA:

If you're not actively working on Emacs's code, I'd appreciate if you
could use the `emacs-24' branch rather than the `trunk', so as to help
us debug the upcoming 24.4 release.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17746; Package emacs. (Wed, 11 Jun 2014 15:10:01 GMT) Full text and rfc822 format available.

Message #14 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: David Griffiths <dogriffiths <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 17746 <at> debbugs.gnu.org
Subject: Re: bug#17746: 24.4.50; "byte-code: `recenter'ing a window that does
 not display current-buffer." when composing a message
Date: Wed, 11 Jun 2014 16:09:16 +0100
[Message part 1 (text/plain, inline)]
Here’s the stack trace after setting debug-on-error true and creating a
message with compose-mail:

Debugger entered--Lisp error: (error "`recenter'ing a window that does not
display current-buffer.")
  recenter((4))
  org-overview()
  org-set-startup-visibility()
  org-mode()
  set-buffer-major-mode(#<buffer *unsent mail*<2>>)
  window-normalize-buffer-to-switch-to("*unsent mail*<2>")
  pop-to-buffer("*unsent mail*<2>" (display-buffer-same-window
(inhibit-same-window)) nil)
  pop-to-buffer-same-window("*unsent mail*<2>")
  message-pop-to-buffer("*unsent mail*<2>" nil)
  message-mail(nil nil nil nil nil nil nil nil)
  compose-mail(nil nil nil nil)
  funcall-interactively(compose-mail nil nil nil nil)
  call-interactively(compose-mail nil nil)
  command-execute(compose-mail)

I have org-mode as my default major-mode which, looking at the stack trace,
may be significant.

DG


On Tue, Jun 10, 2014 at 6:40 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: David Griffiths <dogriffiths <at> gmail.com>
> > Date: Tue, 10 Jun 2014 10:42:13 +0100
> >
> > When I try to compose an email, either directly or by pressing 'm' in
> > Gnus, I get the message:
> >
> > `recenter'ing a window that does not display current-buffer.
>
> Set debug-on-error to t and show us a backtrace, please.
>
> Thanks.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17746; Package emacs. (Wed, 11 Jun 2014 15:32:02 GMT) Full text and rfc822 format available.

Message #17 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
To: David Griffiths <dogriffiths <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 17746 <at> debbugs.gnu.org
Subject: Re: bug#17746: 24.4.50;
 "byte-code: `recenter'ing a window that does not display
 current-buffer." when composing a message
Date: Wed, 11 Jun 2014 17:33:05 +0200
David Griffiths <dogriffiths <at> gmail.com> writes:
> Debugger entered--Lisp error: (error "`recenter'ing a window that does
> not display current-buffer.")
> recenter((4))
> org-overview()

So that's a duplicate of #17724. It is fixed in org-mode (upstream) master
branch. The easy fix is to use emacs-24 branch :)

(otherwise just remove that call to recenter in org-overview).

-- 
Nico.




bug reassigned from package 'emacs' to 'emacs,org-mode'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 11 Jun 2014 15:44:01 GMT) Full text and rfc822 format available.

bug No longer marked as found in versions 24.4.50. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 11 Jun 2014 15:44:01 GMT) Full text and rfc822 format available.

Merged 17724 17746. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 11 Jun 2014 15:44:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Wed, 11 Jun 2014 15:52:02 GMT) Full text and rfc822 format available.

Message #26 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> altern.org>
To: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
Cc: 17746 <at> debbugs.gnu.org, David Griffiths <dogriffiths <at> gmail.com>
Subject: Re: bug#17746: 24.4.50; "byte-code: `recenter'ing a window that
 does not display current-buffer." when composing a message
Date: Wed, 11 Jun 2014 17:50:02 +0200
Nicolas Richard <theonewiththeevillook <at> yahoo.fr> writes:

> David Griffiths <dogriffiths <at> gmail.com> writes:
>> Debugger entered--Lisp error: (error "`recenter'ing a window that does
>> not display current-buffer.")
>> recenter((4))
>> org-overview()
>
> So that's a duplicate of #17724. It is fixed in org-mode (upstream) master
> branch. The easy fix is to use emacs-24 branch :)
>
> (otherwise just remove that call to recenter in org-overview).

PS: The change about throwing an error when recentering a window
that does not display the current buffer breaks ~37 tests in Org
master branch, even with this fix.  I need to digg this further.

-- 
 Bastien




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Wed, 11 Jun 2014 16:09:02 GMT) Full text and rfc822 format available.

Message #29 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
To: Bastien <bzg <at> altern.org>
Cc: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>, 17746 <at> debbugs.gnu.org,
 David Griffiths <dogriffiths <at> gmail.com>
Subject: Re: bug#17746: 24.4.50;
 "byte-code: `recenter'ing a window that does not display
 current-buffer." when composing a message
Date: Wed, 11 Jun 2014 18:09:44 +0200
Bastien <bzg <at> altern.org> writes:
> PS: The change about throwing an error when recentering a window
> that does not display the current buffer breaks ~37 tests in Org
> master branch, even with this fix.  I need to digg this further.

For me, fixing also org-fix-ellipsis-at-bol made all tests run as
expected.

-- 
Nico.




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Wed, 11 Jun 2014 16:27:01 GMT) Full text and rfc822 format available.

Message #32 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> altern.org>
To: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
Cc: 17746 <at> debbugs.gnu.org, David Griffiths <dogriffiths <at> gmail.com>
Subject: Re: bug#17746: 24.4.50; "byte-code: `recenter'ing a window that
 does not display current-buffer." when composing a message
Date: Wed, 11 Jun 2014 18:25:57 +0200
Nicolas Richard <theonewiththeevillook <at> yahoo.fr> writes:

> Bastien <bzg <at> altern.org> writes:
>> PS: The change about throwing an error when recentering a window
>> that does not display the current buffer breaks ~37 tests in Org
>> master branch, even with this fix.  I need to digg this further.
>
> For me, fixing also org-fix-ellipsis-at-bol made all tests run as
> expected.

What do you mean by "fixing"?  Removing it entirely?

-- 
 Bastien




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Wed, 11 Jun 2014 16:31:02 GMT) Full text and rfc822 format available.

Message #35 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Bastien <bzg <at> altern.org>
Cc: theonewiththeevillook <at> yahoo.fr, 17746 <at> debbugs.gnu.org,
 dogriffiths <at> gmail.com
Subject: Re: bug#17746: 24.4.50;
 "byte-code: `recenter'ing a window that does not
 display	current-buffer." when composing a message
Date: Wed, 11 Jun 2014 19:29:51 +0300
> From: Bastien <bzg <at> altern.org>
> Date: Wed, 11 Jun 2014 17:50:02 +0200
> Cc: 17746 <at> debbugs.gnu.org, David Griffiths <dogriffiths <at> gmail.com>
> 
> PS: The change about throwing an error when recentering a window
> that does not display the current buffer breaks ~37 tests in Org
> master branch, even with this fix.  I need to digg this further.

Say thanks to Stefan for flagging all those bugs ;-)




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Wed, 11 Jun 2014 18:16:01 GMT) Full text and rfc822 format available.

Message #38 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Bastien <bzg <at> altern.org>, dogriffiths <at> gmail.com, 17746 <at> debbugs.gnu.org,
 theonewiththeevillook <at> yahoo.fr
Subject: Re: bug#17746: 24.4.50;
 "byte-code: `recenter'ing a window that does not display	current-buffer." when
 composing a message
Date: Wed, 11 Jun 2014 14:15:08 -0400
> Say thanks to Stefan for flagging all those bugs ;-)

Now that I think about it, I should make `car' signal an error every
100th call, as well.  Would flag many bugs (with some false positives,
of course, but what's a few false positives among friends?)!


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Wed, 11 Jun 2014 18:40:03 GMT) Full text and rfc822 format available.

Message #41 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: bzg <at> altern.org, dogriffiths <at> gmail.com, 17746 <at> debbugs.gnu.org,
 theonewiththeevillook <at> yahoo.fr
Subject: Re: bug#17746: 24.4.50;
 "byte-code: `recenter'ing a window that does not
 display	current-buffer." when composing a message
Date: Wed, 11 Jun 2014 21:38:45 +0300
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: Bastien <bzg <at> altern.org>, theonewiththeevillook <at> yahoo.fr,
>  17746 <at> debbugs.gnu.org, dogriffiths <at> gmail.com
> Date: Wed, 11 Jun 2014 14:15:08 -0400
> 
> > Say thanks to Stefan for flagging all those bugs ;-)
> 
> Now that I think about it, I should make `car' signal an error every
> 100th call, as well.  Would flag many bugs (with some false positives,
> of course, but what's a few false positives among friends?)!

Not just 'car', 'cdr' as well, I'd say.




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Wed, 11 Jun 2014 19:12:01 GMT) Full text and rfc822 format available.

Message #44 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
To: Bastien <bzg <at> altern.org>
Cc: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>, 17746 <at> debbugs.gnu.org,
 David Griffiths <dogriffiths <at> gmail.com>
Subject: Re: bug#17746: 24.4.50;
 "byte-code: `recenter'ing a window that does not display
 current-buffer." when composing a message
Date: Wed, 11 Jun 2014 21:11:37 +0200
Bastien <bzg <at> altern.org> writes:

> Nicolas Richard <theonewiththeevillook <at> yahoo.fr> writes:
>
>> Bastien <bzg <at> altern.org> writes:
>>> PS: The change about throwing an error when recentering a window
>>> that does not display the current buffer breaks ~37 tests in Org
>>> master branch, even with this fix.  I need to digg this further.
>>
>> For me, fixing also org-fix-ellipsis-at-bol made all tests run as
>> expected.
>
> What do you mean by "fixing"?  Removing it entirely?

Yes, I admit, I did : (defsubst org-fix-ellipsis-at-bol () nil)
But I must have done something wrong or misread the results because now
I see some other failures. Moreover, the backtrace that I get from "make
test" seems incomplete and it's not obvious to me where the recenter
call is made.

OTOH I hope that wrapping every call to recenter in a
(when (eq (current-buffer) (window-buffer))
   (recenter ...))
would fix the tests, no ?

-- 
Nico.




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Thu, 12 Jun 2014 01:17:01 GMT) Full text and rfc822 format available.

Message #47 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Daimrod <daimrod <at> gmail.com>
To: Bastien <bzg <at> altern.org>
Cc: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>, 17746 <at> debbugs.gnu.org,
 David Griffiths <dogriffiths <at> gmail.com>
Subject: Re: [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 10:15:50 +0900
[Message part 1 (text/plain, inline)]
Bastien <bzg <at> altern.org> writes:

> Nicolas Richard <theonewiththeevillook <at> yahoo.fr> writes:
>
>> David Griffiths <dogriffiths <at> gmail.com> writes:
>>> Debugger entered--Lisp error: (error "`recenter'ing a window that does
>>> not display current-buffer.")
>>> recenter((4))
>>> org-overview()
>>
>> So that's a duplicate of #17724. It is fixed in org-mode (upstream) master
>> branch. The easy fix is to use emacs-24 branch :)
>>
>> (otherwise just remove that call to recenter in org-overview).
>
> PS: The change about throwing an error when recentering a window
> that does not display the current buffer breaks ~37 tests in Org
> master branch, even with this fix.  I need to digg this further.

Err, what's the rational behind this change?

In the meantime I've a simple fix (quickly tested for `org-agenda' which
was also broken).

[0001-Use-org-recenter-as-a-wrapper-around-recenter.patch (text/x-diff, attachment)]
[Message part 3 (text/plain, inline)]
-- 
Daimrod/Greg

Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Thu, 12 Jun 2014 02:45:03 GMT) Full text and rfc822 format available.

Message #50 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Daimrod <daimrod <at> gmail.com>
Cc: Bastien <bzg <at> altern.org>, David Griffiths <dogriffiths <at> gmail.com>,
 17746 <at> debbugs.gnu.org, Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
Subject: Re: 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: Wed, 11 Jun 2014 22:44:18 -0400
> +(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.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Thu, 12 Jun 2014 04:12:02 GMT) Full text and rfc822 format available.

Message #53 received at 17746 <at> debbugs.gnu.org (full text, mbox):

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: Re: 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




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Thu, 12 Jun 2014 08:17:03 GMT) Full text and rfc822 format available.

Message #56 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
To: Daimrod <daimrod <at> gmail.com>
Cc: Bastien <bzg <at> altern.org>, David Griffiths <dogriffiths <at> gmail.com>,
 17746 <at> debbugs.gnu.org, Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
Subject: Re: [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 10:16:20 +0200
Daimrod <daimrod <at> gmail.com> writes:
>> PS: The change about throwing an error when recentering a window
>> that does not display the current buffer breaks ~37 tests in Org
>> master branch, even with this fix.  I need to digg this further.
>
> Err, what's the rational behind this change?

It is meant to catch cases where recenter acts on the wrong window.
Think of the cases where (recenter) is called from within a timer or a
process filter function.

See the discussion entitled
> comint-preoutput-filter-functions and flickering redisplay in TTY
on emacs devel.

-- 
Nico.




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Thu, 12 Jun 2014 08:59:01 GMT) Full text and rfc822 format available.

Message #59 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Daimrod <daimrod <at> gmail.com>
To: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
Cc: Bastien <bzg <at> altern.org>, 17746 <at> debbugs.gnu.org,
 David Griffiths <dogriffiths <at> gmail.com>
Subject: Re: [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 17:58:08 +0900
Nicolas Richard <theonewiththeevillook <at> yahoo.fr> writes:

> Daimrod <daimrod <at> gmail.com> writes:
>>> PS: The change about throwing an error when recentering a window
>>> that does not display the current buffer breaks ~37 tests in Org
>>> master branch, even with this fix.  I need to digg this further.
>>
>> Err, what's the rational behind this change?
>
> It is meant to catch cases where recenter acts on the wrong window.
> Think of the cases where (recenter) is called from within a timer or a
> process filter function.
>
> See the discussion entitled
>> comint-preoutput-filter-functions and flickering redisplay in TTY
> on emacs devel.

Thanks!

-- 
Daimrod/Greg




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Thu, 12 Jun 2014 09:29:01 GMT) Full text and rfc822 format available.

Message #62 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Daimrod <daimrod <at> gmail.com>
To: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
Cc: Bastien <bzg <at> altern.org>, 17746 <at> debbugs.gnu.org,
 David Griffiths <dogriffiths <at> gmail.com>
Subject: Re: [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 18:27:51 +0900
Daimrod <daimrod <at> gmail.com> writes:

> Nicolas Richard <theonewiththeevillook <at> yahoo.fr> writes:
>
>> Daimrod <daimrod <at> gmail.com> writes:
>>>> PS: The change about throwing an error when recentering a window
>>>> that does not display the current buffer breaks ~37 tests in Org
>>>> master branch, even with this fix.  I need to digg this further.
>>>
>>> Err, what's the rational behind this change?
>>
>> It is meant to catch cases where recenter acts on the wrong window.
>> Think of the cases where (recenter) is called from within a timer or a
>> process filter function.
>>
>> See the discussion entitled
>>> comint-preoutput-filter-functions and flickering redisplay in TTY
>> on emacs devel.
>
> Thanks!

Okay, so is there another fix than `(when (eq (current-buffer)
(window-buffer)))' or removing the call?

If not, why does it raise an error instead of doing nothing silently?

Best,

-- 
Daimrod/Greg




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Thu, 12 Jun 2014 10:08:02 GMT) Full text and rfc822 format available.

Message #65 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> gnu.org>
To: Daimrod <daimrod <at> gmail.com>
Cc: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>, 17746 <at> debbugs.gnu.org,
 David Griffiths <dogriffiths <at> gmail.com>
Subject: Re: bug#17746: 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 12:06:51 +0200
I've now fixed this in the maint and master branch of Org's
repository.

Firmly waiting for warnings from the CAR and CDR random checks!

-- 
 Bastien




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Thu, 12 Jun 2014 10:13:02 GMT) Full text and rfc822 format available.

Message #68 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Daimrod <daimrod <at> gmail.com>
To: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
Cc: Bastien <bzg <at> altern.org>, 17746 <at> debbugs.gnu.org,
 David Griffiths <dogriffiths <at> gmail.com>
Subject: Re: [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 19:12:12 +0900
Daimrod <daimrod <at> gmail.com> writes:

> Daimrod <daimrod <at> gmail.com> writes:
>
>> Nicolas Richard <theonewiththeevillook <at> yahoo.fr> writes:
>>
>>> Daimrod <daimrod <at> gmail.com> writes:
>>>>> PS: The change about throwing an error when recentering a window
>>>>> that does not display the current buffer breaks ~37 tests in Org
>>>>> master branch, even with this fix.  I need to digg this further.
>>>>
>>>> Err, what's the rational behind this change?
>>>
>>> It is meant to catch cases where recenter acts on the wrong window.
>>> Think of the cases where (recenter) is called from within a timer or a
>>> process filter function.
>>>
>>> See the discussion entitled
>>>> comint-preoutput-filter-functions and flickering redisplay in TTY
>>> on emacs devel.
>>
>> Thanks!
>
> Okay, so is there another fix than `(when (eq (current-buffer)
> (window-buffer)))' or removing the call?
>
> If not, why does it raise an error instead of doing nothing silently?

I've read the fix in org-mode and I understand that it was a silly
question. Please ignore it.

Best,

-- 
Daimrod/Greg




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Thu, 12 Jun 2014 13:06:01 GMT) Full text and rfc822 format available.

Message #71 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> gnu.org>
To: Daimrod <daimrod <at> gmail.com>
Cc: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>, 17746 <at> debbugs.gnu.org,
 David Griffiths <dogriffiths <at> gmail.com>
Subject: Re: bug#17746: 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 15:04:51 +0200
Daimrod <daimrod <at> gmail.com> writes:

> I've read the fix in org-mode and I understand that it was a silly
> question. Please ignore it.

Well, the whole thread gave me the guts to dive in and to find, as
often, how tiny the challenge was -- so thanks for soft-prodding!

-- 
 Bastien




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Fri, 13 Jun 2014 12:58:00 GMT) Full text and rfc822 format available.

Message #74 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
To: Bastien <bzg <at> gnu.org>
Cc: Daimrod <daimrod <at> gmail.com>,
 Nicolas Richard <theonewiththeevillook <at> yahoo.fr>, 17746 <at> debbugs.gnu.org,
 David Griffiths <dogriffiths <at> gmail.com>
Subject: Re: bug#17746: bug#17746: 24.4.50;
 "byte-code: `recenter'ing a window that does not display
 current-buffer." when composing a message
Date: Fri, 13 Jun 2014 14:58:34 +0200
Bastien <bzg <at> gnu.org> writes:

> I've now fixed this in the maint and master branch of Org's
> repository.

Thanks for looking into it.

Perhaps this isn't the right place to ask, but I wonder how
(save-excursion (set-window-start (selected-window) (window-start)))
isn't a noop.

-- 
Nico.




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Fri, 13 Jun 2014 15:31:02 GMT) Full text and rfc822 format available.

Message #77 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> gnu.org>
To: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
Cc: Daimrod <daimrod <at> gmail.com>, 17746 <at> debbugs.gnu.org,
 David Griffiths <dogriffiths <at> gmail.com>
Subject: Re: bug#17746: bug#17746: 24.4.50; "byte-code: `recenter'ing a
 window that does not display current-buffer." when composing a message
Date: Fri, 13 Jun 2014 17:29:57 +0200
Nicolas Richard <theonewiththeevillook <at> yahoo.fr> writes:

> Perhaps this isn't the right place to ask, but I wonder how
> (save-excursion (set-window-start (selected-window) (window-start)))
> isn't a noop.

Perhaps it is a noop -- The purpose of `org-fix-ellipsis-at-bol'
is to remove the ellipsis overlay that outline-mode may leave
when navigating through folded regions.  At least this was the
purpose of the original version, and using recenter did the
job.  I'll try to reproduce the original bug, see if the new
version of `org-fix-ellipsis-at-bol' does the job and if not,
why.

-- 
 Bastien




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Sat, 14 Jun 2014 03:29:02 GMT) Full text and rfc822 format available.

Message #80 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Daimrod <daimrod <at> gmail.com>
To: Bastien <bzg <at> gnu.org>
Cc: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>, 17746 <at> debbugs.gnu.org,
 David Griffiths <dogriffiths <at> gmail.com>
Subject: Re: bug#17746: bug#17746: 24.4.50;
 "byte-code: `recenter'ing a window that does not display
 current-buffer." when composing a message
Date: Sat, 14 Jun 2014 12:28:10 +0900
Bastien <bzg <at> gnu.org> writes:

> Nicolas Richard <theonewiththeevillook <at> yahoo.fr> writes:
>
>> Perhaps this isn't the right place to ask, but I wonder how
>> (save-excursion (set-window-start (selected-window) (window-start)))
>> isn't a noop.
>
> Perhaps it is a noop -- The purpose of `org-fix-ellipsis-at-bol'
> is to remove the ellipsis overlay that outline-mode may leave
> when navigating through folded regions.  At least this was the
> purpose of the original version, and using recenter did the
> job.  I'll try to reproduce the original bug, see if the new
> version of `org-fix-ellipsis-at-bol' does the job and if not,
> why.

In `org-fix-ellipsis-at-bol', the change wasn't
: (save-excursion (set-window-start (selected-window) (window-start)))

but
: (save-excursion (set-window-start (selected-window) (point-min)))

which is not a noop.

But it does the wrong thing with isearch.

When isearch is done, that is, when it has found a match and we leave
isearch with RET for example. Then it calls `isearch-done' which runs
`org-fix-ellipsis-at-bol' because it is in `isearch-mode-end-hook' (I
didn't look to find why).

Because of this, if the pattern found isn't at the top of the buffer,
then the point won't be at the pattern, but at the top of the buffer.

Best,

--
Daimrod/Greg




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#17746; Package emacs,org-mode. (Sat, 14 Jun 2014 06:47:02 GMT) Full text and rfc822 format available.

Message #83 received at 17746 <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> altern.org>
To: Daimrod <daimrod <at> gmail.com>
Cc: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>, 17746 <at> debbugs.gnu.org,
 David Griffiths <dogriffiths <at> gmail.com>
Subject: Re: bug#17746: bug#17746: 24.4.50; "byte-code: `recenter'ing a
 window that does not display current-buffer." when composing a message
Date: Sat, 14 Jun 2014 08:46:03 +0200
Daimrod <daimrod <at> gmail.com> writes:

> In `org-fix-ellipsis-at-bol', the change wasn't
> : (save-excursion (set-window-start (selected-window) (window-start)))
>
> but
> : (save-excursion (set-window-start (selected-window) (point-min)))
>
> which is not a noop.
>
> But it does the wrong thing with isearch.

Yes, it was a silly mistake of mine.

> When isearch is done, that is, when it has found a match and we leave
> isearch with RET for example. Then it calls `isearch-done' which runs
> `org-fix-ellipsis-at-bol' because it is in `isearch-mode-end-hook' (I
> didn't look to find why).

The bug `org-fix-ellipsis-at-bol' is supposed to fix is this one:
sometimes when searching for a string and hitting RET, the beginning
of the buffer is hidden and there is a confusing "..." at the top of
the window.  With the previous version (using `recenter'), those
ellipsis were removed by recentering.  My bold and kinda superstitious
hope was that `set-window-start' would have the same effect, but I
need to double-check this.  At least we don't have the warning.

-- 
 Bastien




Merged 17724 17746 17794. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 17 Jun 2014 17:42:02 GMT) Full text and rfc822 format available.

Merged 17724 17746 17794 18401. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 03 Sep 2014 21:10:01 GMT) Full text and rfc822 format available.

Merged 17724 17746 17794 18401 18430. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 09 Sep 2014 15:47:02 GMT) Full text and rfc822 format available.

Merged 17724 17746 17794 18401 18430 18594. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 01 Oct 2014 15:53:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 17724 <at> debbugs.gnu.org and Gregor Zattler <grfz <at> gmx.de> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 03 Oct 2014 15:54:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 09 Nov 2014 12:24:04 GMT) Full text and rfc822 format available.

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.