* recent `float' current_column changes
@ 2002-06-03 13:29 Miles Bader
2002-06-04 2:35 ` Thien-Thi Nguyen
2002-06-04 23:25 ` Richard Stallman
0 siblings, 2 replies; 5+ messages in thread
From: Miles Bader @ 2002-06-03 13:29 UTC (permalink / raw)
I notice that `current_column' now returns a float.
However, every place the value is returned to lisp, it is is converted
to an integer.
Why not just allow lisp programs to see it too? I'll bet that if they
just do the normal sort of arithmetic and call indent-to-column on the
result they would basically work the same way as they do with an int --
unless indent-to-column accepts a float, in which case, they'd work
_better_...
-Miles
--
I'd rather be consing.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: recent `float' current_column changes
2002-06-03 13:29 recent `float' current_column changes Miles Bader
@ 2002-06-04 2:35 ` Thien-Thi Nguyen
2002-06-04 2:54 ` Miles Bader
2002-06-04 23:25 ` Richard Stallman
1 sibling, 1 reply; 5+ messages in thread
From: Thien-Thi Nguyen @ 2002-06-04 2:35 UTC (permalink / raw)
Cc: emacs-devel
Miles Bader <miles@gnu.org> writes:
Why not just allow lisp programs to see it too? I'll bet that if they
just do the normal sort of arithmetic and call indent-to-column on the
result they would basically work the same way as they do with an int --
unless indent-to-column accepts a float, in which case, they'd work
_better_...
yes, that's the plan. i think the only computation using columns that might
result in unexpected behavior would be those involving division (for example,
`center-line' or some of the alignment packages). i'm not prepared to look
into this at the moment (concentrating on using iterators to calculate widths)
but the door is open for experimentation and parallel changes. (go for it!)
thi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: recent `float' current_column changes
2002-06-04 2:35 ` Thien-Thi Nguyen
@ 2002-06-04 2:54 ` Miles Bader
2002-06-04 3:31 ` Thien-Thi Nguyen
0 siblings, 1 reply; 5+ messages in thread
From: Miles Bader @ 2002-06-04 2:54 UTC (permalink / raw)
Cc: emacs-devel
Thien-Thi Nguyen <ttn@glug.org> writes:
> Why not just allow lisp programs to see it too?
>
> yes, that's the plan.
I see; so the current state is just temporary?
Thanks,
-Miles
--
Quidquid latine dictum sit, altum viditur.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: recent `float' current_column changes
2002-06-04 2:54 ` Miles Bader
@ 2002-06-04 3:31 ` Thien-Thi Nguyen
0 siblings, 0 replies; 5+ messages in thread
From: Thien-Thi Nguyen @ 2002-06-04 3:31 UTC (permalink / raw)
Cc: emacs-devel
Miles Bader <miles@lsi.nec.co.jp> writes:
I see; so the current state is just temporary?
all current state is temporary (according to some dead wise dude :-).
it's important to look at the "iftc" casts on a case by case basis. at the
end of the process, all of them may indeed warrant removal, but that's not yet
clear to my casual (and somewhat conservative) eye. i'm hoping to learn
enough, mostly by listening to others, to form a real opinion at some point.
thi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: recent `float' current_column changes
2002-06-03 13:29 recent `float' current_column changes Miles Bader
2002-06-04 2:35 ` Thien-Thi Nguyen
@ 2002-06-04 23:25 ` Richard Stallman
1 sibling, 0 replies; 5+ messages in thread
From: Richard Stallman @ 2002-06-04 23:25 UTC (permalink / raw)
Cc: emacs-devel
Why not just allow lisp programs to see it too? I'll bet that if they
just do the normal sort of arithmetic and call indent-to-column on the
result they would basically work the same way as they do with an int --
unless indent-to-column accepts a float, in which case, they'd work
_better_...
That is the idea -- the Lisp functions should return floats,
when necessary.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-06-04 23:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-03 13:29 recent `float' current_column changes Miles Bader
2002-06-04 2:35 ` Thien-Thi Nguyen
2002-06-04 2:54 ` Miles Bader
2002-06-04 3:31 ` Thien-Thi Nguyen
2002-06-04 23:25 ` Richard Stallman
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.