From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: program outlining Date: Tue, 12 Jul 2016 19:47:18 -0700 (PDT) Message-ID: <8e698e53-3a4d-498d-a0ab-2f7aba90e200@googlegroups.com> References: <69592de8-5bae-48ac-9435-76e219d6ee38@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1468378244 1723 80.91.229.3 (13 Jul 2016 02:50:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2016 02:50:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 13 04:50:35 2016 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 1bNAFr-0005jg-BC for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jul 2016 04:50:31 +0200 Original-Received: from localhost ([::1]:44735 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNAFq-0002QS-DW for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jul 2016 22:50:30 -0400 X-Received: by 10.98.78.203 with SMTP id c194mr2357730pfb.3.1468378133603; Tue, 12 Jul 2016 19:48:53 -0700 (PDT) X-Received: by 10.36.123.145 with SMTP id q139mr233851itc.7.1468378038945; Tue, 12 Jul 2016 19:47:18 -0700 (PDT) Original-Path: usenet.stanford.edu!hy1no292401igb.0!news-out.google.com!d68ni5847ith.0!nntp.google.com!jk6no21637084igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=203.109.108.41; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 203.109.108.41 User-Agent: G2/1.0 Injection-Date: Wed, 13 Jul 2016 02:48:53 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:218491 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:110800 Archived-At: On Wednesday, July 13, 2016 at 7:14:27 AM UTC+5:30, Howard Melman wrote: > I use outline-minor-mode in emacs-lisp mode and do: > > (setq outline-regexp ";;;;? \\|(....") This would be serious if we could have it mode-specific eg "///" for C++ "/***" for C which (I guess?) needs to be coded up as "/\\*\\*\\*" ?? Two related threads that unfortunately died: https://lists.gnu.org/archive/html/emacs-devel/2006-12/msg00232.html http://comments.gmane.org/gmane.emacs.orgmode/67871 Personally with ASCII being superseded by Unicode I find it strange to have a star '*' and that too hardcoded. > > This tracks ;;; and ;;;; comments and also > lines beginning with a ( and four more characters. > Works pretty well. I haven't tried finding values for > outline-regexp in other programming modes. > > Then I add: > > (define-key outline-minor-mode-map (kbd "C-") 'org-cycle) > (define-key outline-minor-mode-map (kbd "S-") 'org-global-cycle))) > > Honestly, outline-mode and outline-minor-mode should > just duplicate the org-cycle commands. > > -- > > Howard