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: Fwd: Strange behavior of emacs-lisp-mode with outline-minor-mode Date: Sun, 05 Mar 2006 20:55:17 -0500 Message-ID: <87oe0kmjbg.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1141610188 23198 80.91.229.2 (6 Mar 2006 01:56:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2006 01:56:28 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 06 02:56:27 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FG4xW-0006PJ-9Z for ged-emacs-devel@m.gmane.org; Mon, 06 Mar 2006 02:56:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FG4xe-0003JM-AP for ged-emacs-devel@m.gmane.org; Sun, 05 Mar 2006 20:56:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FG4wh-0000Ss-SS for emacs-devel@gnu.org; Sun, 05 Mar 2006 20:55:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FG4we-0000HR-8i for emacs-devel@gnu.org; Sun, 05 Mar 2006 20:55:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FG4wd-0000Gj-Vr for emacs-devel@gnu.org; Sun, 05 Mar 2006 20:55:32 -0500 Original-Received: from [209.226.175.110] (helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FG4yj-0003zv-2n; Sun, 05 Mar 2006 20:57:41 -0500 Original-Received: from alfajor ([70.48.80.201]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060306015518.RRWX4713.tomts43-srv.bellnexxia.net@alfajor>; Sun, 5 Mar 2006 20:55:18 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 6C914D73BB; Sun, 5 Mar 2006 20:55:17 -0500 (EST) Original-To: Zhang Wei In-Reply-To: (Richard Stallman's message of "Sun, 05 Mar 2006 19:51:15 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (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:51269 Archived-At: > Does anyone disagree with this change? > It is really a matter of what outline commands should do in Lisp mode, > and I don't use them. > (let ((len (- (match-end 0) (match-beginning 0)))) > - - (if (looking-at "(\\|;;;###autoload") > + (if (looking-at ";;;###autoload") > 1000 > - - len))) > + (if (looking-at "(") > + 1 > + (- len 4))))) This means that ;;; Foo: gets level 1 and that (defun ...) also gets level 1. This is wrong. The motivation for this change was: > If we turn on outline-minor-mode in emacs-lisp-mode, and press > `C-c @ C-q', only three dots there, nothing left! I don't see this behavior. Please give a precise recipe. Stefan