From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/4016 Path: main.gmane.org!not-for-mail From: Per Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: `mouse-face' under XEmacs Date: Fri, 17 Nov 1995 03:52:31 +0100 Message-ID: <199511170252.DAA23097@ssv4.dina.kvl.dk> References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035144825 28278 80.91.224.250 (20 Oct 2002 20:13:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:13:45 +0000 (UTC) Cc: ding@ifi.uio.no Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by miranova.com (8.6.11/8.6.9) with ESMTP id TAA03472 for ; Thu, 16 Nov 1995 19:38:34 -0800 Original-Received: from elc1.dina.kvl.dk (elc1.dina.kvl.dk [130.225.40.228]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id ; Fri, 17 Nov 1995 03:53:18 +0100 Original-Received: from ssv4.dina.kvl.dk (ssv4.dina.kvl.dk [130.225.40.223]) by elc1.dina.kvl.dk (8.6.12/8.6.4) with ESMTP id DAA12102; Fri, 17 Nov 1995 03:51:05 +0100 Original-Received: (abraham@localhost) by ssv4.dina.kvl.dk (8.6.12/8.6.4) id DAA23097; Fri, 17 Nov 1995 03:52:31 +0100 Original-To: Lars Magne Ingebrigtsen In-reply-to: Lars Magne Ingebrigtsen's message of 17 Nov 1995 02:23:10 +0100 Xref: main.gmane.org gmane.emacs.gnus.general:4016 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:4016 I don't think XEmacs supports mouse-face, at least I couln't find it in the documentation when writing `custom.el'. It does support `highlight' instead, but the value is flag rather than a face. If the flag is set the text will be highlighted when the mouse is over it, with some fixed face (presumably `highlight'). I use the following in custom.el: (defconst mouse-face (if (string-match "XEmacs" emacs-version) 'highlight 'mouse-face) "Symbol used for highlighting text under mouse.") (put-text-property 1 4 mouse-face 'bold) which seems to work. >>>>> "LMI" == Lars Magne Ingebrigtsen writes: LMI> (put-text-property 1 4 'mouse-face 'bold) LMI> doesn't seem to work. Do I really have to fiddle with extents to get LMI> this to work?