From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: oitofelix@gmail.com (Bruno =?UTF-8?Q?F=C3=A9lix?= Rezende Ribeiro) Newsgroups: gmane.emacs.bugs Subject: bug#10787: 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@felix-laptop.gnung> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1328932612 11362 80.91.229.3 (11 Feb 2012 03:56:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Feb 2012 03:56:52 +0000 (UTC) To: 10787@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 11 04:56:52 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rw44x-0008Nv-RI for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Feb 2012 04:56:52 +0100 Original-Received: from localhost ([::1]:51714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rw44x-0004po-6c for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Feb 2012 22:56:51 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:54974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rw44t-0004pU-Og for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 22:56:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rw44s-00059B-GE for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 22:56:47 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rw44s-000596-EU for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 22:56:46 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rw466-000810-Hx for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 22:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: oitofelix@gmail.com (Bruno =?UTF-8?Q?F=C3=A9lix?= Rezende Ribeiro) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Feb 2012 03:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10787 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.132893262930743 (code B ref -1); Sat, 11 Feb 2012 03:58:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Feb 2012 03:57:09 +0000 Original-Received: from localhost ([127.0.0.1]:35491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rw45E-0007zn-67 for submit@debbugs.gnu.org; Fri, 10 Feb 2012 22:57:09 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40819) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rw459-0007zH-4k for submit@debbugs.gnu.org; Fri, 10 Feb 2012 22:57:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rw43o-00056u-8d for submit@debbugs.gnu.org; Fri, 10 Feb 2012 22:55:41 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:43219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rw43o-00056P-73 for submit@debbugs.gnu.org; Fri, 10 Feb 2012 22:55:40 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:54890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rw43m-0004kG-JD for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 22:55:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rw43k-00056A-Fd for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 22:55:38 -0500 Original-Received: from mail-gx0-f169.google.com ([209.85.161.169]:45464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rw43k-000564-BE for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 22:55:36 -0500 Original-Received: by ggnf1 with SMTP id f1so2213364ggn.0 for ; Fri, 10 Feb 2012 19:55:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version :content-type:content-transfer-encoding; bh=M+zwXBDr2hscO44AdGO6fYn1U3HY/ZdecUKlAMKABUo=; b=XrvrDyraEfBFyQLgY/GF7UrkePK2cgFKF3e84+RAcUFOG616eRDy3lAHdUHiPr+ctH yKPlBuP2VZVnkarMrqIxQw4/JznI4vTKdi8sRaK1I2NCdI2ANvjGpui3gkzhy7rFmMug +ihTMbrw8TGS9Fva6z/+vH02mQ234FKqScbVo= Original-Received: by 10.236.161.197 with SMTP id w45mr11821774yhk.96.1328932535191; Fri, 10 Feb 2012 19:55:35 -0800 (PST) Original-Received: from felix-laptop.gnung.gnung ([177.48.198.10]) by mx.google.com with ESMTPS id p63sm12924929yhj.22.2012.02.10.19.55.24 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Feb 2012 19:55:34 -0800 (PST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) 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-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-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:56785 Archived-At: 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) ^L ;; 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 =20 ; =20 C-c @ C-c C-c @ C-c C-c @ C-c=20 C-c @ C-c =20 ( ) =20 n i l =20 =20 =20 =20 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 b u e m a c=20 s C-k e m a c s -=20 r e p o r t =20 C-g C-e M-x r e p o r e m a b u =20 W 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 i=20 C-g M-x C-k h f - =20 s - h i - i n i 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-x M-x h s - h i d e =20 C-g M-x r e p o r t - e m a c s - b u g Recent messages: Making completion list... Quit Mark set [6 times] call-interactively: Command attempted to use minibuffer while in minibuffer Quit Making completion list... Quit 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/= lisp/emacs-lisp/tq Features: (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) --=20 Bruno F=C3=A9lix Rezende Ribeiro (oitofelix) Ps: Please, let me know my english errors