From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: how to set outline-minor-mode heading levels in outline-regexp Date: Tue, 24 Mar 2015 07:57:59 +0100 Message-ID: <87sicu7uh4.fsf@web.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427180311 8158 80.91.229.3 (24 Mar 2015 06:58:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Mar 2015 06:58:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Qiang Fang Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 24 07:58:21 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1YaIn4-0004cR-OD for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Mar 2015 07:58:18 +0100 Original-Received: from localhost ([::1]:59317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaIn4-00054t-2y for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Mar 2015 02:58:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaImt-00054o-6d for help-gnu-emacs@gnu.org; Tue, 24 Mar 2015 02:58:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YaImp-0005OC-WB for help-gnu-emacs@gnu.org; Tue, 24 Mar 2015 02:58:07 -0400 Original-Received: from mout.web.de ([212.227.15.3]:57106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaImp-0005Nz-MY for help-gnu-emacs@gnu.org; Tue, 24 Mar 2015 02:58:03 -0400 Original-Received: from drachen.dragon ([92.74.177.235]) by smtp.web.de (mrweb003) with ESMTPSA (Nemesis) id 0Lo0YS-1Z7Rfl2dnk-00g4Gt; Tue, 24 Mar 2015 07:58:01 +0100 In-Reply-To: (Qiang Fang's message of "Sun, 22 Mar 2015 02:14:25 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:YyZT+wUQkGp+nMdGRMCy0kKkejwidZADMIeO1qLnDXnE+mmldYJ ew9VgOGpGGREpL4ZLQI3rh9g4wkL7Gp2E4jVcgCsoRLWTBacKYXBG0ILmGVvmDSkeKD0UIg kpwZbzxJt8UYl3mN/O+tQuAqhC40gWsfkJiRf5/HSd58AaSNW5YKfMP+dU9KTtHN5y0vLjO 4jn6wLqHp7TEK0RZkyksQ== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103283 Archived-At: Qiang Fang writes: > (setq outline-regexp (concat comment-start " [*]\\{1,8\\}\\|" > outline-regexp))) (setq outline-regexp (concat some-regexp... outline-regexp)) doesn't make sense to me. Why do you append the old binding of the variable to your new setting? Also, you usage of `comment-start' is not correct. This regexp does not necessarily match the complete comment start delimiter. For example, in Emacs Lisp, `comment-start' is bound to ";", so your setting of `outline-regexp' will not work for comments starting with more than one semicolon. AFAICT, `comment-start' can even be nil for some modes. HTH, Michael.