unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Rusi <rustompmody@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: program outlining
Date: Tue, 12 Jul 2016 19:47:18 -0700 (PDT)	[thread overview]
Message-ID: <8e698e53-3a4d-498d-a0ab-2f7aba90e200@googlegroups.com> (raw)
In-Reply-To: <mailman.1250.1468374265.26859.help-gnu-emacs@gnu.org>

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-<tab>") 'org-cycle)
>     (define-key outline-minor-mode-map (kbd "S-<tab>") 'org-global-cycle)))
> 
> Honestly, outline-mode and outline-minor-mode should
> just duplicate the org-cycle commands. 
> 
> -- 
> 
> Howard



  parent reply	other threads:[~2016-07-13  2:47 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-11 12:59 program outlining Rusi
2016-07-11 13:48 ` Kaushal Modi
     [not found] ` <mailman.1089.1468244895.26859.help-gnu-emacs@gnu.org>
2016-07-11 14:12   ` Rusi
2016-07-11 14:34     ` Rusi
2016-07-11 14:59     ` Kaushal Modi
2016-07-11 14:53 ` Eli Zaretskii
2016-07-11 15:13 ` Robert Thorpe
2016-07-11 15:21 ` Emanuel Berg
2016-07-11 18:07   ` Rusi
2016-07-11 18:36     ` Emanuel Berg
2016-07-13 12:49       ` Rusi
2016-07-13 13:31         ` Emanuel Berg
     [not found] ` <mailman.1101.1468248815.26859.help-gnu-emacs@gnu.org>
2016-07-11 18:05   ` Rusi
2016-07-13  1:44 ` Howard Melman
2016-07-13  2:00   ` Drew Adams
     [not found] ` <mailman.1250.1468374265.26859.help-gnu-emacs@gnu.org>
2016-07-13  2:47   ` Rusi [this message]
2016-07-13 13:42     ` Howard Melman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8e698e53-3a4d-498d-a0ab-2f7aba90e200@googlegroups.com \
    --to=rustompmody@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).