Your message dated Fri, 23 May 2014 11:55:10 -0700 (PDT)
with message-id <[email protected]>
and subject line Re: Bug#236147
has caused the Debian Bug report #236147,
regarding emacs21-el: comment-region: treat C-u - arg as C-u
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
236147: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=236147
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: emacs21-el
Version: 21.3+1-4
Severity: wishlist
Tags: patch, upstream
File: /usr/share/emacs/21.3/lisp/newcomment.el

When commenting and uncommenting regions with `comment-region' (C-c C-c
in Java mode, for example), it's reasonable to expect an unqualified
negative argument (C-u - or C-- where available) to do the default
uncomment thing.  But only the unqualified positive argument (C-u) does
so.  Here's a patch to make C-- C-c C-c act as `uncomment-region'.  It
does not affect explicit negative arguments such as C-u - 1 C-c C-c or
C-- C-1 C-c C-c.

--- /usr/share/emacs/21.3/lisp/newcomment.el	2003-10-31 18:30:36.000000000 +0000
+++ /tmp/newcomment.el	2004-03-04 14:37:35.000000000 +0000
@@ -856,7 +856,7 @@
     (unless (or lines (string= "" comment-end)) (setq block nil))
 
     (cond
-     ((consp arg) (uncomment-region beg end))
+     ((or (consp arg) (equal arg '-)) (uncomment-region beg end))
      ((< numarg 0) (uncomment-region beg end (- numarg)))
      (t
       (setq numarg (if (and (null arg) (= (length comment-start) 1))
-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (300, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.24
Locale: LANG=en_GB, LC_CTYPE=en_GB (ignored: LC_ALL set to en_GB)

Versions of packages emacs21-el depends on:
ii  emacs21-common                21.3+1-4   The GNU Emacs editor's common infr

-- no debconf information


--- End Message ---
--- Begin Message ---
Version: 22.1

Running: C-- C-C C-c
on a line:   // foo
in Java mode uncomments it, since Emacs 22.1.
If you think more changes are still needed in the current Emacs version, 24.3,
I suggest opening a new report directly with upstream Emacs.

--- End Message ---

Reply via email to