From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#17324: 24.3.90; (wrong-type-argument number-or-marker-p nil) in redisplay--update-region-highlight Date: Wed, 23 Apr 2014 08:54:18 -0400 Message-ID: References: <87fvl49sib.fsf@geodiff-mac3.ulb.ac.be> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398257733 16060 80.91.229.3 (23 Apr 2014 12:55:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2014 12:55:33 +0000 (UTC) Cc: 17324-done@debbugs.gnu.org To: Nicolas Richard Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 23 14:55:26 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wcwhx-0004B6-AQ for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Apr 2014 14:55:25 +0200 Original-Received: from localhost ([::1]:60756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcwhw-0005n5-TR for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Apr 2014 08:55:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcwhn-0005io-1W for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 08:55:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wcwhe-0004DV-2t for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 08:55:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcwhe-0004Ch-0Y for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 08:55:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wcwhd-0003Tv-A2 for bug-gnu-emacs@gnu.org; Wed, 23 Apr 2014 08:55:05 -0400 Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Apr 2014 12:55:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 17324 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 17324@debbugs.gnu.org, monnier@IRO.UMontreal.CA, theonewiththeevillook@yahoo.fr Original-Received: via spool by 17324-done@debbugs.gnu.org id=D17324.139825766513290 (code D ref 17324); Wed, 23 Apr 2014 12:55:03 +0000 Original-Received: (at 17324-done) by debbugs.gnu.org; 23 Apr 2014 12:54:25 +0000 Original-Received: from localhost ([127.0.0.1]:55760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wcwgy-0003SH-BM for submit@debbugs.gnu.org; Wed, 23 Apr 2014 08:54:24 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:44344) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wcwgu-0003S1-Pw for 17324-done@debbugs.gnu.org; Wed, 23 Apr 2014 08:54:21 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s3NCsITr022667; Wed, 23 Apr 2014 08:54:19 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 735776014C; Wed, 23 Apr 2014 08:54:18 -0400 (EDT) In-Reply-To: <87fvl49sib.fsf@geodiff-mac3.ulb.ac.be> (Nicolas Richard's message of "Wed, 23 Apr 2014 13:54:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4920=0 X-NAI-Spam-Version: 2.3.0.9378 : core <4920> : inlines <760> : streams <1165385> : uri <1738504> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:88245 Archived-At: > I got the following error (but I can't reproduce it in a fresh session) : > Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) > min(2623 nil) [...] > redisplay--update-region-highlight(#) I've been tracking down this problem for a while now, but can't seem to find its source. So I installed the patch below to work around it for now. Stefan --- lisp/simple.el 2014-04-12 19:20:44 +0000 +++ lisp/simple.el 2014-04-23 12:50:59 +0000 @@ -4495,7 +4495,12 @@ mode is enabled. Usually, such commands should use `use-region-p' instead of this function, because `use-region-p' also checks the value of `use-empty-active-region'." - (and transient-mark-mode mark-active)) + (and transient-mark-mode mark-active + ;; FIXME: Somehow we sometimes end up with mark-active non-nil but + ;; without the mark being set (e.g. bug#17324). We really should fix + ;; that problem, but in the mean time, let's make sure we don't say the + ;; region is active when there's no mark. + (mark))) (defvar redisplay-unhighlight-region-function