From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hadron Newsgroups: gmane.emacs.help Subject: Question about font-lock faces Date: Wed, 28 Feb 2007 15:50:48 +0100 Message-ID: <874pp6fi9j.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172677236 25160 80.91.229.12 (28 Feb 2007 15:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Feb 2007 15:40:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 28 16:40:29 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMQun-00044b-Nw for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 16:40:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMQuo-0001J2-Dd for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 10:40:26 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-X-Trace: individual.net W+XBI9MRdOtPLOATJZFuvwwFVjzDN+iB1Qnv7iHfF8g5i/2D3+ X-Orig-Path: news.individual.net!news X-Face: 2h#||Cd#d%F*NCm59[_6/{1a@jy%; |j>{D~4^gKg(^i%7j0IK?+,/GmW&:CD5fEKb_! User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:06Wn9N0lEsE2r4wK6xCoxgF5bpE= Original-Xref: shelby.stanford.edu gnu.emacs.help:145921 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41525 Archived-At: Is it possible to interactively query whyt "face" a certain word is using in a font-lock mode? e.g I am in html-helper-mode and in the following text the word "class" is dark blue and almost unreadable. There are no blue settings in the customization of html-helper-faces so it is picking it up from elsewhere. Ditto for certain words in C code when in c-mode. So my question is : how to find out which "face" a word is being decorated with? From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert D. Crawford" Newsgroups: gmane.emacs.help Subject: Re: Question about font-lock faces Date: Wed, 28 Feb 2007 09:30:38 -0600 Message-ID: <87tzx6qoyp.fsf@comcast.net> References: <874pp6fi9j.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172677293 25372 80.91.229.12 (28 Feb 2007 15:41:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Feb 2007 15:41:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 28 16:41:26 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMQvk-0004TM-9Y for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 16:41:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMQvk-000248-Sg for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 10:41:24 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 28 Feb 2007 09:30:40 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:COrzqSoBHXyG82dQP0/VwZxahoA= Original-Lines: 33 Original-NNTP-Posting-Host: 68.52.51.66 Original-X-Trace: sv3-mszdIvsTtRQMAoXVLKAUnQYRPT+IFW+MLX9fi3jS0zjx6KghJB0mkrES/6Nbz91yfqNpDuj6PtP3y9H!PvJ7qmTMJv67eJPaxNkfvtZkRMxC4AOs09cfhX6t7095AdPQWBJgaYKp+dA= Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34 Original-Xref: shelby.stanford.edu gnu.emacs.help:145923 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41527 Archived-At: Hadron writes: > Is it possible to interactively query whyt "face" a certain word is > using in a font-lock mode? This should work. I adapted it from a function in emacspeak and have tested it several times. (defun rdc-show-face-at-point () "Show value of property faceat point." (interactive ) (let ((f (get-text-property (point) 'face)) (o (delq nil (mapcar #'(lambda (overlay) (overlay-get overlay 'face)) (overlays-at (point)))))) (message "Face %s" f (if o o " ")))) There might be a better way to do it or there might be a way built into emacs. rdc -- Robert D. Crawford rdc1x@comcast.net Van Roy's Law: An unbreakable toy is useful for breaking other toys. From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: no-spam@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.help Subject: Re: Question about font-lock faces Date: Wed, 28 Feb 2007 16:49:24 +0100 Organization: StormWare Message-ID: References: <874pp6fi9j.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172677767 27317 80.91.229.12 (28 Feb 2007 15:49:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Feb 2007 15:49:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 28 16:49:19 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMR3O-0007n4-Pz for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 16:49:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMR3P-0003eR-Hm for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 10:49:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HMR31-0003bZ-Sk for help-gnu-emacs@gnu.org; Wed, 28 Feb 2007 10:48:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HMR30-0003az-PM for help-gnu-emacs@gnu.org; Wed, 28 Feb 2007 10:48:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMR30-0003as-JY for help-gnu-emacs@gnu.org; Wed, 28 Feb 2007 10:48:54 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HMR2z-0004HY-TU for help-gnu-emacs@gnu.org; Wed, 28 Feb 2007 10:48:54 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HMR2s-0000p3-Ft for help-gnu-emacs@gnu.org; Wed, 28 Feb 2007 16:48:46 +0100 Original-Received: from 80.165.4.124 ([80.165.4.124]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Feb 2007 16:48:46 +0100 Original-Received: from no-spam by 80.165.4.124 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Feb 2007 16:48:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 9 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 80.165.4.124 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.94 (gnu/linux) Cancel-Lock: sha1:gHj2UZvBDO5EFLP4gTqMGykYfqA= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41528 Archived-At: Hadron writes: > So my question is : how to find out which "face" a word is being > decorated with? C-u C-x = -- Kim F. Storm http://www.cua.dk From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hadron Newsgroups: gmane.emacs.help Subject: Re: Question about font-lock faces Date: Wed, 28 Feb 2007 16:53:12 +0100 Message-ID: <87mz2ye0t3.fsf@gmail.com> References: <874pp6fi9j.fsf@gmail.com> <87tzx6qoyp.fsf@comcast.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172680869 7748 80.91.229.12 (28 Feb 2007 16:41:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Feb 2007 16:41:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 28 17:40:58 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMRrN-0003eS-Rx for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 17:40:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMRrO-0000bl-54 for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 11:40:58 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-X-Trace: individual.net dO6qXFwh9Y/5MK/IWy5OOwMm21Gt9MwK83Fwhc3P5TIYLRcjUO X-Orig-Path: news.individual.net!news X-Face: 2h#||Cd#d%F*NCm59[_6/{1a@jy%; |j>{D~4^gKg(^i%7j0IK?+,/GmW&:CD5fEKb_! User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:XdUI9MJcDPMseFPkJiOfVmTyTuE= Original-Xref: shelby.stanford.edu gnu.emacs.help:145926 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41530 Archived-At: "Robert D. Crawford" writes: > Hadron writes: > >> Is it possible to interactively query whyt "face" a certain word is >> using in a font-lock mode? > > This should work. I adapted it from a function in emacspeak and have > tested it several times. > > (defun rdc-show-face-at-point () > "Show value of property faceat point." > (interactive ) > (let ((f (get-text-property (point) 'face)) > (o > (delq nil > (mapcar > #'(lambda (overlay) > (overlay-get overlay 'face)) > (overlays-at (point)))))) > (message "Face %s" f > (if o > o > " ")))) > > > There might be a better way to do it or there might be a way built into > emacs. > > rdc worked great! thanks. font-lock-variable-name-face it was. Couldnt customise it from the variable query though which surprised me. But could do from edit/text/display faces. From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hadron Newsgroups: gmane.emacs.help Subject: Re: Question about font-lock faces Date: Wed, 28 Feb 2007 17:04:27 +0100 Message-ID: <87ejoae0ac.fsf@gmail.com> References: <874pp6fi9j.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172680909 7897 80.91.229.12 (28 Feb 2007 16:41:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Feb 2007 16:41:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 28 17:41:37 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMRrw-0003tu-PX for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 17:41:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMRrx-0001FF-F9 for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 11:41:33 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-X-Trace: individual.net JOt7i0H8tdJ3VQXNwaQ8pAY1nBhNtAkGNZUYb0yAoSEglJn/1U X-Orig-Path: news.individual.net!news X-Face: 2h#||Cd#d%F*NCm59[_6/{1a@jy%; |j>{D~4^gKg(^i%7j0IK?+,/GmW&:CD5fEKb_! User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:tAQu0sUZJ7kZaErpY4r24h1Agf8= Original-Xref: shelby.stanford.edu gnu.emacs.help:145927 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41531 Archived-At: no-spam@cua.dk (Kim F. Storm) writes: > Hadron writes: > >> So my question is : how to find out which "face" a word is being >> decorated with? > > C-u C-x = even better. Thanks. what-cursor-position and can customise the font directly from the resulting details sheet. From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Question about font-lock faces Date: Wed, 28 Feb 2007 12:33:49 -0500 Message-ID: References: <874pp6fi9j.fsf@gmail.com> <87tzx6qoyp.fsf@comcast.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172684470 30264 80.91.229.12 (28 Feb 2007 17:41:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Feb 2007 17:41:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 28 18:41:00 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMSnS-0002GW-6F for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 18:40:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMSnS-0001z0-Nn for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 12:40:58 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.umontreal.ca!news.umontreal.ca.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 28 Feb 2007 11:33:49 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:n8VzAmKzrX9frqnQyh9UtEtaokY= Original-Lines: 20 Original-NNTP-Posting-Host: 132.204.27.213 Original-X-Trace: sv3-1JeLEXarmCLT8T95NyRtfK8KOMdkMhCDQneDeakrJWu3233xvf8pVRNGXMVtBHHvpJAyvSuzM71Y7Xo!j+Wk9UGolvh4FuOaEm255iXpqY/pjBHkvQv7L1Fb4RAQIxvTxgKGSnzFTujNgQt43InfBTQqYY8y!XL4yeAzY4dExExbvCw== Original-X-Complaints-To: abuse@umontreal.ca X-DMCA-Complaints-To: abuse@umontreal.ca X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34 Original-Xref: shelby.stanford.edu gnu.emacs.help:145931 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41535 Archived-At: > (defun rdc-show-face-at-point () > "Show value of property faceat point." > (interactive ) > (let ((f (get-text-property (point) 'face)) > (o > (delq nil > (mapcar > #'(lambda (overlay) > (overlay-get overlay 'face)) > (overlays-at (point)))))) > (message "Face %s" f > (if o > o > " ")))) You're probably better off using `get-char-property' directly (which also knows to select the right overlay based on priorities). Stefan From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert D. Crawford" Newsgroups: gmane.emacs.help Subject: Re: Question about font-lock faces Date: Wed, 28 Feb 2007 18:25:29 -0600 Message-ID: <87fy8px11i.fsf@comcast.net> References: <874pp6fi9j.fsf@gmail.com> <87tzx6qoyp.fsf@comcast.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172709639 9110 80.91.229.12 (1 Mar 2007 00:40:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Mar 2007 00:40:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 01 01:40:31 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMZLS-0000JV-OG for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Mar 2007 01:40:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMZLT-0004wd-Ru for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 19:40:31 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 28 Feb 2007 18:25:22 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:CayepZypaZSrBVSyHg89RNv/nrE= Original-Lines: 17 Original-NNTP-Posting-Host: 68.52.51.66 Original-X-Trace: sv3-LlkAEbpoT9bpyYBOeA5Pa7CQ7OfV5ABBu8pNJaR2gghRdH7fRzCTXCtUP7lTv0xMFgD438m9ujfQ4qh!TMxj40ncryssg7ySA7OgWv/WtWw4gcwxEaCz8uVPzVu0rQ60U/a6+3v7vA0= Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34 Original-Xref: shelby.stanford.edu gnu.emacs.help:145938 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41542 Archived-At: Stefan Monnier writes: >> (defun rdc-show-face-at-point () > You're probably better off using `get-char-property' directly (which also > knows to select the right overlay based on priorities). Yeah, I figured there was probably a better way. This was just the quick and dirty solution. I figured others, more knowledgeable in the Tao of Emacs, would chime in with the "real" solution. Thanks, rdc -- Robert D. Crawford rdc1x@comcast.net Reading is to the mind what exercise is to the body. From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hadron Newsgroups: gmane.emacs.help Subject: Re: Question about font-lock faces Date: Thu, 01 Mar 2007 02:16:50 +0100 Message-ID: <87irdlvk3h.fsf@gmail.com> References: <874pp6fi9j.fsf@gmail.com> <87tzx6qoyp.fsf@comcast.net> <87fy8px11i.fsf@comcast.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172716909 30479 80.91.229.12 (1 Mar 2007 02:41:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Mar 2007 02:41:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 01 03:41:39 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMbEh-0006M7-00 for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Mar 2007 03:41:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMbEi-00089q-69 for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 21:41:40 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-X-Trace: individual.net I5O+rgfhUOSJWgKuqcc5jA5Gx3mf+zDVyqukawTfsjueqEslla X-Orig-Path: news.individual.net!news X-Face: 2h#||Cd#d%F*NCm59[_6/{1a@jy%; |j>{D~4^gKg(^i%7j0IK?+,/GmW&:CD5fEKb_! User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:ViI+FQm6hv9jpQZHqMZxdHQiWj4= Original-Xref: shelby.stanford.edu gnu.emacs.help:145941 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41545 Archived-At: "Robert D. Crawford" writes: > Stefan Monnier writes: > >>> (defun rdc-show-face-at-point () > >> You're probably better off using `get-char-property' directly (which also >> knows to select the right overlay based on priorities). > > Yeah, I figured there was probably a better way. This was just the > quick and dirty solution. I figured others, more knowledgeable in the > Tao of Emacs, would chime in with the "real" solution. That was quick and dirty? Wow, you must talk lisp in your sleep. Yeth? :) > > Thanks, > rdc -- From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert D. Crawford" Newsgroups: gmane.emacs.help Subject: Re: Question about font-lock faces Date: Wed, 28 Feb 2007 20:28:23 -0600 Message-ID: <877iu1wvco.fsf@comcast.net> References: <874pp6fi9j.fsf@gmail.com> <87tzx6qoyp.fsf@comcast.net> <87fy8px11i.fsf@comcast.net> <87irdlvk3h.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172716969 30637 80.91.229.12 (1 Mar 2007 02:42:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Mar 2007 02:42:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 01 03:42:41 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMbFh-0006jr-4P for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Mar 2007 03:42:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMbFi-0000Pb-6T for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Feb 2007 21:42:42 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 28 Feb 2007 20:28:15 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:GgNSo2m7VfHNi6SBqW2bO9cMT+w= Original-Lines: 17 Original-NNTP-Posting-Host: 68.52.51.66 Original-X-Trace: sv3-QBnZLa9GYX/7PVtjkY3uBnMXg9itzY/aua8z/W/PL1n9cLV/90S/Kaq0CXGW/3NTBPdyDaSu2+oGA4B!RFKIPWbnIFI2yUKr2B6Y2PKG03Cr7HdOGuQxM9JSOW3dTar4ilhDfVcYYCk= Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34 Original-Xref: shelby.stanford.edu gnu.emacs.help:145943 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41547 Archived-At: Hadron writes: > That was quick and dirty? Wow, you must talk lisp in your sleep. Yeth? I cannot really take credit for that code. It was probably written by Dr. T. V. Raman of the emacspeak project. I think I mentioned this in my first post. All I did was to remove the small bit that you would have had no use for, the part that tells me what voice is being used on the text at point. Take care, rdc -- Robert D. Crawford rdc1x@comcast.net Real programmers can write assembly code in any language. :-) -- Larry Wall in <8571@jpl-devvax.JPL.NASA.GOV> From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help Subject: Re: Question about font-lock faces Date: Thu, 01 Mar 2007 15:48:58 +0100 Message-ID: <45E6E7DA.2070307@gmail.com> References: <874pp6fi9j.fsf@gmail.com> <87tzx6qoyp.fsf@comcast.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1172761869 30683 80.91.229.12 (1 Mar 2007 15:11:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Mar 2007 15:11:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 01 16:10:53 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMmap-0002ko-Js for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Mar 2007 15:49:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMmar-0002SG-Ah for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Mar 2007 09:49:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HMmae-0002SB-Ry for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 09:49:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HMmad-0002Rz-MM for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 09:49:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMmad-0002Rw-Ew for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 09:49:03 -0500 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HMmac-0006fK-T0 for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 09:49:03 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:63723 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1HMmaa-0001jw-4c for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 15:49:01 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666 In-Reply-To: X-Antivirus: avast! (VPS 000719-0, 2007-02-28), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1HMmaa-0001jw-4c. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1HMmaa-0001jw-4c ac9349fd571263dd2e5feb9c58856eb0 X-detected-kernel: Linux 2.6? (barebone, rare!) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41557 Archived-At: Chris McMahan wrote: > I've been using this one from Miles Bader for some time, and it works > quite well. > > - Chris > > (defun what-face (pos) > "Return the font-lock face information at the current point > Thanks to Miles Bader for this (gnus.emacs.help)" > (interactive "d") > (let ((face (or (get-char-property (point) 'read-face-name) > (get-char-property (point) 'face)))) > (if face > (message "Face: %s" face) > (message "No face at %d" pos)))) Nice, but (point) should be pos in the code above. From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris McMahan Newsgroups: gmane.emacs.help Subject: Re: Question about font-lock faces Date: Thu, 01 Mar 2007 09:14:07 -0500 Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: References: <874pp6fi9j.fsf@gmail.com> <87tzx6qoyp.fsf@comcast.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172761871 30706 80.91.229.12 (1 Mar 2007 15:11:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Mar 2007 15:11:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 01 16:10:44 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMmSp-0000rX-Dy for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Mar 2007 15:40:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMmSr-00061d-1e for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Mar 2007 09:41:01 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsfeed-00.mathworks.com!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 58 Original-NNTP-Posting-Host: panix5.panix.com Original-X-Trace: reader2.panix.com 1172758506 14736 166.84.1.5 (1 Mar 2007 14:15:06 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Thu, 1 Mar 2007 14:15:06 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.94 (windows-nt) Cancel-Lock: sha1:AOXx8eruvhY3jJMddSTO7/jEItY= Original-Xref: shelby.stanford.edu gnu.emacs.help:145953 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41558 Archived-At: I've been using this one from Miles Bader for some time, and it works quite well. - Chris (defun what-face (pos) "Return the font-lock face information at the current point Thanks to Miles Bader for this (gnus.emacs.help)" (interactive "d") (let ((face (or (get-char-property (point) 'read-face-name) (get-char-property (point) 'face)))) (if face (message "Face: %s" face) (message "No face at %d" pos)))) "Robert D. Crawford" writes: > Hadron writes: > >> Is it possible to interactively query whyt "face" a certain word is >> using in a font-lock mode? > > This should work. I adapted it from a function in emacspeak and have > tested it several times. > > (defun rdc-show-face-at-point () > "Show value of property faceat point." > (interactive ) > (let ((f (get-text-property (point) 'face)) > (o > (delq nil > (mapcar > #'(lambda (overlay) > (overlay-get overlay 'face)) > (overlays-at (point)))))) > (message "Face %s" f > (if o > o > " ")))) > > > There might be a better way to do it or there might be a way built into > emacs. > > rdc > -- > Robert D. Crawford rdc1x@comcast.net > > Van Roy's Law: > An unbreakable toy is useful for breaking other toys. -- (. .) =ooO=(_)=Ooo===================================== Chris McMahan | first_initiallastname@one.dot.net ================================================= From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Question about font-lock faces Date: Thu, 1 Mar 2007 09:16:28 -0800 Message-ID: References: <87tzx6qoyp.fsf@comcast.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1172769531 29516 80.91.229.12 (1 Mar 2007 17:18:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Mar 2007 17:18:51 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 01 18:18:41 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMovR-0003hs-4E for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Mar 2007 18:18:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMovS-0007bh-PL for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Mar 2007 12:18:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HMouJ-0006Pv-SC for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 12:17:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HMouH-0006Mu-Rk for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 12:17:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMouH-0006Mc-Jc for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 12:17:29 -0500 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HMouH-0008S8-6z for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 12:17:29 -0500 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.186.112]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l21HHOHT032288 for ; Thu, 1 Mar 2007 11:17:24 -0600 Original-Received: from rcsmt250.oracle.com (rcsmt250.oracle.com [148.87.90.195]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l21HHMl3022905 for ; Thu, 1 Mar 2007 10:17:22 -0700 Original-Received: from dhcp-4op11-4op12-west-130-35-178-179.us.oracle.com by rcsmt251.oracle.com with ESMTP id 2488248361172769393; Thu, 01 Mar 2007 10:16:33 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <87tzx6qoyp.fsf@comcast.net> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41567 Archived-At: > > Is it possible to interactively query what "face" a certain word is > > using in a font-lock mode? Kim answered this best, if you want the text-property info at the current cursor position: `C-u C-x ='. You might also be interested in this, however, if you don't want to move the text cursor to the text you want the properties of - just point and click the mouse: http://www.emacswiki.org/cgi-bin/wiki/FaceMenuPlus#TextPropertiesMenu. Hold Control and click `mouse-2', then pick Describe Properties in the popup menu. You'll see the text properties for the character you clicked. From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help Subject: Re: Question about font-lock faces Date: Thu, 01 Mar 2007 18:33:50 +0100 Message-ID: <45E70E7E.6000805@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1172770476 9179 80.91.229.12 (1 Mar 2007 17:34:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Mar 2007 17:34:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 01 18:34:19 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMpAS-0001p1-KL for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Mar 2007 18:34:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMpAU-0000k5-Ei for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Mar 2007 12:34:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HMpAE-0000jl-NQ for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 12:33:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HMpAD-0000it-Dc for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 12:33:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMpAD-0000iq-7h for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 12:33:57 -0500 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HMpAC-0002l1-NH for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 12:33:57 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:64207 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1HMpAA-0004iN-8y; Thu, 01 Mar 2007 18:33:55 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666 In-Reply-To: X-Antivirus: avast! (VPS 000720-0, 2007-03-01), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1HMpAA-0004iN-8y. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1HMpAA-0004iN-8y 4dac8de94e4b2fd62a08a64d4b596874 X-detected-kernel: Linux 2.6? (barebone, rare!) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41568 Archived-At: Drew Adams wrote: >>> Is it possible to interactively query what "face" a certain word is >>> using in a font-lock mode? > > Kim answered this best, if you want the text-property info at the current > cursor position: `C-u C-x ='. Ah, nice, I have forgotten that one. But there are bugs on that display. Some links uses mouse-1 and other mouse-2. From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Question about font-lock faces Date: Thu, 1 Mar 2007 09:41:29 -0800 Message-ID: References: <45E70E7E.6000805@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1172770941 15051 80.91.229.12 (1 Mar 2007 17:42:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Mar 2007 17:42:21 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 01 18:42:13 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMpIC-00059H-QJ for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Mar 2007 18:42:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMpIE-0007QC-Kf for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Mar 2007 12:42:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HMpI1-0007Px-NT for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 12:42:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HMpHz-0007MX-G5 for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 12:42:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMpHz-0007MQ-8w for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 12:41:59 -0500 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HMpHy-0003tw-Qz for help-gnu-emacs@gnu.org; Thu, 01 Mar 2007 12:41:59 -0500 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.186.112]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l21HftaN027372 for ; Thu, 1 Mar 2007 10:41:55 -0700 Original-Received: from rcsmt251.oracle.com (rcsmt251.oracle.com [148.87.90.196]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l21GAA4l030133 for ; Thu, 1 Mar 2007 10:41:54 -0700 Original-Received: from dhcp-4op11-4op12-west-130-35-178-179.us.oracle.com by rcsmt251.oracle.com with ESMTP id 2488912721172770894; Thu, 01 Mar 2007 10:41:34 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <45E70E7E.6000805@gmail.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41570 Archived-At: > >>> Is it possible to interactively query what "face" a certain word is > >>> using in a font-lock mode? > > > > Kim answered this best, if you want the text-property info at > > the current cursor position: `C-u C-x ='. > > Ah, nice, I have forgotten that one. But there are bugs on that display. > Some links uses mouse-1 and other mouse-2. I should have mentioned that showing text properties is for Emacs 22, not 20 or 21. Lennart, you know how to report bugs: Help > Send Bug Report. From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.help Subject: Re: Question about font-lock faces Date: Fri, 02 Mar 2007 02:31:02 +0100 Organization: Chalmers University of Technology, Sweden Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1172799732 14789 80.91.229.12 (2 Mar 2007 01:42:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Mar 2007 01:42:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 02 02:42:05 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMwmY-0005rV-FZ for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Mar 2007 02:42:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMwmT-00010L-FD for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Mar 2007 20:41:57 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!ltu.se!luth.se!193.10.88.111.MISMATCH!newsfeed.sunet.se!news01.sunet.se!129.16.222.141.MISMATCH!gide.ita.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-NNTP-Posting-Host: gamma02.me.chalmers.se Original-X-Trace: gide.ita.chalmers.se 1172799062 10982 129.16.50.72 (2 Mar 2007 01:31:02 GMT) Original-X-Complaints-To: usenet@gide.ita.chalmers.se Original-NNTP-Posting-Date: Fri, 2 Mar 2007 01:31:02 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:X1gr5OdMkwtEV/F4treqlSuEgAM= Original-Xref: shelby.stanford.edu gnu.emacs.help:145978 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41582 Archived-At: "Drew Adams" writes: >>> Kim answered this best, if you want the text-property info at >>> the current cursor position: `C-u C-x ='. > > I should have mentioned that showing text properties is for Emacs > 22, not 20 or 21. In Emacs < 22 use M-x list-text-properties-at -- Johan Bockgård