all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Theodor Rascanu <erazortt@googlemail.com>
To: 6158@debbugs.gnu.org
Subject: bug#6158:
Date: Thu, 27 May 2010 00:53:02 +0200	[thread overview]
Message-ID: <AANLkTikELau8zoBPuWvWkWBM9c1GXCPUY6uljkqz6Uvl@mail.gmail.com> (raw)
In-Reply-To: <r2q5c5a58da1005100832l8e07a0aek4bfd74b063b64ab4@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 57 bytes --]

Hi again,

here a enhanced version of the patch.

greets

[-- Attachment #1.2: Type: text/html, Size: 73 bytes --]

[-- Attachment #2: emacs-hideshow_comment.patch --]
[-- Type: text/x-patch, Size: 783 bytes --]

--- lisp/progmodes/hideshow.el.orig	2010-05-12 18:28:06.543936429 +0200
+++ lisp/progmodes/hideshow.el	2010-05-12 18:27:40.212936751 +0200
@@ -691,9 +691,11 @@ Return point, or nil if original point w
       ;; look backward for the start of a block that contains the cursor
       (while (and (re-search-backward hs-block-start-regexp nil t)
                   (not (setq done
-                             (< here (save-excursion
-                                       (hs-forward-sexp (match-data t) 1)
-                                       (point)))))))
+			     (and (< here 
+				     (save-excursion
+				       (hs-forward-sexp (match-data t) 1)
+				       (point)))
+				  (eq (hs-inside-comment-p) nil))))))
       (if done
           (point)
         (goto-char here)

      reply	other threads:[~2010-05-26 22:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-10 15:32 bug#6158: bug in hideshow (trunk) Theodor Rascanu
2010-05-26 22:53 ` Theodor Rascanu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTikELau8zoBPuWvWkWBM9c1GXCPUY6uljkqz6Uvl@mail.gmail.com \
    --to=erazortt@googlemail.com \
    --cc=6158@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.