From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Damien Cassou Newsgroups: gmane.emacs.bugs Subject: bug#12817: 24.2; The button library does not work on the header line Date: Tue, 06 Nov 2012 17:59:35 +0100 Message-ID: <877gpyllag.fsf@luz3.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352221676 18221 80.91.229.3 (6 Nov 2012 17:07:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Nov 2012 17:07:56 +0000 (UTC) To: 12817@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 06 18:08:04 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 1TVmd4-0007JU-P9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Nov 2012 18:07:58 +0100 Original-Received: from localhost ([::1]:56599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVmXH-0008CU-1U for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Nov 2012 12:01:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVmXA-0008AU-5S for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2012 12:01:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVmX8-0002AZ-Iw for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2012 12:01:52 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVmX8-0002AU-E8 for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2012 12:01:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TVmaD-0008CU-PQ for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2012 12:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Damien Cassou Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Nov 2012 17:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12817 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.135222146831481 (code B ref -1); Tue, 06 Nov 2012 17:05:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Nov 2012 17:04:28 +0000 Original-Received: from localhost ([127.0.0.1]:52722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TVmZS-0008BS-Fk for submit@debbugs.gnu.org; Tue, 06 Nov 2012 12:04:27 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51668) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TVmZP-0008BJ-SO for submit@debbugs.gnu.org; Tue, 06 Nov 2012 12:04:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVmWC-0001hM-Jc for submit@debbugs.gnu.org; Tue, 06 Nov 2012 12:00:59 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:36142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVmWC-0001ga-4k for submit@debbugs.gnu.org; Tue, 06 Nov 2012 12:00:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVmW3-0006kJ-Rs for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2012 12:00:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVmVi-0001Rj-Pz for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2012 12:00:39 -0500 Original-Received: from mail-wi0-f177.google.com ([209.85.212.177]:63300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVmVh-00018h-9h for bug-gnu-emacs@gnu.org; Tue, 06 Nov 2012 12:00:22 -0500 Original-Received: by mail-wi0-f177.google.com with SMTP id hj13so456672wib.12 for ; Tue, 06 Nov 2012 09:00:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=trtFMOzHLyq3nNkx+iwe+bBGX2Wx0Eq1O4FuzOrismo=; b=h6ivz7TkcKDqPoM4eM2kQ+06JBgonfxbU68KCu72vccMdXZ1xW6bJNAgiMxx/rPAob SqTXTzfALs/p1JIsWGbuvj2l216D/echXbDdhPmlZxG66eJtJur9y9N+QOE/R/2vi6N3 XezGMzV6YiOHG57yVc6441wAouY13ftwCVojZ946fg45EBRJIcWjLYrK0rZ/NgtWTzUF VzxL1jDH5Zbixldtde2gzX+fXKbjnoOTuafbwQ9TgJRN8ozJjH4SqtE3y/CivxC8zHl8 iHmaoxBqL3edM1ZAxxYxKRQvgvzT370fOy+cg2Wz3A4DN2lgiZNyHzus/qHq8jLtiDZ8 dTvQ== Original-Received: by 10.180.99.97 with SMTP id ep1mr20272277wib.9.1352221202025; Tue, 06 Nov 2012 09:00:02 -0800 (PST) Original-Received: from luz3 ([193.51.236.232]) by mx.google.com with ESMTPS id bn7sm17450360wib.8.2012.11.06.09.00.00 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Nov 2012 09:00:01 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] 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.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:66536 Archived-At: Hi, the button library does not work if a button is created on the header-line: (require 'button) (defun my-button-action (button) (message "HERE I AM")) (define-button-type 'my-button-type 'action #'my-button-action 'follow-link t) (setq test-button (copy-sequence "CLICK ME")) (make-text-button test-button nil 'type 'my-button-type) (setq header-line-format test-button) After evaluating these lines, a button appear with the text "CLICK ME" in blue and underlined. But clicking this button does nothing. I was expecting that clicking the button would trigger 'my-button-action and display the message "HERE I AM". There is a library that makes 'button work on header-line: https://raw.github.com/tarsius/header-button/master/header-button.el Thank you In GNU Emacs 24.2.1 (i686-pc-linux-gnu, GTK+ Version 2.24.13) of 2012-11-06 on dubnium, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11300000 Configured using: `configure '--build' 'i686-linux-gnu' '--build' 'i686-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.2/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/i386-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i686-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-M-x C-l C-l C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-M-x C-n C-n C-n C-n C-n C-n C-n C-n C-M-x C-n C-l C-l C-n C-n C-n C-n C-n C-a C-SPC M-> C-w C-y M-y C-p C-k C-M-x C-y C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-l C-a C-SPC C-n C-n C-f C-f C-x r k C-p C-p C-n C-n M-v M-v C-v C-v C-l C-p C-p C-p C-e C-n C-a C-k C-n C-SPC C-n C-n C-f C-f C-f C-x r k C-p C-n C-e C-x C-e q C-p C-p C-p C-p C-x C-e C-n C-n C-n C-n C-e C-x C-e C-n C-n C-n C-n C-a C-SPC C-n C-n C-n C-f C-f C-f C-x r k C-e C-x C-e C-x 1 C-p C-p C-SPC C-p C-p C-p C-p C-a C-w C-x C-o C-n C-SPC M-> C-x 1 C-x 1 C-p C-p C-p C-n C-n C-h k C-x 1 C-l M-x r e p o r t - e m a Recent messages: This button labeled `No me!' belongs to category `my-header-button' byte-code: Beginning of buffer Mark set This button labeled `Click me!' belongs to category `header-button' [2 times] This button labeled `No me!' belongs to category `my-header-button' Mark set [2 times] Autoscrolling is on. Type C-x 1 to delete the help window. Mark set Making completion list... Load-path shadows: /usr/share/emacs/24.2/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/24.2/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.2/lisp/textmodes/flyspell /usr/share/emacs/24.2/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.2/lisp/textmodes/ispell Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils two-column debug rect help-mode view help-fns find-func jka-compr info easymenu edmacro kmacro cl time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)