unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* cperl mode hangs when used with narrowing under certain conditions
@ 2002-11-20 11:54 Martin Jost
  2002-11-21 17:11 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Jost @ 2002-11-20 11:54 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1643 bytes --]

Hello,

I just discovered a problem that makes my emacs (21.2 on HPUX 10.20) hang.
[First of all:
Congratulations (I _really_ mean this !)
This is the first problem  in emacs for many year which breaks it]

System:
emacs 21.2 on HPUX 10.20
Compiled with HP tools and Motif
Perl/Micro-docs/Cperl-version gives: The version of master-file for this
CPerl is 4.32

Reproduce:
Start emacs with '-q' and probably --no-site-file (see below)
Load this into a buffer:
-------------------- snip, snip -----------------------
{
  #  'next LINE;'
  #  'next PAT;
}
-------------------- snip, snip -----------------------

Switch cperl-mode on
Narrow the buffer down to the region starting with the first comment-line
and ending with the last.
(It now should look like this:
  #  'next LINE;'
  #  'next PAT;
)

Position the cursor on the beginning of the first comment-line
Press <TAB>
=> emacs freezes; it has to be killed

This happens for me with both cperl 4.32 and 4.23 (coming with emacs)
I have to use the site-start-file to get the newer one:
This just contains:
(setq load-path
      (append (list "/pd/site-lisp/"
                          "/pd/site-lisp/pcl-cvs")
                                        load-path))

                                        (msb-mode)

TIA - and thanks for a great tool for a great language !

Martin

PS:
I thought, that cperl got confused because of the keywords in the comment.
But this
-------------------- snip, snip -----------------------
{
  #  fdgshj dsghsdj öjmäcxm
  #  dsfj gdsjdgs ljdsfhl
}
-------------------- snip, snip -----------------------
gives the same behaviour ! (Only tested with 4.32)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cperl mode hangs when used with narrowing under certain conditions
  2002-11-20 11:54 cperl mode hangs when used with narrowing under certain conditions Martin Jost
@ 2002-11-21 17:11 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2002-11-21 17:11 UTC (permalink / raw)
  Cc: gnu-emacs-bug

Could you get the latest code from CVS on savannah.gnu.org
and see if it still fails?

    Press <TAB>
    => emacs freezes; it has to be killed

Does C-g work?

Could you debug it with GDB and see what it is doing?
It might be looping; see etc/DEBUG for advice about
how to investigate an endless loop in Emacs.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-21 17:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-20 11:54 cperl mode hangs when used with narrowing under certain conditions Martin Jost
2002-11-21 17:11 ` Richard Stallman

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).