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: Patches on ffap (mainly for latex buffers) Date: Fri, 07 Aug 2015 17:34:52 -0400 Message-ID: References: <87zj244ooe.fsf@members.fsf.org> <86mvy2g8sj.fsf@members.fsf.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1438983321 19677 80.91.229.3 (7 Aug 2015 21:35:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Aug 2015 21:35:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nicolas Richard Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 07 23:35:12 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZNpIF-0006EC-Qt for ged-emacs-devel@m.gmane.org; Fri, 07 Aug 2015 23:35:12 +0200 Original-Received: from localhost ([::1]:51295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNpIE-0005IX-Ly for ged-emacs-devel@m.gmane.org; Fri, 07 Aug 2015 17:35:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNpI1-0005Hw-C3 for emacs-devel@gnu.org; Fri, 07 Aug 2015 17:34:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNpHy-00062I-4u for emacs-devel@gnu.org; Fri, 07 Aug 2015 17:34:57 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:52529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNpHy-00061K-17 for emacs-devel@gnu.org; Fri, 07 Aug 2015 17:34:54 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AyEwA731xV//gFNJ1cgxCEAk6FB7s3CYdLBAICgTw5FAEBAQEBAQGBCkEFg10BAQMBIzMjBQsJAg4MAhgOAgIUGA0kiDcIjXydEKQXAQEIAgEfgSGKGYRSMweCaIFFBZlthSqSFINZI4QUIoJ4AQEB X-IPAS-Result: A0AyEwA731xV//gFNJ1cgxCEAk6FB7s3CYdLBAICgTw5FAEBAQEBAQGBCkEFg10BAQMBIzMjBQsJAg4MAhgOAgIUGA0kiDcIjXydEKQXAQEIAgEfgSGKGYRSMweCaIFFBZlthSqSFINZI4QUIoJ4AQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="159117180" Original-Received: from 157-52-5-248.cpe.teksavvy.com (HELO pastel.home) ([157.52.5.248]) by ironport2-out.teksavvy.com with ESMTP; 07 Aug 2015 17:34:52 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6EB7961710; Fri, 7 Aug 2015 17:34:52 -0400 (EDT) In-Reply-To: <86mvy2g8sj.fsf@members.fsf.org> (Nicolas Richard's message of "Fri, 07 Aug 2015 22:09:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188590 Archived-At: > Are you sure ? The docstring of skip-chars-forward has: >> =E2=80=98\=E2=80=99 quotes =E2=80=98^=E2=80=99, =E2=80=98-=E2=80=99 or = =E2=80=98\=E2=80=99 > so if we want \ to be part of a filename, I think they are all needed. OMG, you're right! So the syntax is yet a bit different from the syntax of [...] ranges in regexps (where the ^, ], and - are "quoted" based on their position rather than using backslash). >>> + (prefixes '("" >>> + "beamertheme" >>> + "beamercolortheme" >>> + "beamerfonttheme" >>> + "beamerinnertheme" >>> + "beameroutertheme")) >> These prefixes look rather ad-hoc. Do we really need them? Why? > I guess you know the beamer class in LaTeX ? Never used it, but know of it. > These prefixes are those used for the different theme files of > beamer. A given "full theme" usually combines a color theme, an inner > theme and an outer theme (and there are also font themes, as you can > guess), all having their own prefix. > > It is nice to be able to navigate from a line such as > \usetheme{Warsaw} > to > /usr/local/texlive/2015/texmf-dist/tex/latex/beamer/themes/theme/beamerth= emeWarsaw.sty > in order to find out that it calls > \useinnertheme[shadow=3Dtrue]{rounded} > \useoutertheme{shadow} > \usecolortheme{orchid} > \usecolortheme{whale} > Then you can further navigate to these files, and copy the bits you want > to modify into your own beamer file. Maybe this should be factored into a separate piece of code that's only used when the beamer class is used? Maybe it's not that important, so I think it's OK if we just move this list to a global variable rather than hard-coding it within the body of the function. Stefan