From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: pp-eval-expression Date: Wed, 5 Jan 2005 13:23:47 -0800 Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1104960281 4707 80.91.229.6 (5 Jan 2005 21:24:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Jan 2005 21:24:41 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 05 22:24:32 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CmIds-0005aJ-00 for ; Wed, 05 Jan 2005 22:24:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CmIp8-0000ao-JH for ged-emacs-devel@m.gmane.org; Wed, 05 Jan 2005 16:36:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CmIoh-0000Rt-TA for emacs-devel@gnu.org; Wed, 05 Jan 2005 16:35:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CmIoe-0000Pc-3K for emacs-devel@gnu.org; Wed, 05 Jan 2005 16:35:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CmIod-0000PQ-Po for emacs-devel@gnu.org; Wed, 05 Jan 2005 16:35:39 -0500 Original-Received: from [141.146.126.229] (helo=agminet02.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CmIdH-0001EC-CF; Wed, 05 Jan 2005 16:23:55 -0500 Original-Received: from agminet02.oracle.com (localhost [127.0.0.1]) by agminet02.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j05LNsDt014683; Wed, 5 Jan 2005 13:23:54 -0800 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.191.50]) by agminet02.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j05LNqjd014657; Wed, 5 Jan 2005 13:23:52 -0800 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j05LNnfs013346; Wed, 5 Jan 2005 14:23:50 -0700 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j05LNnW4013336 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 5 Jan 2005 14:23:49 -0700 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 In-Reply-To: Importance: Normal 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: main.gmane.org gmane.emacs.devel:31922 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31922 Shouldn't `pp-eval-expression' turn off emacs-lisp-mode-hook and change-major-mode-hook before turning on emacs-lisp-mode? Why? Well, I admit that it's problematic either way, but I was thinking that users might have hook functions that aren't relevant in the pp eval buffer. I was guessing that the only reasons that the buffer is put into emacs-lisp mode are for 1) font-locking, 2) the syntax table, and possibly 3) reformatting and evaling parts by hand. But someone will perhaps argue that you can also use the buffer interactively.