From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lucien Pullen Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] Update package: psgml Date: Wed, 19 Apr 2017 01:39:00 -0600 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1492587607 21080 195.159.176.226 (19 Apr 2017 07:40:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2017 07:40:07 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (darwin) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 19 09:40:03 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0kDb-0005It-6c for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2017 09:40:03 +0200 Original-Received: from localhost ([::1]:46140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0kDd-0008Li-O3 for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2017 03:40:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0kCh-0008Kj-Cx for emacs-devel@gnu.org; Wed, 19 Apr 2017 03:39:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0kCe-0007b6-Be for emacs-devel@gnu.org; Wed, 19 Apr 2017 03:39:07 -0400 Original-Received: from mail-io0-x22c.google.com ([2607:f8b0:4001:c06::22c]:34253) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d0kCe-0007at-6D for emacs-devel@gnu.org; Wed, 19 Apr 2017 03:39:04 -0400 Original-Received: by mail-io0-x22c.google.com with SMTP id a103so16072744ioj.1 for ; Wed, 19 Apr 2017 00:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:mail-followup-to:date:in-reply-to :message-id:user-agent:mime-version; bh=OcEXFoE5VHkh2htX1nHyX5rdaRaH+m01mazoshHFFgk=; b=BZeGpweT39yQupfeFl0ScUYgMfDOUvsvBpCmqJZYp5xEk4vVKYBMHV5S4LWyaqqdcP fMMeQps2gW1ITk2Aw0HR2mZNvZUeY0sH6Yh2KSDyN/hBtezlefxD+9/gUNscGRYevFn1 slteTxnv8hr4swxCYfLydkGBgfYrFqgvPokng6thh7vMuhHZUGceVB1G9R3F2n/UFZm/ bcTtSUiDY6B+cAJF68JGjAMZ4DpDfKHUpiSg5WUmLotZtiXF5VhW4B0z1hY5S+6Mq4Sc eC6pCtw8DJsJDYmZGsxo9AlhUA/Vs6TPif4VcKAami7jcNV6Y4x91gGXp7lzjgKXLCx3 xadQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:mail-followup-to:date :in-reply-to:message-id:user-agent:mime-version; bh=OcEXFoE5VHkh2htX1nHyX5rdaRaH+m01mazoshHFFgk=; b=DJfbQphAqVvywSCSGjsfuwMngUATBDEeghRwiZrP+YiYEZ/F3PKh9pMPM0VykuvxvH Uyl7nnBWpm/T0e/Emk3eQp4CBURt5CqvvxemlystnLINOHnoDAT8sPEjiJBZ6Cgii6Je lxCYT5VLskTFIAuDvUvPDoCMPEYz0YTG/OISO9q7PMFopywqoJ7u+hLM0K0f5DKfMkeh KuSZDwBw+cpk3+mds4aH0oJKHXw5JJgHiSXUcM1cS5rstuMGZDAh3lWF/P3D55Fz6cyY KEpxORFL7s/cMN5zirX+6br0hw4MXbFbEgIr7wtilgNkzNQ5tE0BDhGbEFl6sM8Mn1Zq lQCA== X-Gm-Message-State: AN3rC/558ld7JuvsUkFm3PCR7hNdPXopnQ9CqKOQS4G7GVwKLCtNKQqQ Y8g8qwXgvIRw8MSU X-Received: by 10.107.147.134 with SMTP id v128mr1923753iod.64.1492587543040; Wed, 19 Apr 2017 00:39:03 -0700 (PDT) Original-Received: from lucien.drurowin.org (c-71-56-236-181.hsd1.co.comcast.net. [71.56.236.181]) by smtp.googlemail.com with ESMTPSA id a10sm410884itj.1.2017.04.19.00.39.02 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Apr 2017 00:39:02 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: (Stefan Monnier's message of "Mon, 17 Apr 2017 12:34:18 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:214108 Archived-At: Also sprach Stefan Monnier on 2017-04-17: > Could you give some further details about the context where you bumped > into the problem? I'm doing a lot of DSSSL at the moment, and I wanted the SGML editor commands to work in DSSSL mode. With sgml-set-face turned on for editing SGML structure, doing something like sgml-insert-element fontifies for SGML up to point instead of fontifying for lisp because PSGML fontifies as it parses the buffer to figure out the current element. > Hmm.. I like the goal, but I don't like lists of major-modes. > > Any reason why you couldn't set sgml-set-face to nil buffer-locally instead? I actually wanted it to be mode-local, which emacs doesn't really do, hence the list of major modes. When in an SGML mode for editing markup, I want the SGML to be fontified; when in some other mode for editing notation data, I want that major mode's font locking to take place. I can set sgml-set-face in a hook for sgml-mode, but then I have to unset it if I want to edit in the other mode. I figured a single list of modes where SGML should be fontified would be easier to keep track of than a slue of mode hooks. I looked into indirect buffers, but this seems more intuitive.