TIP: Click on subject to list as thread! ANSI
echo: locsysop
to: Paul Markham
from: Paul Edwards
date: 1993-07-05 17:32:44
subject: emacs

Hello Paul!

Here is a configuration file:

set $timeflag TRUE
set $posflag TRUE
bind-to-key newline ^J
bind-to-key newline-and-indent ^M
set $softtab 4
set $hardtab 4
bind-to-key backward-character S-^I


that will make shift-tab do a single non-destructive backspace.  I made
some code changes which make it do as many non-destructive backspaces as is
set by softtab, but I'd rather it was done with a macro if it comes to
that!  I thought you could repeat a command by going Esc 4 and then the
command (to do it 4 times).  Well you can, but I don't know how to put that
into the bind-to-key command.  What if you wanted shift-tab to do 2
newlines followed by a backward-character?  I imagine you would use a
macro, so I think that's what is called for here.  On the other hand, I
think the program could do with a back-tab function, so maybe I'll do it
properly and send the code to Daniel.  I still haven't figured out how to
make the auto-indent feature not put in hard tabs (I want spaces). BFN.

P.S. Here's the macro!

set $timeflag TRUE
set $posflag TRUE
bind-to-key newline ^J
bind-to-key newline-and-indent ^M
set $hardtab 4
set $softtab 4
;bind-to-key backward-character S-^I

1 store-macro
    4 backward-character
!endm

bind-to-key execute-macro-1 S-^I



I've also had a look at the code, and the indentation that is done is done
with hard tabs.  I think it should just call the tab() function myself, but
anyway, it should also be able to be done with a macro that does the
newline-and-indent followed by a detab region.  BFN.

Paul

--- GoldED 2.40
* Origin: Ten Minute Limit (3:711/934)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.