Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Elastic tabstops?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
egarr...@gmail.com  
View profile  
 More options Feb 26 2009, 11:21 am
Newsgroups: gnu.emacs.help
From: egarr...@gmail.com
Date: Thu, 26 Feb 2009 03:21:55 -0800 (PST)
Local: Thurs, Feb 26 2009 11:21 am
Subject: Elastic tabstops?
Hello,

is there an Emacs mode which implements elastic tabstops (tabstops
that expand or shrink to fit their contents)? I've searched the
Internet and it seems there isn't.

Explanation of elastic tabstops with a Java applet demo:

http://nickgravgaard.com/elastictabstops/

Thanks


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tassilo Horn  
View profile  
 More options Feb 26 2009, 11:57 am
Newsgroups: gnu.emacs.help
From: Tassilo Horn <tass...@member.fsf.org>
Date: Thu, 26 Feb 2009 12:57:28 +0100
Local: Thurs, Feb 26 2009 11:57 am
Subject: Re: Elastic tabstops?

egarr...@gmail.com writes:

Hi!

> is there an Emacs mode which implements elastic tabstops (tabstops
> that expand or shrink to fit their contents)?

Isn't that basically the same which `indent-relative' does?

,----[ C-h f indent-relative RET ]
| indent-relative is an interactive compiled Lisp function in `indent.el'.
|
| (indent-relative &optional unindented-ok)
|
| Space out to under next indent point in previous nonblank line.
| An indent point is a non-whitespace character following whitespace.
| The following line shows the indentation points in this line.
|     ^         ^    ^     ^   ^           ^      ^  ^    ^
| If the previous nonblank line has no indent points beyond the
| column point starts at, `tab-to-tab-stop' is done instead, unless
| this command is invoked with a numeric argument, in which case it
| does nothing.
|
| See also `indent-relative-maybe'.
`----

Bye,
Tassilo


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Mackenzie  
View profile  
 More options Feb 26 2009, 3:41 pm
Newsgroups: gnu.emacs.help
From: Alan Mackenzie <a...@muc.de>
Date: Thu, 26 Feb 2009 15:41:46 +0000
Local: Thurs, Feb 26 2009 3:41 pm
Subject: Re: Elastic tabstops?
Hi,

On Thu, Feb 26, 2009 at 03:21:55AM -0800, egarr...@gmail.com wrote:
> Hello,
> is there an Emacs mode which implements elastic tabstops (tabstops
> that expand or shrink to fit their contents)? I've searched the
> Internet and it seems there isn't.
> Explanation of elastic tabstops with a Java applet demo:
> http://nickgravgaard.com/elastictabstops/

I can't fully understand what you're saying in that webpage:

    we should say that a tab character is a delimiter between table
    cells in a manner more reminiscent of how they're used in tab
    separated value (TSV) files.

is rather abstract.  It says how we can think of a tab rather than its
effect on displaying the text on the screen.  What is meant, exactly, by
a "table cell"?  Is it a block of text 1cm wide, or something like that?

The picture on the webpage looks as though it's using tabs to do the
syntactical indentation from column 0, but spaces otherwise (e.g. for
the space between a statement and a line comment).  This isn't difficult
to achieve for CC Mode's languages (e.g. C), being a ~25 line hack.  If
that's what you want, say so, and I'll hunt out the hack.

> Thanks

--
Alan Mackenzie (Nuremberg, Germany).

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
egarr...@gmail.com  
View profile  
 More options Feb 26 2009, 7:13 pm
Newsgroups: gnu.emacs.help
From: egarr...@gmail.com
Date: Thu, 26 Feb 2009 11:13:39 -0800 (PST)
Local: Thurs, Feb 26 2009 7:13 pm
Subject: Re: Elastic tabstops?
Thank you very much for your offer, Alan :-)

Basically, he's saying that tab's width should not be based on
counting character, which is a low level concept. Instead, hitting Tab
should create a table cell of a kind, which spans multiple lines. Then
the editor will always keep aligned any text on adjacent lines which
is entered after the nth tab, no matter how long the "cell"'s text
length is and even if the font is not monospaced. Think about what
align-regexp does, but done live and working with proportional fonts
as well. Indeed, the demo Java applet uses a proportional font, and if
you move any end of line comment belonging to a block of lines, all
other comments move to keep perfectly aligned.

I think that is quite tricky to implement, more so if you try to
retrofit an already existing mode. BTW I'm not asking for such an high-
tech solution. I'd be quite happy if indentation would work as I'm
entering lines when I'm using a proportional font, which I find easier
to read.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
egarr...@gmail.com  
View profile  
 More options Feb 26 2009, 7:28 pm
Newsgroups: gnu.emacs.help
From: egarr...@gmail.com
Date: Thu, 26 Feb 2009 11:28:26 -0800 (PST)
Local: Thurs, Feb 26 2009 7:28 pm
Subject: Re: Elastic tabstops?
Basically yes, but elastic tabstops are more advanced since they
affect previous lines too and are independent from character width
(they work with proportional fonts, too). The example provided by the
indent-relative documentation looks OK only with a monospaced font.

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
egarr...@gmail.com  
View profile  
 More options Feb 26 2009, 8:04 pm
Newsgroups: gnu.emacs.help
From: egarr...@gmail.com
Date: Thu, 26 Feb 2009 12:04:10 -0800 (PST)
Local: Thurs, Feb 26 2009 8:04 pm
Subject: Re: Elastic tabstops?
This video shows that Org Mode offers a similar capability to create
tables, albeit using a monospaced font:

http://www.youtube.com/watch?v=EQAd41VAXWo


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Elena  
View profile  
 More options Mar 6 2009, 4:55 pm
Newsgroups: gnu.emacs.help
From: Elena <egarr...@gmail.com>
Date: Fri, 6 Mar 2009 08:55:58 -0800 (PST)
Local: Fri, Mar 6 2009 4:55 pm
Subject: Re: Elastic tabstops?
I found out that Emacs can't do it, because it's tied to character
width. Aligning text which uses a proportional font is out of reach
for our beloved editor :-(

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google