From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.bugs Subject: bug#28658: 27.0.50; [PATCH] double/triple clicking in xterm-mouse-mode doesn't respect mouse position Date: Thu, 05 Oct 2017 18:03:31 -0600 Message-ID: <877ew9xhv0.fsf@gmail.com> References: <87r2unyh79.fsf@gmail.com> <87zi9bwmet.fsf@gmail.com> <83y3opx3xe.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1507248260 24617 195.159.176.226 (6 Oct 2017 00:04:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2017 00:04:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 28658@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 06 02:04:07 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 1e0G7a-0004e0-SW for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Oct 2017 02:04:07 +0200 Original-Received: from localhost ([::1]:42440 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0G7g-0003Hp-GD for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Oct 2017 20:04:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0G7a-0003Hj-31 for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2017 20:04:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0G7W-0004md-WD for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2017 20:04:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43271) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0G7W-0004mN-SC for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2017 20:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e0G7W-0005XW-DD for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2017 20:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Oct 2017 00:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 28658-submit@debbugs.gnu.org id=B28658.150724822221266 (code B ref 28658); Fri, 06 Oct 2017 00:04:02 +0000 Original-Received: (at 28658) by debbugs.gnu.org; 6 Oct 2017 00:03:42 +0000 Original-Received: from localhost ([127.0.0.1]:51952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0G7B-0005Wv-Lj for submit@debbugs.gnu.org; Thu, 05 Oct 2017 20:03:41 -0400 Original-Received: from mail-it0-f52.google.com ([209.85.214.52]:51924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0G7A-0005Wj-Bi for 28658@debbugs.gnu.org; Thu, 05 Oct 2017 20:03:40 -0400 Original-Received: by mail-it0-f52.google.com with SMTP id w1so3331498itd.0 for <28658@debbugs.gnu.org>; Thu, 05 Oct 2017 17:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=vZtMuhPmmj6Wo3iHlN6rHJ4euVmKhW0jdqx5TX1xWRc=; b=jBGX/PH9Vm/k4GMb4bt/hW0KL8GEHCT5+SS2pd63cCZYnLsD2g8pIMzDzXMhhyqNdb CVvcuERgMna64O9b2+ReQC7YlqJAxSxIgQrhmy+UfqOnHACAzEkfabNeI0tX3ngD6wmV B76luSVWpOtyhW0j8axvJfNGeWI5ftN3F78dOR+5Q+BZgsEVvlyvJb6AW46wJG8aK4xG BBQyEBp1duQdMXGn96tUSfXhUPAsl6g5uDuPp5FDFI52FbTvXJ9KPRg9ALh84NMJK1Ss B6oL3v31UPIeiTPLzlCZbXq/lRBoGufvYyW+qGQZeV1t3nyOHB+bdOsaqMFv3QCsxown ciPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=vZtMuhPmmj6Wo3iHlN6rHJ4euVmKhW0jdqx5TX1xWRc=; b=Rx8tFKea0EDGez/yT2WvhrNBMVEunOLsLcNdKFLfJXYiT0UM1M25lOWkddFd5kcgo1 pUrTVGTuR+qh+Cl+d15K/T7JAnQa9Mylkgkx6JQI4QaCbukg1cYn465MIGDx2WjBvn7r EqF+aK5pjcYa5aBQthY2TVpDbvYRuzs5grQT+hpH37BERLX6cmjssBlI8w0GNRBB+WAw crljKYgam7W+SScYBpY4yF/rZmU4+3eeSAK3gnx2uAeLnZ9x2uleiFk34QsfgnfptRVX 8OXKxa63b674JBuP9AqvcHFa0s4XNgrTAHmd7lYsnO7hJQaJ1Czf0YpsD7T4Dw4mke17 FQnQ== X-Gm-Message-State: AMCzsaXT1ZXb7v5yN8R+a43ExCXxf1gKb47Oinev5yrVFY1Zs83hiGa9 DW0May2DpJsoB6/zXHCzI3jEYw== X-Google-Smtp-Source: AOwi7QCXg4OejsIPNSNhZYN4fmwmmZ+uqKrudMLpKHHQxh3UCY5OJRz0sjhe4rNKRJp3ZfalfCBwUQ== X-Received: by 10.36.87.83 with SMTP id u80mr299953ita.41.1507248214516; Thu, 05 Oct 2017 17:03:34 -0700 (PDT) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id o192sm247595itc.27.2017.10.05.17.03.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Oct 2017 17:03:33 -0700 (PDT) In-Reply-To: <83y3opx3xe.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 05 Oct 2017 13:52:13 +0300") 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:137991 Archived-At: Eli Zaretskii writes: >> P.S. Why is the error prefixed by `xterm-mouse-translate-1' instead of >> `xterm-mouse-event'? > > Can you show the full backtrace? Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) xterm-mouse-event(1006) xterm-mouse-translate-1(1006) xterm-mouse-translate-extended(nil) So the backtrace acknowledges xterm-mouse-event is the culprit, but without `debug-on-error' set the error message blames xterm-mouse-translate-1. If I don't use the bytecode versions of the procedures, though, then the error message becomes: setq: Wrong type argument: number-or-marker-p, nil which is better, but I believe it should message: 1+: Wrong type argument: number-or-marker-p, nil Which is what the debugger shows if I don't use the bytecode versions: Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) 1+(nil) (setq click-count (1+ click-count)) ... xterm-mouse-event(1006) (let* ((event (xterm-mouse-event extension)) (ev-command (nth 0 event)) (ev-data (nth 1 event)) (ev-where (nth 1 ev-$ (save-excursion (let* ((event (xterm-mouse-event extension)) (ev-command (nth 0 event)) (ev-data (nth 1 event)) (ev-$ xterm-mouse-translate-1(1006) xterm-mouse-translate-extended(nil)