From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Vitalie Spinu Newsgroups: gmane.emacs.bugs Subject: bug#28039: 26.0.50; Ses copy-region-as-kill advice assumes non-nil beg end arguments Date: Thu, 10 Aug 2017 18:42:37 +0200 Message-ID: <87r2wjl6gy.fsf@galago> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1502383399 15569 195.159.176.226 (10 Aug 2017 16:43:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 Aug 2017 16:43:19 +0000 (UTC) To: 28039@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 10 18:43: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 1dfqY9-0003Se-KY for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Aug 2017 18:43:09 +0200 Original-Received: from localhost ([::1]:54194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfqYF-0003Us-M2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Aug 2017 12:43:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfqY7-0003TY-Oy for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2017 12:43:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfqY2-0000tL-Tx for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2017 12:43:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46025) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dfqY2-0000tF-QI for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2017 12:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dfqY2-0006GI-JJ for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2017 12:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vitalie Spinu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Aug 2017 16:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28039 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.150238337724057 (code B ref -1); Thu, 10 Aug 2017 16:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Aug 2017 16:42:57 +0000 Original-Received: from localhost ([127.0.0.1]:54706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfqXx-0006Fx-50 for submit@debbugs.gnu.org; Thu, 10 Aug 2017 12:42:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42579) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfqXv-0006Fi-Sg for submit@debbugs.gnu.org; Thu, 10 Aug 2017 12:42:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfqXp-0000pS-LL for submit@debbugs.gnu.org; Thu, 10 Aug 2017 12:42:50 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53300) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dfqXp-0000pO-IQ for submit@debbugs.gnu.org; Thu, 10 Aug 2017 12:42:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfqXn-0003I1-TO for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2017 12:42:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfqXj-0000mu-1z for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2017 12:42:47 -0400 Original-Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:37387) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dfqXi-0000k7-Re for bug-gnu-emacs@gnu.org; Thu, 10 Aug 2017 12:42:42 -0400 Original-Received: by mail-wm0-x236.google.com with SMTP id i66so27431934wmg.0 for ; Thu, 10 Aug 2017 09:42:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=p6lTJPTqCNWazO3FUrp3N2x//Z6Tjy/gl73wvnr7pTE=; b=Er3pMDROKgFf/qf1ZDs44scHNFY78gbpYQ/ZtoI6a2ZAKaCERzVjxX8K3L85APGgeu ZL2RlxRiliPUEpT8qqDthcAunmHQDP570itPJyuHFOe73M7cu9nFk4HBzp5mEGuDG+sU UEcp2o3YukuTxmlwQ6Ofu1XygNxcU7ZcVvi6k8MdpYNTHxivurNDcl5S4zvqIWYys1gG 8jvbGy9aoqhbwdAGwaIakG9kVavkSygh3jfvYz6Dt7DIKx99KVcmWgDbtc60nNG0xRCO alf1y7L7aGqvhe5oTa64AzwyugAbdjlTfg9m/usNqwDlFV+bfW8gaci9Y7+XdKZmsh9O kg1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=p6lTJPTqCNWazO3FUrp3N2x//Z6Tjy/gl73wvnr7pTE=; b=NvyBnuMAqQfGsHEjodoQFBH2wVw9XfN4KU4i8Do/fWOESo7AUIp0WDw0RUxzGybvfZ yl1FgwW0YMUflrvp8FmLotYKsU7QjszSwHFirUdr9jIiNFrKzlsb3DWLZwBmhdP/jm4O lPPOWLyfEXb1T1mgbCDlJRdMyUa2J3uyub3XafiQatCXnC9MFZVQbaInuZVnspESnodF WqyArbyFEpNXRriBt+9xc1soB/GvSIbf5AHi1UdW32oYIJQBJ7nIEd2hri3ULnzbb0GD ngll3b6SPpNBH80elX3CPo89F3RHrfWu79vNBq8Jz7N/9deQXXSG1UyqNe9eL1iLc8DU SFaQ== X-Gm-Message-State: AHYfb5hcbBMHuEANjaQG9B3h2QW0iRwhRlKZHxgqzLehZAjV6xC9kBos OaIJ4dMRtkOEygIwYSk= X-Received: by 10.80.163.135 with SMTP id s7mr12641449edb.18.1502383358983; Thu, 10 Aug 2017 09:42:38 -0700 (PDT) Original-Received: from localhost ([143.176.214.220]) by smtp.gmail.com with ESMTPSA id b10sm3265133edl.74.2017.08.10.09.42.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Aug 2017 09:42:38 -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:135625 Archived-At: Hi, Once ses is loaded I am getting the following error on kill in magit buffers: Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) ses--advice-copy-region-as-kill(#[770 "\ apply(ses--advice-copy-region-as-kill #[770 copy-region-as-kill(nil nil region) magit-copy-buffer-revision() funcall-interactively(magit-copy-buffer-revision) #(magit-copy-buffer-revision nil nil) apply(# magit-copy-buffer-revision (nil nil)) call-interactively@ido-cr+-record-current-command(# magit-copy-buffer-revision nil nil) apply(call-interactively@ido-cr+-record-current-command # (magit-copy-buffer-revision nil nil)) call-interactively(magit-copy-buffer-revision nil nil) command-execute(magit-copy-buffer-revision) Magit calls (copy-region-as-kill nil nil 'region). According to the doc first two args should be ignored when 'region is passed. So I would assume it's the bug in `ses--advice-copy-region-as-kill` then. Thanks, Vitalie In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-06-28 built on galago Repository revision: 5d45ba1a05bccc53d52422e867f378a0adeb8970 Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.2 LTS