[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15854: 24.3.50; cperl-mode: Support for outlining (much like that in
From: |
Jambunathan K |
Subject: |
bug#15854: 24.3.50; cperl-mode: Support for outlining (much like that in perl-mode) |
Date: |
Sun, 10 Nov 2013 14:44:38 +0530 |
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.
perl-mode-outlining-and-org-cycle.png
Description: PNG image
----------------------------------------------------------------
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)