GNU bug report logs - #12748
24.2.50; doc fix for `just-one-space'

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Sun, 28 Oct 2012 13:52:02 UTC

Severity: minor

Found in version 24.2.50

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12748 in the body.
You can then email your comments to 12748 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12748; Package emacs. (Sun, 28 Oct 2012 13:52:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dani Moncayo <dmoncayo <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 28 Oct 2012 13:52:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.50; doc fix for `just-one-space'
Date: Sun, 28 Oct 2012 14:48:32 +0100
I propose this patch for fixing a documentation bug:

=== modified file 'doc/emacs/killing.texi'
--- doc/emacs/killing.texi      2012-09-30 09:18:38 +0000
+++ doc/emacs/killing.texi      2012-10-28 13:40:52 +0000
@@ -123,7 +123,7 @@
 (even if there were none before).  With a numeric argument @var{n}, it
 leaves @var{n} spaces before point if @var{n} is positive; if @var{n}
 is negative, it deletes newlines in addition to spaces and tabs,
-leaving a single space before point.
+leaving @var{-n} spaces before point.

   @kbd{C-x C-o} (@code{delete-blank-lines}) deletes all blank lines
 after the current line.  If the current line is blank, it deletes all


=== modified file 'lisp/simple.el'
--- lisp/simple.el      2012-10-07 22:31:58 +0000
+++ lisp/simple.el      2012-10-28 13:43:45 +0000
@@ -744,7 +744,7 @@

 (defun just-one-space (&optional n)
   "Delete all spaces and tabs around point, leaving one space (or N spaces).
-If N is negative, delete newlines as well."
+If N is negative, delete newlines as well, leaving (-N) spaces."
   (interactive "*p")
   (unless n (setq n 1))
   (let ((orig-pos (point))




In GNU Emacs 24.2.50.1 (i386-mingw-nt6.1.7601)
 of 2012-10-28 on DANI-PC
Bzr revision: 110699 rgm <at> gnu.org-20121028023436-4hvcv5dsjz1g9hg7
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --with-gcc (4.7) --no-opt --enable-checking --cflags
 -I../../libs/libxpm-3.5.8/include -I../../libs/libxpm-3.5.8/src
 -I../../libs/libpng-1.4.10 -I../../libs/zlib-1.2.6
 -I../../libs/giflib-4.1.4-1/include -I../../libs/jpeg-6b-4/include
 -I../../libs/tiff-3.8.2-1/include
 -I../../libs/libxml2-2.7.8-w32-bin/include/libxml2
 -I../../libs/gnutls-3.0.16/include
 -I../../libs/libiconv-1.14-2-mingw32-dev/include'

Important settings:
  value of $LANG: en_US.UTF8
  locale-coding-system: cp1252
  default enable-multibyte-characters: t


-- 
Dani Moncayo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12748; Package emacs. (Sun, 28 Oct 2012 16:45:01 GMT) Full text and rfc822 format available.

Message #8 received at 12748 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 12748 <at> debbugs.gnu.org
Subject: Re: bug#12748: 24.2.50; doc fix for `just-one-space'
Date: Sun, 28 Oct 2012 18:42:03 +0200
> Date: Sun, 28 Oct 2012 14:48:32 +0100
> From: Dani Moncayo <dmoncayo <at> gmail.com>
> 
> I propose this patch for fixing a documentation bug:

Thanks.

> === modified file 'doc/emacs/killing.texi'
> --- doc/emacs/killing.texi      2012-09-30 09:18:38 +0000
> +++ doc/emacs/killing.texi      2012-10-28 13:40:52 +0000
> @@ -123,7 +123,7 @@
>  (even if there were none before).  With a numeric argument @var{n}, it
>  leaves @var{n} spaces before point if @var{n} is positive; if @var{n}
>  is negative, it deletes newlines in addition to spaces and tabs,
> -leaving a single space before point.
> +leaving @var{-n} spaces before point.

"Leaving -N spaces" is sub-optimal English, IMO.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12748; Package emacs. (Sun, 28 Oct 2012 16:51:01 GMT) Full text and rfc822 format available.

Message #11 received at 12748 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 12748 <at> debbugs.gnu.org
Subject: Re: bug#12748: 24.2.50; doc fix for `just-one-space'
Date: Sun, 28 Oct 2012 17:48:20 +0100
> "Leaving -N spaces" is sub-optimal English, IMO.

My current English skills are not very strong.  So feel free to
improve the patch.

-- 
Dani Moncayo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12748; Package emacs. (Sun, 28 Oct 2012 18:53:02 GMT) Full text and rfc822 format available.

Message #14 received at 12748 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 12748 <at> debbugs.gnu.org
Subject: Re: bug#12748: 24.2.50; doc fix for `just-one-space'
Date: Sun, 28 Oct 2012 19:49:53 +0100
On Sun, Oct 28, 2012 at 5:48 PM, Dani Moncayo <dmoncayo <at> gmail.com> wrote:
>> "Leaving -N spaces" is sub-optimal English, IMO.
>
> My current English skills are not very strong.  So feel free to
> improve the patch.

But out of curiosity: what's wrong with "Leaving -N spaces"?


-- 
Dani Moncayo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12748; Package emacs. (Sun, 28 Oct 2012 19:30:01 GMT) Full text and rfc822 format available.

Message #17 received at 12748 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 12748 <at> debbugs.gnu.org
Subject: Re: bug#12748: 24.2.50; doc fix for `just-one-space'
Date: Sun, 28 Oct 2012 21:27:13 +0200
> Date: Sun, 28 Oct 2012 19:49:53 +0100
> From: Dani Moncayo <dmoncayo <at> gmail.com>
> Cc: 12748 <at> debbugs.gnu.org
> 
> On Sun, Oct 28, 2012 at 5:48 PM, Dani Moncayo <dmoncayo <at> gmail.com> wrote:
> >> "Leaving -N spaces" is sub-optimal English, IMO.
> >
> > My current English skills are not very strong.  So feel free to
> > improve the patch.
> 
> But out of curiosity: what's wrong with "Leaving -N spaces"?

It is susceptible to misinterpretation and misunderstanding by those
who don't hold a Ph.D. degree in math.




Reply sent to Chong Yidong <cyd <at> gnu.org>:
You have taken responsibility. (Sat, 08 Dec 2012 03:28:03 GMT) Full text and rfc822 format available.

Notification sent to Dani Moncayo <dmoncayo <at> gmail.com>:
bug acknowledged by developer. (Sat, 08 Dec 2012 03:28:04 GMT) Full text and rfc822 format available.

Message #22 received at 12748-done <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 12748-done <at> debbugs.gnu.org
Subject: Re: bug#12748: 24.2.50; doc fix for `just-one-space'
Date: Sat, 08 Dec 2012 11:26:38 +0800
Dani Moncayo <dmoncayo <at> gmail.com> writes:

> -leaving a single space before point.
> +leaving @var{-n} spaces before point.

Seems OK to me.  Committed, thanks.


Eli Zaretskii <eliz <at> gnu.org> writes:

> "Leaving -N spaces" is sub-optimal English, IMO.

It's understandable enough, I think.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 05 Jan 2013 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 227 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.