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#12817: 24.2; The button library does not work on the header line Date: Thu, 06 Dec 2012 15:11:30 -0500 Message-ID: References: <877gpyllag.fsf@luz3.i-did-not-set--mail-host-address--so-tickle-me> <87ehj4mdxo.fsf@bernoul.li> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1354824721 594 80.91.229.3 (6 Dec 2012 20:12:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Dec 2012 20:12:01 +0000 (UTC) Cc: 12817-done@debbugs.gnu.org, Damien Cassou To: Jonas Bernoulli Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 06 21:12:12 2012 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 1Tghnj-0006M2-8R for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Dec 2012 21:12:07 +0100 Original-Received: from localhost ([::1]:37912 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TghnX-0004SM-4e for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Dec 2012 15:11:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TghnU-0004Rc-3q for bug-gnu-emacs@gnu.org; Thu, 06 Dec 2012 15:11:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TghnP-0005OY-OU for bug-gnu-emacs@gnu.org; Thu, 06 Dec 2012 15:11:52 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TghnP-0005OO-LH for bug-gnu-emacs@gnu.org; Thu, 06 Dec 2012 15:11:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tghnd-0008V4-Vc for bug-gnu-emacs@gnu.org; Thu, 06 Dec 2012 15:12:01 -0500 Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Dec 2012 20:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 12817 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 12817@debbugs.gnu.org, monnier@iro.umontreal.ca, damien.cassou@gmail.com Original-Received: via spool by 12817-done@debbugs.gnu.org id=D12817.135482470832649 (code D ref 12817); Thu, 06 Dec 2012 20:12:01 +0000 Original-Received: (at 12817-done) by debbugs.gnu.org; 6 Dec 2012 20:11:48 +0000 Original-Received: from localhost ([127.0.0.1]:57233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TghnQ-0008UY-3L for submit@debbugs.gnu.org; Thu, 06 Dec 2012 15:11:48 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:43956) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TghnO-0008UR-GC for 12817-done@debbugs.gnu.org; Thu, 06 Dec 2012 15:11:46 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09soXOY/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNBIUGA0kiBwFugmQRAOIQppxgViDBw X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="209242190" Original-Received: from 108-161-115-152.dsl.teksavvy.com (HELO pastel.home) ([108.161.115.152]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 06 Dec 2012 15:11:30 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 5833758F5C; Thu, 6 Dec 2012 15:11:30 -0500 (EST) In-Reply-To: <87ehj4mdxo.fsf@bernoul.li> (Jonas Bernoulli's message of "Wed, 05 Dec 2012 21:39:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:68049 Archived-At: > The attached patch allows inserting buttons into the header-line as well > as the mode-line. I haven't tested it much but it appears to work. > As you suggested it doesn't use a function such as > `header-button-format'. Instead `make-text-button' was changed to > return a useful value when BEG is a string: the propertized string. Thanks, installed, after simplifying it a bit to just use STRING rather than (STRING . STRING-POS). Stefan