From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: integration with Python mode Date: Sun, 07 Jan 2007 14:11:53 -0500 Message-ID: References: <200701062323.37472.pogonyshev@gmx.net> <200701071908.16284.pogonyshev@gmx.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1168197160 13682 80.91.229.12 (7 Jan 2007 19:12:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 Jan 2007 19:12:40 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 07 20:12:30 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H3dR9-0004D2-PH for ged-emacs-devel@m.gmane.org; Sun, 07 Jan 2007 20:12:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3dR9-0006fG-24 for ged-emacs-devel@m.gmane.org; Sun, 07 Jan 2007 14:12:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H3dQy-0006du-J1 for emacs-devel@gnu.org; Sun, 07 Jan 2007 14:11:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H3dQw-0006db-U6 for emacs-devel@gnu.org; Sun, 07 Jan 2007 14:11:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3dQw-0006dY-OI for emacs-devel@gnu.org; Sun, 07 Jan 2007 14:11:54 -0500 Original-Received: from [209.226.175.34] (helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3dQw-0006h9-Dg for emacs-devel@gnu.org; Sun, 07 Jan 2007 14:11:54 -0500 Original-Received: from pastel.home ([74.12.206.167]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070107191153.GFHK1773.tomts13-srv.bellnexxia.net@pastel.home> for ; Sun, 7 Jan 2007 14:11:53 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 688CC6C288; Sun, 7 Jan 2007 14:11:53 -0500 (EST) Original-To: Paul Pogonyshev In-Reply-To: <200701071908.16284.pogonyshev@gmx.net> (Paul Pogonyshev's message of "Sun\, 7 Jan 2007 19\:08\:16 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64926 Archived-At: >> > I'd like to build support of Python mode into my Typesetter minor >> > mode [1]. In particular, I don't want it to insert special characters >> > outside of Python strings (and maybe comments.) How do I determine if >> > the point is inside a string in Python mode? >> >> How do you do it in other major modes? I don't think python-mode is special >> in this respect. > Well, I heavily depend on major mode. That doesn't tell me "how you do it" in other major modes. E.g. how do you do it in C mode? >> > Is there a better way than checking 'face property? >> How 'bout (nth 3 (syntax-ppss )) ? > Thanks. Documentation says it parses Lisp syntax, however. Report it as a documentation bug. > Will it give proper results in Python buffers? It's used by font-lock. Try it, Stefan