From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: ispell-region with M-$ in transient-mark-mode Date: Wed, 19 Jan 2005 09:46:48 +0200 Organization: JURTA Message-ID: <87hdldkgim.fsf@jurta.org> References: <87zmz7m2qr.fsf@jurta.org> <01c4fd95$Blat.v2.2.2$b13f8120@zahav.net.il> <87651u6w4g.fsf@jurta.org> <01c4fde1$Blat.v2.2.2$f4f851c0@zahav.net.il> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1106123078 32272 80.91.229.6 (19 Jan 2005 08:24:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Jan 2005 08:24:38 +0000 (UTC) Cc: k.stevens@ieee.org, ispell-el-bugs@itcorp.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 19 09:24:30 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CrB8g-0004bP-00 for ; Wed, 19 Jan 2005 09:24:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CrBKc-0003wi-SE for ged-emacs-devel@m.gmane.org; Wed, 19 Jan 2005 03:36:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CrBHY-0003RU-BI for emacs-devel@gnu.org; Wed, 19 Jan 2005 03:33:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CrBH9-0003LJ-79 for emacs-devel@gnu.org; Wed, 19 Jan 2005 03:33:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CrBH6-0003Fv-QS for emacs-devel@gnu.org; Wed, 19 Jan 2005 03:33:13 -0500 Original-Received: from [194.126.101.111] (helo=MXR-4.estpak.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CrAqR-00066A-UB; Wed, 19 Jan 2005 03:05:40 -0500 Original-Received: from mail.neti.ee (80-235-33-91-dsl.mus.estpak.ee [80.235.33.91]) by MXR-4.estpak.ee (Postfix) with ESMTP id 29A40112D31; Wed, 19 Jan 2005 10:05:21 +0200 (EET) Original-To: Eli Zaretskii In-Reply-To: <01c4fde1$Blat.v2.2.2$f4f851c0@zahav.net.il> (Eli Zaretskii's message of "Wed, 19 Jan 2005 06:46:16 +0200") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:32366 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32366 "Eli Zaretskii" writes: >> From: Juri Linkov >> It's very intuitive to work on the active region when the user has >> explicitly selected it in Transient Mark mode. > > Yes. But word commands are IMHO not the ones that should be sensitive > to active region. Word commands executed on active regions can be interpreted as commands that should operate on every word in the region. >> I suggested to add this to `ispell-word' because M-$ is only one >> keybinding available to active ispell. > > If that's the main reason, let's have a key binding for ispell-region. > (Of course, you can always bind it yourself if this is so important > for you.) I have plenty of personal key bindings in my .emacs. What I want is to make default key bindings useful for most Emacs users. Adding a new key binding for ispell-region is not a bad solution. Perhaps most natural is `C-x M-$' by analogy with `M-u' - `C-x C-u', and `M-l' - `C-x C-l'. And also `fill-region' could be bound to `C-x M-q', and `eval-region' to `C-x C-M-x'. I also have a better idea for ispell-region. Currently `C-u M-$' resumes spell-checking interrupted by the `X' command. When there is no interrupted ispell session then `C-u M-$' just displays the message: No session to continue. Use 'X' command when checking! Instead of this, I propose to call the command `ispell' which already checks a region or a buffer depending on the values of `transient-mark-mode' and `mark-active'. -- Juri Linkov http://www.jurta.org/emacs/