GNU bug report logs - #10787
23.4; hs-hide-* functions don't honor page break in Emacs-Lisp major mode (and probably others too)

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: oitofelix@HIDDEN (Bruno Félix Rezende Ribeiro); dated Sat, 11 Feb 2012 03:58:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at>

Received: (at submit) by; 11 Feb 2012 03:57:09 +0000
From debbugs-submit-bounces <at> Fri Feb 10 22:57:09 2012
Received: from localhost ([]:35491
	by with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at>>)
	id 1Rw45E-0007zn-67
	for submit <at>; Fri, 10 Feb 2012 22:57:09 -0500
Received: from ([]:40819)
	by with esmtp (Exim 4.72)
	(envelope-from <oitofelix@HIDDEN>) id 1Rw459-0007zH-4k
	for submit <at>; Fri, 10 Feb 2012 22:57:04 -0500
Received: from Debian-exim by with spam-scanned (Exim 4.71)
	(envelope-from <oitofelix@HIDDEN>) id 1Rw43o-00056u-8d
	for submit <at>; Fri, 10 Feb 2012 22:55:41 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from ([]:43219)
	by with esmtp (Exim 4.71)
	(envelope-from <oitofelix@HIDDEN>) id 1Rw43o-00056P-73
	for submit <at>; Fri, 10 Feb 2012 22:55:40 -0500
Received: from ([]:54890)
	by with esmtp (Exim 4.71)
	(envelope-from <oitofelix@HIDDEN>) id 1Rw43m-0004kG-JD
	for bug-gnu-emacs@HIDDEN; Fri, 10 Feb 2012 22:55:40 -0500
Received: from Debian-exim by with spam-scanned (Exim 4.71)
	(envelope-from <oitofelix@HIDDEN>) id 1Rw43k-00056A-Fd
	for bug-gnu-emacs@HIDDEN; Fri, 10 Feb 2012 22:55:38 -0500
Received: from ([]:45464)
	by with esmtp (Exim 4.71)
	(envelope-from <oitofelix@HIDDEN>) id 1Rw43k-000564-BE
	for bug-gnu-emacs@HIDDEN; Fri, 10 Feb 2012 22:55:36 -0500
Received: by ggnf1 with SMTP id f1so2213364ggn.0
	for <bug-gnu-emacs@HIDDEN>; Fri, 10 Feb 2012 19:55:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma;
Received: by with SMTP id w45mr11821774yhk.96.1328932535191;
	Fri, 10 Feb 2012 19:55:35 -0800 (PST)
Received: from felix-laptop.gnung.gnung ([])
	by with ESMTPS id p63sm12924929yhj.22.2012.
	(version=TLSv1/SSLv3 cipher=OTHER);
	Fri, 10 Feb 2012 19:55:34 -0800 (PST)
From: oitofelix@HIDDEN (Bruno =?utf-8?Q?F=C3=A9lix?= Rezende Ribeiro)
To: bug-gnu-emacs@HIDDEN
Subject: 23.4;
	hs-hide-* functions don't honor page break in Emacs-Lisp major mode
	(and probably others too)
Date: Sat, 11 Feb 2012 01:59:28 -0200
Message-ID: <87vcnem34v.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by Genre and OS details not
X-detected-operating-system: by GNU/Linux 2.6 (newer, 3)
X-Spam-Score: -3.4 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at>
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <>
List-Unsubscribe: <>,
	<mailto:debbugs-submit-request <at>>
List-Archive: <>
List-Post: <mailto:debbugs-submit <at>>
List-Help: <mailto:debbugs-submit-request <at>>
List-Subscribe: <>,
	<mailto:debbugs-submit-request <at>>
Sender: debbugs-submit-bounces <at>
Errors-To: debbugs-submit-bounces <at>
X-Spam-Score: -3.4 (---)

Suppose that you have a buffer with Emacs-Lisp major mode and hs minor
mode enabled and into it a piece of code like this: (where ^L indicates
page break)


;; here is only a foo comment for a commented bar function
;; (defun my-bar-function () nil)

;; here is another foo comment for another commented bar function
;; (defun my-second-bar-function () nil)


Now, if you run hs-hide-all command the text appears like this:


;; here is only a foo comment for a commented bar function...


It's very annoying.  I often comment consecutive functions and
hs-hide-all don't honor sequential newlines.  So, I was breaked page
hoping that my functions were kept separated.  But that didn't happen.
This bug report is to suggest developers to make hs-hide-* functions
respect page breaks for this and others major modes too.

Thanks for your attention.

In GNU Emacs 23.4.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2012-02-08 on felix-laptop
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
configured using `configure  '--with-x-toolkit=3Dathena' '--with-crt-dir=3D=
/usr/lib/i386-linux-gnu' 'CFLAGS=3D-O3''

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: nil
  value of $LANG: pt_BR.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  gpm-mouse-mode: t
  shell-dirtrack-mode: t
  which-function-mode: t
  server-mode: t
  display-time-mode: t
  display-battery-mode: t
  desktop-save-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  hs-minor-mode: t

Recent input:
] C-x ] C-x ] C-x ] C-x ] C-x ] C-x ] C-x ] C-c @ C-M-h=20
C-c @ C-M-s C-n C-x ] C-n C-n C-n C-n C-n C-a C-SPC=20
C-n C-n C-n C-n C-n C-n C-n C-w <backspace> <up> <up>=20
<up> <up> <up> <up> <up> <up> <right> <right> ; <down>=20
<down> <up> <up> <down> C-c @ C-c C-c @ C-c C-c @ C-c=20
C-c @ C-c <down> <down> <down> <down> <down> <down>=20
<up> <down> <up> <up> <up> ( ) <backspace> <backspace>=20
n i l <return> <backspace> <backspace> <backspace>=20
<backspace> <return> <backspace> <up> <up> <down> <down>=20
<down> <down> <down> <down> <down> <down> <up> <up>=20
<up> <up> <up> <up> <up> <up> <up> <down> <down> <down>=20
<down> C-b C-n C-n C-p C-n C-c @ C-g C-p C-p C-p C-p=20
C-n C-c @ C-c C-c @ C-c C-f C-f C-d C-e C-a C-n C-e=20
C-n C-e C-a M-x r e p o r t <tab> b u <tab> e m a c=20
s <tab> <M-backspace> C-k <M-backspace> e m a c s -=20
<tab> <M-backspace> <M-backspace> r e p o r t <tab>=20
C-g C-e M-x r e p o r <tab> <tab> e m a <tab> b u <tab>=20
<return> W <backspace> h s SPC m i n o r SPC C-g C-a=20
C-h c C-c @ C-M-h M-x h s - h o <tab> <backspace> i=20
<tab> <tab> C-g M-x <up> C-k h f - <backspace> <backspace>=20
s - h i <tab> - <backspace> i n i <tab> <return> M->=20
M-> M-< M-< C-c @ C-c M-> M-> C-p C-p C-p C-p C-p C-p=20
C-p M-x h s - <M-backspace> M-x M-x h s - h i d e <tab>=20
<tab> C-g M-x r e p o r t - e m a c s - b u g <ret

Recent messages:
Making completion list...
Mark set [6 times]
call-interactively: Command attempted to use minibuffer while in minibuffer
Making completion list...
Checking spelling of RESPECT...
RESPECT is correct
call-interactively: End of buffer [2 times]

Load-path shadows:
/usr/local/share/emacs/site-lisp/emms/tq hides /usr/local/share/emacs/23.4/=

(shadow emacsbug term ehelp make-mode ffap t-mouse re-builder starttls
mailalias smtpmail sendmail spam-stat nnmairix nnml nnir mm-url
gnus-soup gnus-sieve deuglify gnus-uu yenc gnus-eform gnus-dup
gnus-diary nndiary gnus-demon gnus-delay gnus-draft gnus-bookmark
dired-aux shell comint descr-text quail bookmark crm xesam url url-proxy
url-privacy url-expand url-methods url-history url-cookie url-util
url-parse dbus url-vars org org-footnote org-src org-list org-faces
org-compat org-macs metamail etags thumbs image-file image-dired
gnus-audio man assoc locate bib-mode newcomment debug uniquify warnings
spell ses advice advice-preload unsafep rcirc newst-backend xml derived
mpc ispell htmlfontify ring esh-var esh-io esh-cmd esh-ext esh-proc
esh-arg eldoc help-fns esh-groups eshell esh-module esh-mode esh-util
erc-goodies erc erc-backend erc-compat pp cal-menu calendar cal-loaddefs
calc calc-loaddefs calc-macs ebnf2ps ps-print ps-def lpr cus-edit
add-log foldout noutline outline finder finder-inf find-func lisp-mnt
goto-addr tmm electric help-mode view thingatpt w3m-search multi-isearch
w3m-form mule-util w3m-cookie w3m-bookmark w3m-tabmenu w3m-session w3m
doc-view jka-compr image-mode w3m-hist w3m-fb bookmark-w3m w3m-ems
w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util browse-url gnus-fun
flow-fill sort gnus-cite smiley ansi-color mail-extr gnus-async
gnus-bcklg byte-opt bytecomp byte-compile gnus-ml disp-table gnus-topic
parse-time timezone utf-7 utf7 nnimap imap nndraft nnmh auth-source
gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art
mm-uu mml2015 epg-config mm-view smime dig nntp gnus-cache gnus-sum nnoo
gnus-group gnus-undo nnmail mail-source format-spec gnus-start gnus-spec
gnus-int gnus-range gnus-win hideshow message ecomplete rfc822 mml
mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse
rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev gmm-utils mailheader
canlock sha1 hex-util hashcash info easymenu w3m-load
espeak-key-bindings espeak-core espeak-customize espeak-elisp-facilities
espeak emms-playing-time emms-player-mpg321-remote emms-cache
emms-info-ogginfo emms-info-mp3info emms-info later-do
emms-player-mplayer emms-player-simple emms-volume easy-mmode
emms-volume-amixer emms-playlist-mode emms-source-playlist
emms-source-file dired regexp-opt emms-setup emms emms-compat edmacro
kmacro preview-latex tex-site auto-loads windmove which-func imenu
server gnus gnus-ems nnheader gnus-util netrc time-date mail-utils
mm-util mail-prsvr wid-edit time battery desktop cus-start cus-load
tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
font-setting tool-bar dnd fontset image fringe lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button
minibuffer faces cus-face files text-properties overlay md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind system-font-setting
font-render-setting x-toolkit x multi-tty emacs)

Bruno F=C3=A9lix Rezende Ribeiro (oitofelix)

Ps: Please, let me know my english errors

Acknowledgement sent to oitofelix@HIDDEN (Bruno Félix Rezende Ribeiro):
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#10787; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.