Package: emacs21
Version: 21.4a-1
Severity: normal

I wanted to show the non-comment lines in a config file I was editing,
so I tried to use the M-x occur (a.k.a. list-matching-lines) command
with the regexp "^[^#]" (without the quotes).  This failed with "Args
out of range: NUMBER NUMBER".  It turns out that the [^#] fragment
also matches the newline character, which I was not expecting, since
the documentation for the "occur" command says "Display a list showing
each *line* in the buffer that contains a match..." (my emphasis).

The current behaviour is not useful, inconsistent with documentation,
and an nuisance to the use of the command.  I consider it a bug; in my
opinion it should be changed to not match the newline character.

/Teddy

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.16-2-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages emacs21 depends on:
ii  emacs21-bin-common 21.4a-1               The GNU Emacs editor's shared, arc
ii  libc6              2.3.2.ds1-22sarge4    GNU C Library: Shared libraries an
ii  libice6            4.3.0.dfsg.1-14sarge1 Inter-Client Exchange library
ii  libjpeg62          6b-10                 The Independent JPEG Group's JPEG 
ii  libncurses5        5.4-4                 Shared libraries for terminal hand
ii  libpng12-0         1.2.8rel-1            PNG library - runtime
ii  libsm6             4.3.0.dfsg.1-14sarge1 X Window System Session Management
ii  libtiff4           3.7.2-5               Tag Image File Format (TIFF) libra
ii  libungif4g         4.1.3-2sarge1         shared library for GIF images (run
ii  libx11-6           4.3.0.dfsg.1-14sarge1 X Window System protocol client li
ii  libxext6           4.3.0.dfsg.1-14sarge1 X Window System miscellaneous exte
ii  libxmu6            4.3.0.dfsg.1-14sarge1 X Window System miscellaneous util
ii  libxpm4            4.3.0.dfsg.1-14sarge1 X pixmap library
ii  libxt6             4.3.0.dfsg.1-14sarge1 X Toolkit Intrinsics
ii  xaw3dg             1.5+E-8               Xaw3d widget set
ii  xlibs              4.3.0.dfsg.1-14sarge1 X Keyboard Extension (XKB) configu
ii  zlib1g             1:1.2.2-4.sarge.2     compression library - runtime

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to