From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#34506: 27.0.50: push-button bug with basic text-property button Date: Mon, 18 Feb 2019 20:51:12 +0000 Message-ID: <875ztgrfb3.fsf@tcd.ie> References: <83pnrql9p0.fsf@gnu.org> <831s45ksiz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="247151"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: rswgnu@gmail.com, 34506@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 18 21:52:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvptd-00127T-Uf for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Feb 2019 21:52:14 +0100 Original-Received: from localhost ([127.0.0.1]:36508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvptc-0003TH-SZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Feb 2019 15:52:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvptU-0003TA-Dz for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2019 15:52:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvptT-0002VM-Li for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2019 15:52:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53976) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gvptR-0002Uw-Ua for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2019 15:52:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gvptR-0006R9-Rf for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2019 15:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Feb 2019 20:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34506 X-GNU-PR-Package: emacs Original-Received: via spool by 34506-submit@debbugs.gnu.org id=B34506.155052308324656 (code B ref 34506); Mon, 18 Feb 2019 20:52:01 +0000 Original-Received: (at 34506) by debbugs.gnu.org; 18 Feb 2019 20:51:23 +0000 Original-Received: from localhost ([127.0.0.1]:53257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvpso-0006Pc-Ob for submit@debbugs.gnu.org; Mon, 18 Feb 2019 15:51:22 -0500 Original-Received: from mail-ed1-f46.google.com ([209.85.208.46]:36444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvpsm-0006PE-Mo for 34506@debbugs.gnu.org; Mon, 18 Feb 2019 15:51:21 -0500 Original-Received: by mail-ed1-f46.google.com with SMTP id g9so4412101eds.3 for <34506@debbugs.gnu.org>; Mon, 18 Feb 2019 12:51:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=vd06Kp/OfJKotbKMjE6AE/bwJar4/B5C7dSG5NgL/hs=; b=KYGwff/w1uM6m0eWm417j1Es5le9v7y8tw3T2Rq7p0oSiEilQnqvQY5IQT5PMvqDx6 cDv2VDa8siRQRo0oTgcHOeglMeLWlHOVcFcvc123sekh1DKzidxHVaR/u/aCQupHt9vu xl/7nlPIObsdDLY27yJroICzvZCKtsmMuZj5ijXdgyDsaF86YWt+kh0VUftNNTn+afud qeHVFVpRcfaaxKRhEIEsgOYN7U8UJXZ1TihhOCLSs8NwZ8qJCFG3twC4oo64OftjkL/I dEF5FyPJwEBeHJ23+LEO/dl/OmglfX1e0SQ3q1zNANpjSU0x7PxgguSGuTauhvXturMn GJRw== 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=vd06Kp/OfJKotbKMjE6AE/bwJar4/B5C7dSG5NgL/hs=; b=lnzV5SAsvSewCv4QjBzSA8PD2NMksvYnjzoHG17b1V77W39KhSzSGVu5QGIjsnUwSC /1gPupuBQu/JRax82l5UVKpGdwoZL+YmV4139fBNsRgwmov0Ii+lMk0K0jG5YNIkUx05 hVpHfVdZsEcEbQhHuBauSb80nSEFvSZqXgWxl4SKYcmFHpRxJqCmsQTl/aiMAm501wq5 2VKo58BENL3xWVpuUDF+QIHgpGRfFJxllWZFPO2pG/JBLwcq2LS0LKO8CLL2NdIdZtBv UXB8WEP8liY5sl+3tO9r2pMT+S6vOOVR75gvU8A+ZVpPZM6e6A1/YH0jIswsTlMBcFtd bP+g== X-Gm-Message-State: AHQUAuZsFfiLa+TAl+0qyybQ7jpzbCbdklrkKKeP7sorvPvDB+ns+QnI WekUeGsAiE3F9baLSPy3hYVpMQ== X-Google-Smtp-Source: AHgI3IbJtBC1LqvQ+7QRIDUX3KjU+dRsaQfkRBTXSDa8IeYH4DTmTarv9JJIGPN5RNll1lLQyD4VVw== X-Received: by 2002:a50:ed81:: with SMTP id h1mr13826527edr.145.1550523074839; Mon, 18 Feb 2019 12:51:14 -0800 (PST) Original-Received: from localhost ([2a02:8084:20e2:c380:f786:805d:f4ab:1006]) by smtp.gmail.com with ESMTPSA id j46sm2961914ede.6.2019.02.18.12.51.13 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 18 Feb 2019 12:51:14 -0800 (PST) In-Reply-To: <831s45ksiz.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 18 Feb 2019 17:47:32 +0200") 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: 209.51.188.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:155514 Archived-At: Eli Zaretskii writes: >> From: Robert Weiner >> Date: Sun, 17 Feb 2019 18:46:09 -0500 >> Cc: 34506@debbugs.gnu.org >> >> And what about (button-type (button-at (point))) returning >> nil when button-at returns non-nil. Both of these functions >> operate on push-buttons as the button.el code reflects, right? >> If so, then that should be a bug. If not, then it could use >> some explanation. > > button-type requires a button as an argument, whereas button-at is > documented to return a marker for text-buttons. So you cannot safely > invoke button-type if the button at point might be of the text-button > type. Buffer positions, markers, and overlays all qualify as "buttons", so button-type works with both text- and overlay-buttons (but not widgets). So I'm guessing what you meant is "you cannot safely invoke button-type if the button at point might be a widget rather than a button". -- Basil