unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15854: 24.3.50; cperl-mode: Support for outlining (much like that in perl-mode)
@ 2013-11-10  9:14 Jambunathan K
  2013-11-12  2:20 ` Nathan Trapuzzano
  2013-11-15  5:14 ` Jambunathan K
  0 siblings, 2 replies; 7+ messages in thread
From: Jambunathan K @ 2013-11-10  9:14 UTC (permalink / raw)
  To: 15854

[-- Attachment #1: Type: text/plain, Size: 1104 bytes --]


This is either a bug or a feature request.

Summary: cperl-mode: Support for outlining (much like that in perl-mode)

1. Add this to your .emacs

      (add-hook 'perl-mode-hook 'outline-minor-mode)
      (add-hook 'cperl-mode-hook 'outline-minor-mode)

      (add-hook 'outline-minor-mode-hook
        (lambda ()
          (define-key outline-minor-mode-map [(control tab)] 'org-cycle)
          ;; (define-key outline-minor-mode-map [(shift tab)] 'org-global-cycle)
          (define-key outline-minor-mode-map [backtab] 'org-global-cycle)
          ))

2. C-x C-f org.pl
3. M-x perl-mode

4. Do this <S-iso-lefttab>, <S-iso-lefttab>

   See the attached screenshot for what I get.

5. M-x cperl-mode
6. Repeat step 4.

   Nothing interesting happens.  Only thing I see is this message.

      --8<---------------cut here---------------start------------->8---
         hide-sublevels: Must keep at least one level of headers [3 times]
      --8<---------------cut here---------------end--------------->8---


Expected behaviour
==================

I should be able to "cycle" through the visibility.


[-- Attachment #2: perl-mode-outlining-and-org-cycle.png --]
[-- Type: image/png, Size: 44583 bytes --]

[-- Attachment #3: Type: text/plain, Size: 361 bytes --]



----------------------------------------------------------------
In GNU Emacs 24.3.50.4 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2013-11-09 on debian-6.05
Bzr revision: 115051 jan.h.d@swipnet.se-20131109111953-cysfi19meuidy96q
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
System Description:	Debian GNU/Linux 6.0.5 (squeeze)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-11-15 11:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-10  9:14 bug#15854: 24.3.50; cperl-mode: Support for outlining (much like that in perl-mode) Jambunathan K
2013-11-12  2:20 ` Nathan Trapuzzano
2013-11-12  4:31   ` Jambunathan K
2013-11-12 11:29     ` Nathan Trapuzzano
2013-11-12 13:59       ` Stefan Monnier
2013-11-15  5:14 ` Jambunathan K
2013-11-15 11:30   ` Nathan Trapuzzano

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).