From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andrey Kolomoets Newsgroups: gmane.emacs.bugs Subject: bug#32543: 26.1; list-matching-lines-jump-to-current breaks revert-buffer in occur-mode Date: Mon, 27 Aug 2018 14:49:41 +0300 Message-ID: <84223559-4256-4BC9-A603-4D6C11A8EF06@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1535381418 3279 195.159.176.226 (27 Aug 2018 14:50:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Aug 2018 14:50:18 +0000 (UTC) To: 32543@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 27 16:50:14 2018 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 1fuIqM-0000jq-6C for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Aug 2018 16:50:14 +0200 Original-Received: from localhost ([::1]:53613 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuIsS-0006we-BF for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Aug 2018 10:52:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuIsG-0006vk-0Y for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2018 10:52:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fuIs9-0008Kn-Ah for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2018 10:52:10 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57616) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fuIs7-0008Jq-K5 for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2018 10:52:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fuIs7-0006wn-IA for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2018 10:52:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrey Kolomoets Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Aug 2018 14:52:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32543 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.153538147826618 (code B ref -1); Mon, 27 Aug 2018 14:52:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Aug 2018 14:51:18 +0000 Original-Received: from localhost ([127.0.0.1]:34397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fuIrN-0006vB-PM for submit@debbugs.gnu.org; Mon, 27 Aug 2018 10:51:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fuG1s-0000OD-A6 for submit@debbugs.gnu.org; Mon, 27 Aug 2018 07:49:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fuG1m-00088a-FZ for submit@debbugs.gnu.org; Mon, 27 Aug 2018 07:49:51 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43850) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fuG1m-00087h-B9 for submit@debbugs.gnu.org; Mon, 27 Aug 2018 07:49:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuG1l-0002Ch-GI for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2018 07:49:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fuG1h-0007xp-GC for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2018 07:49:49 -0400 Original-Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]:38865) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fuG1h-0007uy-6S for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2018 07:49:45 -0400 Original-Received: by mail-lf1-x12f.google.com with SMTP id i7-v6so11688421lfh.5 for ; Mon, 27 Aug 2018 04:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=kS3Ievau/VVa72y9ZNwNHxPKmicfHi6vpYdMO1y9gjk=; b=bCNmFQnjCZGr8p+lj1jENT5W7T0CSNrJENPhj7xDZk6GmLj7VcbvZrGn0biuH/aX3X VwrYiCwSzHpkVbQzV+fXd3lY3mkT8c3VTv/T5SuWvFI4d0+zBCJDAhnI/BB/ncGkg8r0 lzzgi1wIdlbhxVBbFO00w1oKMPuTY5H9yHeVtDnJ8QRflkmcbKvpI4xIjbsl4la5HcF0 4dQxz9GBHiciHSn5+P+0iNlDZQurLbAhJJfOxPXphWXF/jXQp6YAXGl8Oeh+qTdXlvai jJQbLSicBITjgJpWEeZ7bhGZX8vu3+kTuV96eckdqBjrZJ30pVGN1fM6ImJ2dfAyQdOQ B4AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=kS3Ievau/VVa72y9ZNwNHxPKmicfHi6vpYdMO1y9gjk=; b=tAV43cmoaUkB9auo6b36vbVOb5DZmSRbq3DbI9VdbnF6qpOljlfRSgyJe8XTEWz2Sb DrgLR+EpZkcz8ywgwFehbB4zlisaVQnIhFYUJQBFaMAr8gkdhLxBfIKFy9YNGmTk2jSt KpWRV8nG5gSdbE996t/DrZQdLBiS9j3UwZoTVWWB9Ska7p49tcJ05HG5iiJqkSRG8D0l 5ljn9r8vCyciYi4T4v2c0GG1+Wrrq5+0y/zf/C/RpSG+Gf7gmpVWpufDVw4MPQ6ut/KM 3/rTr2329/Ar45uPfsMw57ljXPZnuRoncd8l3iA30UyMGqwGLda9jbmfSOU86us8eNuM El+g== X-Gm-Message-State: APzg51BtyN+968U97UZrGAX6Iu+Taxu6Nt9GI8OILhcO6vazEbtQf8lt +cGarN3+eVmzhk1FAsMcDrPLxNmw X-Google-Smtp-Source: ANB0VdbRdZH5UFETzUZQiaxoQyoGzsLkUTaFDkDFNOPjsqOsANTlO44nr06uOj+cK/oU4Zh3ZInC4g== X-Received: by 2002:a19:d204:: with SMTP id j4-v6mr7844917lfg.139.1535370583413; Mon, 27 Aug 2018 04:49:43 -0700 (PDT) Original-Received: from [10.1.1.179] (188-42-207-82.ip.ukrtel.net. [82.207.42.188]) by smtp.gmail.com with ESMTPSA id t14-v6sm2441074ljg.17.2018.08.27.04.49.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 04:49:42 -0700 (PDT) X-Mailer: Apple Mail (2.3445.9.1) 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-Mailman-Approved-At: Mon, 27 Aug 2018 10:51:13 -0400 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:149765 Archived-At: 0. emacs -Q 1. M-: (setq list-matching-lines-jump-to-current-line t) 2. M-s o text 3. C-x o 4. g (wrong-type-argument number-or-marker-p nil) occur-engine("text" (#) # 0 t = underline shadow match t) occur-1("text" nil (#) "*Occur*") apply(occur-1 ("text" nil (#) "*Occur*")) occur-revert-function(t nil) revert-buffer(t) funcall-interactively(revert-buffer t) call-interactively(revert-buffer nil nil) command-execute(revert-buffer) I think it's because occur--orig-line not initialized in = occur-revert-function and it fails on (when (and list-matching-lines-jump-to-current-line (null orig-line-shown-p) (> curr-line orig-line)) In GNU Emacs 26.1 and still in 27.0.50