GNU bug report logs - #8189
24.0.50; indenting region with TAB deactivates region

Previous Next

Package: emacs;

Reported by: Gregor Zattler <telegraph <at> gmx.net>

Date: Sun, 6 Mar 2011 16:23:01 UTC

Severity: wishlist

Found in version 24.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.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 8189 in the body.
You can then email your comments to 8189 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 owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8189; Package emacs. (Sun, 06 Mar 2011 16:23:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gregor Zattler <telegraph <at> gmx.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 06 Mar 2011 16:23:01 GMT) Full text and rfc822 format available.

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

From: Gregor Zattler <telegraph <at> gmx.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; indenting region with TAB deactivates region
Date: Sun, 06 Mar 2011 17:22:03 +0100
This is a wishlist bug, since it seems quite usefull if it was possible
to indent a region several times without the necessity to reactivate the
region:

 - Start Emacs (emacs -Q)
 - Set text-mode in the *scratch* buffer. (text-mode).
 - Select the first 3 lines.
 - Type <TAB>

What I was expecting:
 - The selected lines move to the next tab-stop.
 - The region remains active, so that I can repeat the indentation
   several times in a row.

What I see:
 - The indentation of the lines depends on emacs version
   (regression bug filed as bug #8187, see
    http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8187)
 - The region is deactivated.

This bug report is about deactivating the region.  I don't know if it's
easy to fix this but it would be nice if it would be possible to indent
the region several times by simply hitting TAB several times.

[Bug report stolen from:
   From: Dani Moncayo <dmoncayo <at> gmail.com>
   Date: Sat, 5 Mar 2011 00:17:46 +0100
   Message-ID: <AANLkTikY9vi0EQf-g3HyUv=0smRCj2nBwFsGoGB6y2an <at> mail.gmail.com>
   To: help-gnu-emacs <at> gnu.org
   Subject: Indenting paragraphs manually
]


Thanks for your attention, Gregor




In GNU Emacs 24.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2011-02-25 on keller, modified by Debian
 (emacs-snapshot package, version 1:20110224-1)
Windowing system distributor `The X.Org Foundation', version 11.0.10904000
configured using `configure  '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.0.50/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-x=yes' '--with-x-toolkit=gtk' '--with-imagemagick=yes' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: de_DE.utf8
  value of $LC_CTYPE: de_DE.utf8
  value of $LC_MESSAGES: POSIX
  value of $LC_MONETARY: de_DE.utf8
  value of $LC_NUMERIC: de_DE.utf8
  value of $LC_TIME: de_DE.utf8
  value of $LANG: de_DE.utf8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k 
<down> <down> <down> <down> <down> <down> C-y <down> 
<down> <up> <delete> <delete> <delete> <delete> <right> 
<right> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <prior> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <prior> 
<prior> <prior> <prior> <prior> <prior> <prior> <down> 
<down> <down> <prior> <prior> <prior> <prior> <prior> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <down> <left> <left> <left> <left> <right> 
<right> <backspace> <backspace> n e t <left> <left> 
<left> <left> <left> <left> <left> <left> <backspace> 
<backspace> <backspace> <backspace> t e l e g r a p 
h C-a C-k C-k C-y C-y <up> B c c : SPC <down> <down> 
<down> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> C-c C-c y e s <return> 
M-x <up> <return>

Recent messages:
Mark set
byte-code: End of buffer [24 times]
scroll-down-command: Beginning of buffer [7 times]
byte-code: Beginning of buffer [4 times]
Mark set [2 times]
byte-code: Beginning of buffer [8 times]
Auto-saving...done
Sending...
Sending via mail...
Sending...done

Load-path shadows:
/usr/share/emacs/24.0.50/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs/24.0.50/site-lisp/flim/hex-util hides /usr/share/emacs/24.0.50/lisp/hex-util
/usr/share/emacs/24.0.50/site-lisp/flim/sha1 hides /usr/share/emacs/24.0.50/lisp/sha1
/usr/share/emacs/24.0.50/site-lisp/flim/md4 hides /usr/share/emacs/24.0.50/lisp/md4
/usr/share/emacs/24.0.50/site-lisp/flim/sasl hides /usr/share/emacs/24.0.50/lisp/net/sasl
/usr/share/emacs/24.0.50/site-lisp/flim/hmac-md5 hides /usr/share/emacs/24.0.50/lisp/net/hmac-md5
/usr/share/emacs/24.0.50/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/24.0.50/lisp/net/sasl-ntlm
/usr/share/emacs/24.0.50/site-lisp/flim/ntlm hides /usr/share/emacs/24.0.50/lisp/net/ntlm
/usr/share/emacs/24.0.50/site-lisp/flim/hmac-def hides /usr/share/emacs/24.0.50/lisp/net/hmac-def
/usr/share/emacs/24.0.50/site-lisp/flim/sasl-cram hides /usr/share/emacs/24.0.50/lisp/net/sasl-cram
/usr/share/emacs/24.0.50/site-lisp/flim/sasl-digest hides /usr/share/emacs/24.0.50/lisp/net/sasl-digest
/usr/share/emacs/24.0.50/site-lisp/emms/tq hides /usr/share/emacs/24.0.50/lisp/emacs-lisp/tq

Features:
(rect newcomment help-mode view shadow sort mail-extr message sendmail
regexp-opt rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode
mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils
gmm-utils mailheader emacsbug url-util url-parse auth-source eieio
byte-opt bytecomp byte-compile assoc gnus-util time-date password-cache
url-vars mm-util mail-prsvr cus-start cus-load tooltip ediff-hook
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
fringe lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev loaddefs button minibuffer faces cus-face files text-properties
overlay md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
dynamic-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)




Severity set to 'wishlist' from 'normal' Request was from Gregor Zattler <telegraph <at> gmx.net> to control <at> debbugs.gnu.org. (Sun, 06 Mar 2011 16:26:03 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8189; Package emacs. (Sun, 06 Mar 2011 21:38:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Gregor Zattler <telegraph <at> gmx.net>
Cc: 8189 <at> debbugs.gnu.org
Subject: Re: bug#8189: 24.0.50; indenting region with TAB deactivates region
Date: Sun, 06 Mar 2011 16:37:32 -0500
> This bug report is about deactivating the region.  I don't know if it's
> easy to fix this but it would be nice if it would be possible to indent
> the region several times by simply hitting TAB several times.

The command usually bound to TAB is really meant for programming
languages, where it indents to "The Correct Indentation", so repeating
it makes no sense.

We could make it repeatable in text-mode buffers, but I suspect that
you'd also want to be able to "fine-tune" it or to un-indent in
a similar way, so maybe you want a more comprehensive solution.


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8189; Package emacs. (Sun, 06 Mar 2011 23:17:02 GMT) Full text and rfc822 format available.

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

From: Gregor Zattler <telegraph <at> gmx.net>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 8189 <at> debbugs.gnu.org
Subject: Re: bug#8189: 24.0.50; indenting region with TAB deactivates region
Date: Mon, 7 Mar 2011 00:15:23 +0100
Hi Stefan,
* Stefan Monnier <monnier <at> iro.umontreal.ca> [06. Mar. 2011]:
>> This bug report is about deactivating the region.  I don't know if it's
>> easy to fix this but it would be nice if it would be possible to indent
>> the region several times by simply hitting TAB several times.
> 
> The command usually bound to TAB is really meant for programming
> languages, where it indents to "The Correct Indentation", so repeating
> it makes no sense.

I see.  I don't program but it's the same in org-mode.
 
> We could make it repeatable in text-mode buffers, but I suspect that
> you'd also want to be able to "fine-tune" it or to un-indent in
> a similar way, so maybe you want a more comprehensive solution.

If there is no spacial structure (programming, lists, outlines)
simply indenting as often as TAB is pressed seems very natural to
me. 


Thanks again, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#8189; Package emacs. (Sat, 17 Jul 2021 15:01:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Gregor Zattler <telegraph <at> gmx.net>, 8189 <at> debbugs.gnu.org
Subject: Re: bug#8189: 24.0.50; indenting region with TAB deactivates region
Date: Sat, 17 Jul 2021 17:00:10 +0200
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>> This bug report is about deactivating the region.  I don't know if it's
>> easy to fix this but it would be nice if it would be possible to indent
>> the region several times by simply hitting TAB several times.
>
> The command usually bound to TAB is really meant for programming
> languages, where it indents to "The Correct Indentation", so repeating
> it makes no sense.

And besides this -- in buffers where it does make sense, it's easy
enough to reactivate the region (with `C-x C-x C-x C-x' or the like) and
then TAB again.

So I don't think it's worth it to establish more functionality for
TAB/region things, and I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 8189 <at> debbugs.gnu.org and Gregor Zattler <telegraph <at> gmx.net> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 17 Jul 2021 15:01:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 15 Aug 2021 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 248 days ago.

Previous Next


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