From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anton Daitche Newsgroups: gmane.emacs.bugs Subject: bug#11340: 24.0.95; hide-show-mode hides only ever other subroutine in Fortran-mode Date: Wed, 25 Apr 2012 16:36:28 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f234509f6841504be81cbb4 X-Trace: dough.gmane.org 1335370276 14999 80.91.229.3 (25 Apr 2012 16:11:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Apr 2012 16:11:16 +0000 (UTC) To: 11340@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 25 18:11:12 2012 Return-path: Envelope-to: geb-bug-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 1SN4oB-0005ia-It for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Apr 2012 18:11:11 +0200 Original-Received: from localhost ([::1]:52630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN4oA-0002yt-Qp for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Apr 2012 12:11:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN4jQ-0001Zk-2S for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 12:06:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SN4jJ-0000zE-3D for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 12:06:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN4jI-0000z8-ST for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 12:06:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SN4kA-00046x-0K for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 12:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Anton Daitche Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Apr 2012 16:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11340 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.133537000815772 (code B ref -1); Wed, 25 Apr 2012 16:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Apr 2012 16:06:48 +0000 Original-Received: from localhost ([127.0.0.1]:52907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SN4jv-00046H-CL for submit@debbugs.gnu.org; Wed, 25 Apr 2012 12:06:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52116) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SN3Lm-0001B1-SM for submit@debbugs.gnu.org; Wed, 25 Apr 2012 10:37:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SN3Kl-0003Ai-4X for submit@debbugs.gnu.org; Wed, 25 Apr 2012 10:36:48 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:46499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN3Kk-0003AT-LZ for submit@debbugs.gnu.org; Wed, 25 Apr 2012 10:36:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN3Ki-0002zX-9g for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 10:36:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SN3Ka-00035h-Oh for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 10:36:39 -0400 Original-Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:40219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN3Ka-000346-2O for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 10:36:32 -0400 Original-Received: by lagz14 with SMTP id z14so166568lag.0 for ; Wed, 25 Apr 2012 07:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=6fcCSLywdREWiiO4i3Z0aPnY+ys9/zYGeUU488ygwm0=; b=Uvw1TOy3AH1C2GV+zNKNGK9GgVaSfjzGkyHCykdTkVFDVHI9Mv/qMVb1ikGLmMimgi SzZTE0OEgbK0sU6pgQd1ma+zjM5INoRglm8Tv883Z4wZJuk2eF+ryUgITclKiDptMGzw KHMy7pcubP8HfOvJci2Tftq7qb8gy+HvzzElMgq56sfd+ikFsjrxwovzd6wGeisJL678 IlAe/bb8m3hhju44NH+R09xcOYKEka/B3PKhgvfFNLSDg0AFe9yZ5k23Ec186JQ+M2JB NIqf5rC+Q/hVRKiAJswxCAiFGTxByizAjG+y7rsOGyr/8ZQqgEKqc8rP6o9/Qju3gVXO JsDw== Original-Received: by 10.152.148.234 with SMTP id tv10mr2864362lab.41.1335364588831; Wed, 25 Apr 2012 07:36:28 -0700 (PDT) Original-Received: by 10.112.87.66 with HTTP; Wed, 25 Apr 2012 07:36:28 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Wed, 25 Apr 2012 12:06:47 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Wed, 25 Apr 2012 12:11:09 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59481 Archived-At: --e89a8f234509f6841504be81cbb4 Content-Type: text/plain; charset=ISO-8859-1 Use the following example source code: module test_mod implicit none contains subroutine a() end subroutine a subroutine b() end subroutine b subroutine c() end subroutine c subroutine d() end subroutine d end module test_mod enable hide-show-mode (hs-minor-mode) and execute command hs-hide-level when cursor is outside of any subroutine. The result is that only every other subroutine gets hidden. This can be also reproduced with emacs 23.2.1 (debian-stable). In GNU Emacs 24.0.95.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2012-04-17 on sommerfeld Windowing system distributor `The X.Org Foundation', version 11.0.10707000 Configured using: `configure '--prefix=/home/p0friedr/a_dait01/local/emacs'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: de_DE.utf8 value of $LANG: en_US.utf8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: F90 Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t hs-minor-mode: t Recent input: C-x C-f p r o j h i C-g C-x C-f t m p . f 9 0 i m o d u l e SPC t e s t _ m o d i i m p l i c i t SPC n o n e c o n t a i n s i s u b r o u t i n e SPC a ( ) e n d s u r b r o u t i n e SPC b ( ) e n d d d s u b r o u t i n e SPC c ( ) e n d s u r b r o u t i n e SPC d ( ) e n d u u e n d M-x h s - m i n o M-x h s - h i l C-SPC C-w C-y M-x M-x r e p o Recent messages: Inserting d. Inserting subroutine. Inserting d. Inserting module. Inserting test_mod. Hs minor mode enabled Hiding blocks ... done You can run the command `hs-hide-level' with C-c @ C-l Mark set [2 times] Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode view hideshow vc-dispatcher vc-svn f90 cus-edit easymenu cus-start cus-load wid-edit time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --e89a8f234509f6841504be81cbb4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Use the following example source code:

module= test_mod
=A0 implicit none

contains
=A0=A0
=A0 subroutine a()
=A0 end subroutine a

=A0 subroutine b()
=A0 end subroutine b
=
=A0 subroutine c()
=A0 end subroutine c
=
=A0 subroutine d()
=A0 end subroutine d
=
end module test_mod

enable hide-show-mode (hs= -minor-mode) and execute command hs-hide-level=A0when cursor is outside of = any subroutine. The result is that only every=A0other subroutine gets hidde= n.
This can be also reproduced with emacs 23.2.1 (debian-stable).


In GNU Emacs 24.0.95.2 (x86_64-unknown-lin= ux-gnu, GTK+ Version 2.20.1)
=A0of 2012-04-17 on sommerfeld
Windowing system distributor `The X.Org Foundation', version 11.0.= 10707000
Configured using:
=A0`configure '--prefix= =3D/home/p0friedr/a_dait01/local/emacs''

I= mportant settings:
=A0 value of $LC_ALL: nil
=A0 value of $LC_COLLATE: nil
=A0 value of $LC_CTYPE: nil
=A0 value of $LC_MESSAGES: nil<= /div>
=A0 value of $LC_MONETARY: nil
=A0 value of $LC_NUMERIC= : nil
=A0 value of $LC_TIME: de_DE.utf8
=A0 value of $LANG: en_US.= utf8
=A0 value of $XMODIFIERS: @im=3Dibus
=A0 locale-co= ding-system: utf-8-unix
=A0 default enable-multibyte-characters: = t

Major mode: F90

Minor modes in effe= ct:
=A0 tooltip-mode: t
=A0 mouse-wheel-mode: t
=A0 tool-bar-mode: t
=A0 menu-bar-mode: t
=A0 file-n= ame-shadow-mode: t
=A0 global-font-lock-mode: t
=A0 font-lock-mode: t
=A0 blink-cursor-mode: t
=A0 auto-composition-mode: t
= =A0 auto-encryption-mode: t
=A0 auto-compression-mode: t
=A0 line-number-mode: t
=A0 transient-mark-mode: t
=A0 hs-minor-mode: t
Recent input:
C-x C-f p r o j <tab> <down-m= ouse-1> <mouse-1> <down-mouse-1>=A0
<mouse-1>= ; h i <tab> <backspace> <backspace> C-g C-x=A0
C-f t m p . f 9 0 <return> i <backspace> m o d u l=A0
e SPC t e s t _ m o d <return> i <backspace> <tab>= =A0
i m p l i c i t SPC n o n e <return> <return> <= ;tab>=A0
c o n t a i n s <return> <up> <tab> <down> i &= lt;tab>=A0
<backspace> <help-echo> <down-mouse-= 1> <mouse-1> <return>=A0
<tab> s u b r o u t= i n e SPC a ( ) <return> <return>=A0
e n d <tab> <down> <return> <return> s u r <= ;backspace>=A0
b r o u t i n e SPC b ( ) <return> e n d = <tab> <up>=A0
<tab> <down> <tab> &l= t;down> <return> <up> <up> <up> <up>=A0
<up> d d <escape> <backspace> <backspace> <= down> <down>=A0
<down> <down> <end> &l= t;return> <return> <tab> s u b r=A0
o u t i n e SP= C c ( ) <return> e n d <tab> <end> <return>=A0
<return> s u r <backspace> <tab> b r o u t i n e SPC= =A0
d ( ) <return> e n d <tab> <return> <esc= ape> u <escape>=A0
u <backspace> <backspace>= <backspace> <backspace> <backspace>=A0
<backspace> <backspace> <backspace> <backspace>= ; <backspace>=A0
<backspace> <backspace> <ba= ckspace> <backspace> <tab>=A0
<end> <retu= rn> <return> e n d <tab> M-x h s - m i n=A0
o <tab> <return> <up> <up> <up> <up&g= t; <up> <up> <up>=A0
<up> <up> <= up> <up> <up> <up> M-x h s - h i <tab> l=A0
<tab> <return> <up> <up> <up> <up>= <left> <left> C-SPC=A0
<down> <down> <= ;down> <down> <down> <down> <down> <down>= =A0
<down> <down> <down> <down> <down> <d= own> <down> <end>=A0
C-w C-y <escape> M-x M-= x r e p o <tab> <help-echo>=A0
<help-echo> <= down-mouse-1> <mouse-2>

Recent messages:
Inserting d.
Inser= ting subroutine.
Inserting d.
Inserting module.
Inserting test_mod.
Hs minor mode enabled
Hiding blo= cks ... done
You can run the command `hs-hide-level' with C-c @ C-l
M= ark set [2 times]
Making completion list...

<= div>Load-path shadows:
None found.

Featu= res:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 m= ml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 maila= bbrev
gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ie= tf-drums
mm-util mail-prsvr mail-utils help-mode view hideshow vc-dispatcher
vc-svn f90 cus-edit easymenu cus-start cus-load wid-edit time-date<= /div>
tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd to= ol-bar
dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow<= /div>
timer select scroll-bar mouse jit-lock font-lock syntax facemenu<= /div>
font-core frame cham georgian utf-8-lang misc-lang vietnamese tib= etan
thai tai-viet lao korean japanese hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --e89a8f234509f6841504be81cbb4--