From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.help Subject: Re: code folding with ? Date: Mon, 09 Apr 2012 12:08:42 +0200 Message-ID: <8762d9gqtx.fsf@altern.org> References: <87ty0wdkyc.fsf@live.com> <4F81A634.1060200@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333966056 7778 80.91.229.3 (9 Apr 2012 10:07:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Apr 2012 10:07:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Uday Reddy Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 09 12:07:35 2012 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 1SHBVX-0006xh-FW for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Apr 2012 12:07:35 +0200 Original-Received: from localhost ([::1]:40317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHBVW-0007mo-MN for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Apr 2012 06:07:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHBVR-0007mj-Jt for help-gnu-emacs@gnu.org; Mon, 09 Apr 2012 06:07:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHBVP-000687-SD for help-gnu-emacs@gnu.org; Mon, 09 Apr 2012 06:07:29 -0400 Original-Received: from mail-wg0-f49.google.com ([74.125.82.49]:37670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHBVP-000682-JJ for help-gnu-emacs@gnu.org; Mon, 09 Apr 2012 06:07:27 -0400 Original-Received: by wgbdr1 with SMTP id dr1so2825382wgb.30 for ; Mon, 09 Apr 2012 03:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=G7OcszI6VaqDW/H5/VLwK+LJpF+6nQrUVzmZ8BFvptI=; b=xRC8kQowixrf6AEl0qVvqjY7CnUr5hdKkYxewthe0E5mg3MYLXsqQA4IaFKtkJMY7s 6WqO58CmGS3Hx8JnmiJeXPALW2NL00NcZ0TROCvyEXFFfrT2pyp3CGZClY5cLnXjm+Xp baOpyladacGXC45ooOwI0XhI/7d41ERuaMSCxXHmkPra5TDPOdYJLdiEGlkCU5OlM+P7 17cpjkI8y8JaXFnl6Xs6moLunu1paG2zkrqdy/7XngszZs5fnhBqvzXp9oUeZRHk9Tce F4xLlKBlRZh0e9n9+fb/QOZB2qOT127OrM2qRVgzqvI6KO7n3SV6bE7K+HpxiLtkDz49 c7sQ== Original-Received: by 10.180.95.129 with SMTP id dk1mr17117520wib.3.1333966045739; Mon, 09 Apr 2012 03:07:25 -0700 (PDT) Original-Received: from myhost.localdomain (pha75-11-82-236-86-204.fbx.proxad.net. [82.236.86.204]) by mx.google.com with ESMTPS id fz9sm29031066wib.3.2012.04.09.03.07.24 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 09 Apr 2012 03:07:25 -0700 (PDT) Original-Received: by myhost.localdomain (Postfix, from userid 1000) id 87789856E; Mon, 9 Apr 2012 12:08:42 +0200 (CEST) In-Reply-To: <4F81A634.1060200@gmail.com> (Uday Reddy's message of "Sun, 08 Apr 2012 15:52:36 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.49 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:84387 Archived-At: Uday Reddy writes: > On 4/7/2012 10:18 AM, Bastien wrote: > >> Set this keybinding: >> >> (global-set-key (kbd "") 'org-cycle-global) > > That sounds very nice, Bastien. But how does this work? I thought > orgstruct-mode needed *, ** etc. to identify the outlines? For some basic cycling commands, `orgstruct-mode' relies directly on `outline-regexp' which is defined in outline.el and can be set to a local value by other major modes (such as emacs-lisp-mode.) HTH, -- Bastien