emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: M-\ does not work with prefix argument as documented


From: Dieter Wilhelm
Subject: Re: M-\ does not work with prefix argument as documented
Date: Wed, 20 Dec 2006 14:26:13 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

Richard Stallman <address@hidden> writes:

>     Yes I realised that and I wondered why he didn't use your patch, maybe
>     he has just overlooked it, I'll ask.
>
> I did not use that patch because I decided not to add a new feature.

I'm sorry for the confusion I caused. (I thought it were accepted by
all that new features are only welcome after the release, I just
wanted to test the reception of such an idea in general.)

Kevin didn't add a new feature either, he was just concerned about the
documentation (please have a look below, I think the changes are very
good).



2006-12-13  Kevin Rodgers  <address@hidden>

        * simple.el (delete-horizontal-space): Bind optional BACKWARD-ONLY
        arg to interactive prefix arg, and update doc string.

        * killing.texi (Deletion): Describe `M-\'
        (delete-horizontal-space) prefix argument.


*** simple.el.orig      2006-12-04 05:51:48 -0000
--- simple.el   2006-12-13 09:40:19.509429600 -0700
***************
*** 706,713 ****

  (defun delete-horizontal-space (&optional backward-only)
    "Delete all spaces and tabs around point.
! If BACKWARD-ONLY is non-nil, only delete spaces before point."
!   (interactive "*")
    (let ((orig-pos (point)))
      (delete-region
       (if backward-only
--- 706,713 ----

  (defun delete-horizontal-space (&optional backward-only)
    "Delete all spaces and tabs around point.
! With prefix arg BACKWARD-ONLY, only delete spaces and tabs before point."
!   (interactive "*P")
    (let ((orig-pos (point)))
      (delete-region
       (if backward-only


*** killing.texi.orig   2006-07-24 17:46:22 -0000
--- killing.texi        2006-12-13 09:39:38 -0700
***************
*** 148,154 ****
    The other delete commands are those which delete only whitespace
  characters: spaces, tabs and newlines.  @kbd{M-\}
  (@code{delete-horizontal-space}) deletes all the spaces and tab
! characters before and after point.  @address@hidden
  (@code{just-one-space}) does likewise but leaves a single space after
  point, regardless of the number of spaces that existed previously (even
  if there were none before).  With a numeric argument @var{n}, it
--- 148,155 ----
    The other delete commands are those which delete only whitespace
  characters: spaces, tabs and newlines.  @kbd{M-\}
  (@code{delete-horizontal-space}) deletes all the spaces and tab
! characters before and after point.  With a prefix argument, it only
! delete spaces and tabs before point.  @address@hidden
  (@code{just-one-space}) does likewise but leaves a single space after
  point, regardless of the number of spaces that existed previously (even
  if there were none before).  With a numeric argument @var{n}, it

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany




reply via email to

[Prev in Thread] Current Thread [Next in Thread]