From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jonathan Kotta Newsgroups: gmane.emacs.bugs Subject: bug#27362: next-error-recenter doesn't work with occur Date: Wed, 14 Jun 2017 12:28:30 -0500 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403043c3990dd7b1a0551eee3b3" X-Trace: blaine.gmane.org 1497461420 27650 195.159.176.226 (14 Jun 2017 17:30:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Jun 2017 17:30:20 +0000 (UTC) To: 27362@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 14 19:30:14 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLC7R-0006fk-Gl for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Jun 2017 19:30:13 +0200 Original-Received: from localhost ([::1]:50210 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLC7T-0008VQ-KC for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Jun 2017 13:30:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLC7I-0008UA-TV for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 13:30:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLC7H-0003zS-Iv for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 13:30:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45273) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLC7H-0003zI-Ei for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 13:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dLC7H-00052c-5d for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 13:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jonathan Kotta Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Jun 2017 17:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27362 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.149746136919311 (code B ref -1); Wed, 14 Jun 2017 17:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jun 2017 17:29:29 +0000 Original-Received: from localhost ([127.0.0.1]:47950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLC6j-00051P-Cc for submit@debbugs.gnu.org; Wed, 14 Jun 2017 13:29:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLC6h-00051B-0g for submit@debbugs.gnu.org; Wed, 14 Jun 2017 13:29:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLC6W-0003jH-GH for submit@debbugs.gnu.org; Wed, 14 Jun 2017 13:29:21 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57796) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dLC6W-0003jD-CM for submit@debbugs.gnu.org; Wed, 14 Jun 2017 13:29:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLC6U-0008Ku-IM for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 13:29:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLC6T-0003i0-2S for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 13:29:14 -0400 Original-Received: from mail-ua0-x230.google.com ([2607:f8b0:400c:c08::230]:35315) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLC6S-0003hC-T5 for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 13:29:12 -0400 Original-Received: by mail-ua0-x230.google.com with SMTP id q15so5149015uaa.2 for ; Wed, 14 Jun 2017 10:29:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=zQkO5waFthUCK2fal6JeOoZ946rHXbhj1eBeO8yv/fg=; b=pFeaTMCb6GRhETEG2s6pYzFgBfLaMV26gPATOt+ljtkTvT6XVcy2RtEYhkhqfXMM/F HF85OvJNXxb2B/aX4u6U3WmwZNVqkdx6f5RC5W4S4JUVBdeyxao/xDVUARSAEuOSPlG4 69AQo1eKYlTOkRjhnVEzh3d5aeV3vpz1swwEEJhHBlDw9h9ezSIrRN9cAUB09q/fetN+ sPLIqIOjTTaXPS/pDsX/4XxxcFJagWbpDS4v9ZXNGPvvqVduHsqC31wn+rjG1i+urvz7 JB5OGXQd0kXSMU0ifOyTJcSEBf6y4ZTFH55tl4HMlxJp3UXGNkzohco8d9m5eroKh2HO eWUg== 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; bh=zQkO5waFthUCK2fal6JeOoZ946rHXbhj1eBeO8yv/fg=; b=obwBjRHOw6zDjRY9I6tQt/W8lXetAzYtk5EFtcRP59PSemr0Cc7R4UFcYYHwJd4BE2 aPH6F44DLH5qGJJ9WDG4zHllvE5ZNdZpaMUhH75BqXKy9/puzv/CDMlINBHfn0re43VE jU0yRoGegBG+we7kgAgsfM3T9EC7jNOkP+7c9ExM1tY6gOdzLjk+NgvcfgrVV2ZCGWF+ TdI0qEMGKC+FWOlCIk18mgKIU10iXmssGE1nRQ5JOLjJtpErt43StjGPlGEcGGqpPUFs KKH7aatBinZzH1m8cly3J+LtFzi9p2GbFHvizTNVUi3MfwYMoe4nTsi71CNBwpYCndqA jN7Q== X-Gm-Message-State: AKS2vOwlu/WwxktCVWmuCHKB+8m6doUKr1KCFX0qAG4YmRufNISw+Dop UaVrq1BSuX1vP2SaaL0fugJ9kAqplMx9buo= X-Received: by 10.176.79.32 with SMTP id n32mr758869uah.101.1497461350560; Wed, 14 Jun 2017 10:29:10 -0700 (PDT) Original-Received: by 10.103.25.129 with HTTP; Wed, 14 Jun 2017 10:28:30 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:133585 Archived-At: --f403043c3990dd7b1a0551eee3b3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable (setq next-error-recenter '(4)) (occur "setq") (next-error) There's an error message "next-error: =E2=80=98recenter=E2=80=99ing a windo= w that does not display current-buffer." I assume this has something to do with how occur-next-error sets things up, or maybe there needs to be a workaround in next-error itself. next-error-recenter works with e.g. rgrep without this error. In GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars= ) of 2017-05-18 built on ubuntu Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.2 LTS Configured using: 'configure --with-x-toolkit=3Dlucid --with-xft --without-gconf --without-gsettings' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-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 messages: For information about GNU Emacs and the GNU system, type C-h C-a. (4) Searched 1 buffer; 1 match for "setq" You can run the command =E2=80=98occur=E2=80=99 with M-s o Searched 1 buffer; 1 match for "setq" next-error: =E2=80=98recenter=E2=80=99ing a window that does not display cu= rrent-buffer. Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils thingatpt time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded 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 dbusbind inotify dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 87216 8325) (symbols 48 19795 0) (miscs 40 60 160) (strings 32 15235 4295) (string-bytes 1 424814) (vectors 16 11820) (vector-slots 8 431403 4370) (floats 8 170 191) (intervals 56 233 24) (buffers 976 19) (heap 1024 38863 754)) --=20 Thanks, Jonathan Kotta Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law. --f403043c3990dd7b1a0551eee3b3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
(setq next-error-recenter '(4))
(o= ccur "setq")
(next-error)

Ther= e's an error message "next-error: =E2=80=98recenter=E2=80=99ing a = window that does not display current-buffer."

I assume this has something to do with how occur-next-error sets things
up, or maybe there needs to be a workaround in next-error itself.
next-error-recenter works with e.g. rgrep without this error.


In GNU Emacs 25.2.1 (x86_64-unknown-lin= ux-gnu, X toolkit, Xaw3d scroll bars)
=C2=A0of 2017-05-18 built o= n ubuntu
Windowing system distributor 'The X.Org Foundation&#= 39;, version 11.0.11804000
System Description: Ubuntu 16.04.2 LTS

Configured using:
=C2=A0'configure --wit= h-x-toolkit=3Dlucid --with-xft --without-gconf
=C2=A0--without-gs= ettings'

Configured features:
XAW3D = XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS NOTIFY ACL
= LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLK= IT_SCROLL_BARS LUCID X11

Important settings:
=
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 value of $XMODIFIE= RS: @im=3Dibus
=C2=A0 locale-coding-system: utf-8-unix
=
Major mode: Lisp Interaction

Minor = modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-e= ldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mous= e-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar= -mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-= font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink= -cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 = auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Recent messages:
For information about GNU Emac= s and the GNU system, type C-h C-a.
(4)
Searched 1 buff= er; 1 match for "setq"
You can run the command =E2=80= =98occur=E2=80=99 with M-s o
Searched 1 buffer; 1 match for "= ;setq"
next-error: =E2=80=98recenter=E2=80=99ing a window th= at does not display current-buffer.

Load-path shad= ows:
None found.

Features:
(sh= adow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
<= div>mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu
cl-loaddefs pcase cl-lib mail-prsvr mail-utils thingatpt time-date
mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fonts= et
image regexp-opt fringe tabulated-list newcomment elisp-mode l= isp-mode
prog-mode register page menu-bar rfn-eshadow timer selec= t scroll-bar
mouse jit-lock font-lock syntax facemenu font-core f= rame cl-generic cham
georgian utf-8-lang misc-lang vietnamese tib= etan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew gr= eek romanian slovak czech
european ethiopic indian cyrillic chine= se charscript case-table epa-hook
jka-cmpr-hook help simple abbre= v minibuffer cl-preloaded 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= dbusbind inotify dynamic-setting
font-render-setting x-toolkit x= multi-tty make-network-process emacs)

Memory info= rmation:
((conses 16 87216 8325)
=C2=A0(symbols 48 1979= 5 0)
=C2=A0(miscs 40 60 160)
=C2=A0(strings 32 15235 42= 95)
=C2=A0(string-bytes 1 424814)
=C2=A0(vectors 16 118= 20)
=C2=A0(vector-slots 8 431403 4370)
=C2=A0(floats 8 = 170 191)
=C2=A0(intervals 56 233 24)
=C2=A0(buffers 976= 19)
=C2=A0(heap 1024 38863 754))

--
Thanks,

Jonathan K= otta

Hofstadter's Law:
=C2=A0 =C2=A0 It always takes longer t= han you expect, even
=C2=A0 =C2=A0 when you take into account Hofstadter= 's Law.
--f403043c3990dd7b1a0551eee3b3--