unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Emacs-diffs Digest, Vol 94, Issue 89
       [not found] <E1OzCq2-00008v-RR@eggs.gnu.org>
@ 2010-09-24 19:00 ` Eli Zaretskii
  2010-09-24 19:41   ` Lars Magne Ingebrigtsen
  2010-09-24 22:25   ` Stefan Monnier
  0 siblings, 2 replies; 26+ messages in thread
From: Eli Zaretskii @ 2010-09-24 19:00 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: emacs-devel

> === modified file 'src/scroll.c'
> --- a/src/scroll.c	2010-07-12 17:47:17 +0000
> +++ b/src/scroll.c	2010-09-24 15:20:58 +0000
> @@ -94,7 +94,7 @@
>  		     int free_at_end)
>  {
>    register int i, j;
> -  int frame_lines = FRAME_LINES (frame);
> +  EMACS_INT frame_lines = FRAME_LINES (frame);

Is this really a good idea?  There's no chance the number of lines in
a frame will overflow a 32-bit int any time soon.  SO I think an
explicit cast to int is a better solution here.

(There are other similar places in this revision.)



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-24 19:00 ` Emacs-diffs Digest, Vol 94, Issue 89 Eli Zaretskii
@ 2010-09-24 19:41   ` Lars Magne Ingebrigtsen
  2010-09-24 19:50     ` Eli Zaretskii
  2010-09-24 22:25   ` Stefan Monnier
  1 sibling, 1 reply; 26+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-09-24 19:41 UTC (permalink / raw)
  To: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> Is this really a good idea?  There's no chance the number of lines in
> a frame will overflow a 32-bit int any time soon.  SO I think an
> explicit cast to int is a better solution here.

That was my first impulse, too, but the other int casting got negative feedback..

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-24 19:41   ` Lars Magne Ingebrigtsen
@ 2010-09-24 19:50     ` Eli Zaretskii
  2010-09-24 20:19       ` Eli Zaretskii
  0 siblings, 1 reply; 26+ messages in thread
From: Eli Zaretskii @ 2010-09-24 19:50 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: emacs-devel

> From: Lars Magne Ingebrigtsen <larsi@gnus.org>
> Date: Fri, 24 Sep 2010 21:41:24 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Is this really a good idea?  There's no chance the number of lines in
> > a frame will overflow a 32-bit int any time soon.  SO I think an
> > explicit cast to int is a better solution here.
> 
> That was my first impulse, too, but the other int casting got negative feedback..

You mean, GCC still complains?



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-24 19:50     ` Eli Zaretskii
@ 2010-09-24 20:19       ` Eli Zaretskii
  2010-09-24 20:29         ` David Kastrup
  2010-09-24 22:08         ` Chong Yidong
  0 siblings, 2 replies; 26+ messages in thread
From: Eli Zaretskii @ 2010-09-24 20:19 UTC (permalink / raw)
  To: larsi, emacs-devel

> Date: Fri, 24 Sep 2010 21:50:27 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
> 
> > From: Lars Magne Ingebrigtsen <larsi@gnus.org>
> > Date: Fri, 24 Sep 2010 21:41:24 +0200
> > 
> > Eli Zaretskii <eliz@gnu.org> writes:
> > 
> > > Is this really a good idea?  There's no chance the number of lines in
> > > a frame will overflow a 32-bit int any time soon.  SO I think an
> > > explicit cast to int is a better solution here.
> > 
> > That was my first impulse, too, but the other int casting got negative feedback..
> 
> You mean, GCC still complains?

Or maybe you mean that Stefan thought casting was not the best idea.
In that case, I'd like Stefan's opinion on this one:

> -  int frame_lines = FRAME_LINES (frame);
> +  EMACS_INT frame_lines = FRAME_LINES (frame);

I think down that lane lies madness, because we have lots of struct
members that are Lisp integers, and assigning the result of XINT of
every one of them to an EMACS_INT will significantly and unnecessarily
increase our stack usage (on 64-bit machines).



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-24 20:19       ` Eli Zaretskii
@ 2010-09-24 20:29         ` David Kastrup
  2010-09-25  7:25           ` Eli Zaretskii
  2010-09-24 22:08         ` Chong Yidong
  1 sibling, 1 reply; 26+ messages in thread
From: David Kastrup @ 2010-09-24 20:29 UTC (permalink / raw)
  To: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> Or maybe you mean that Stefan thought casting was not the best idea.
> In that case, I'd like Stefan's opinion on this one:
>
>> -  int frame_lines = FRAME_LINES (frame);
>> +  EMACS_INT frame_lines = FRAME_LINES (frame);
>
> I think down that lane lies madness, because we have lots of struct
> members that are Lisp integers, and assigning the result of XINT of
> every one of them to an EMACS_INT will significantly and unnecessarily
> increase our stack usage (on 64-bit machines).

"Significantly"?  Reality check.  How deep are you planning to recurse?
Are you still trying to fit a working Emacs into 64kB?

The significant costs are, if at all, in the structs containing the
"struct members" since in contrast to the automatic scalar variables of
a typical function that does rarely if ever recurse, there can be lots
of them at once, and apparently those _are_ already EMACS_INT, so _that_
cost, which is likely quite more significant, has already been paid
without people complaining.

-- 
David Kastrup




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-24 20:19       ` Eli Zaretskii
  2010-09-24 20:29         ` David Kastrup
@ 2010-09-24 22:08         ` Chong Yidong
  2010-09-25 20:05           ` Stefan Monnier
  1 sibling, 1 reply; 26+ messages in thread
From: Chong Yidong @ 2010-09-24 22:08 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: larsi, emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> -  int frame_lines = FRAME_LINES (frame);
>> +  EMACS_INT frame_lines = FRAME_LINES (frame);
>
> I think down that lane lies madness, because we have lots of struct
> members that are Lisp integers, and assigning the result of XINT of
> every one of them to an EMACS_INT will significantly and unnecessarily
> increase our stack usage (on 64-bit machines).

I think text_lines and related members of `struct frame' should be ints.
Dunno why they were made EMACS_INT, though it happened long ago, before
Emacs-21.

I doubt there is much practical difference, only a conceptual one; IMO
the "EMACS_INT" cast is a nice way to denote that an integer may have to
do with buffer and string sizes.

I don't feel strongly about it, though.



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-24 19:00 ` Emacs-diffs Digest, Vol 94, Issue 89 Eli Zaretskii
  2010-09-24 19:41   ` Lars Magne Ingebrigtsen
@ 2010-09-24 22:25   ` Stefan Monnier
  2010-09-25  7:31     ` Eli Zaretskii
  1 sibling, 1 reply; 26+ messages in thread
From: Stefan Monnier @ 2010-09-24 22:25 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Lars Magne Ingebrigtsen, emacs-devel

>> -  int frame_lines = FRAME_LINES (frame);
>> +  EMACS_INT frame_lines = FRAME_LINES (frame);

> Is this really a good idea?  There's no chance the number of lines in
> a frame will overflow a 32-bit int any time soon.  SO I think an
> explicit cast to int is a better solution here.

BTW, if you add casts, as much as possible add them only inside macros,


        Stefan



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-24 20:29         ` David Kastrup
@ 2010-09-25  7:25           ` Eli Zaretskii
  2010-09-25  7:50             ` David Kastrup
  0 siblings, 1 reply; 26+ messages in thread
From: Eli Zaretskii @ 2010-09-25  7:25 UTC (permalink / raw)
  To: David Kastrup; +Cc: emacs-devel

> From: David Kastrup <dak@gnu.org>
> Date: Fri, 24 Sep 2010 22:29:02 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Or maybe you mean that Stefan thought casting was not the best idea.
> > In that case, I'd like Stefan's opinion on this one:
> >
> >> -  int frame_lines = FRAME_LINES (frame);
> >> +  EMACS_INT frame_lines = FRAME_LINES (frame);
> >
> > I think down that lane lies madness, because we have lots of struct
> > members that are Lisp integers, and assigning the result of XINT of
> > every one of them to an EMACS_INT will significantly and unnecessarily
> > increase our stack usage (on 64-bit machines).
> 
> "Significantly"?  Reality check.

Yes, indeed.  Take a look at GC some day, it uses up tens of thousands
of recursive calls as a matter of routine.

And even without GC, there are about 30 frames on the stack any time I
debug Emacs.  If we pacify -Wconversion by using EMACS_INT for every
variable that sometimes gets assigned the result of XINT or XFASTINT,
that could be quite a lot of memory waste.



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-24 22:25   ` Stefan Monnier
@ 2010-09-25  7:31     ` Eli Zaretskii
  2010-09-25 13:19       ` Lars Magne Ingebrigtsen
  2010-09-25 20:09       ` Stefan Monnier
  0 siblings, 2 replies; 26+ messages in thread
From: Eli Zaretskii @ 2010-09-25  7:31 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: larsi, emacs-devel

> X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00
> 	autolearn=unavailable version=3.3.1
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Date: Sat, 25 Sep 2010 00:25:10 +0200
> Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>, emacs-devel@gnu.org
> 
> >> -  int frame_lines = FRAME_LINES (frame);
> >> +  EMACS_INT frame_lines = FRAME_LINES (frame);
> 
> > Is this really a good idea?  There's no chance the number of lines in
> > a frame will overflow a 32-bit int any time soon.  SO I think an
> > explicit cast to int is a better solution here.
> 
> BTW, if you add casts, as much as possible add them only inside macros,

So what is the practical guidance to Lars and others who go by the
warnings emitted by -Wconversion?  Will the below be okay, for when an
small-valued EMACS_INT is assigned to an int:

 . if the source is EMACS_INT, consider making it an int; if that's
   not possible, cast to int, preferably inside a macro

 . if the source is a Lisp_Object passed through XINT, cast to an int,
   preferably inside an accessor macro



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-25  7:25           ` Eli Zaretskii
@ 2010-09-25  7:50             ` David Kastrup
  0 siblings, 0 replies; 26+ messages in thread
From: David Kastrup @ 2010-09-25  7:50 UTC (permalink / raw)
  To: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> From: David Kastrup <dak@gnu.org>
>> Date: Fri, 24 Sep 2010 22:29:02 +0200
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> > Or maybe you mean that Stefan thought casting was not the best idea.
>> > In that case, I'd like Stefan's opinion on this one:
>> >
>> >> -  int frame_lines = FRAME_LINES (frame);
>> >> +  EMACS_INT frame_lines = FRAME_LINES (frame);
>> >
>> > I think down that lane lies madness, because we have lots of struct
>> > members that are Lisp integers, and assigning the result of XINT of
>> > every one of them to an EMACS_INT will significantly and unnecessarily
>> > increase our stack usage (on 64-bit machines).
>> 
>> "Significantly"?  Reality check.
>
> Yes, indeed.  Take a look at GC some day, it uses up tens of thousands
> of recursive calls as a matter of routine.

And how many of those garbage collection calls are involved in this
particular issue?  About zero I should guess.

> And even without GC, there are about 30 frames on the stack any time I
> debug Emacs.

Of which there are, pessimistically speaking, probably 10 affected.  So
we are talking about several dozens of wasted bytes at any given point
of time.  Very much dwarved by the stack requirements of garbage
collection, according to you.

> If we pacify -Wconversion by using EMACS_INT for every variable that
> sometimes gets assigned the result of XINT or XFASTINT, that could be
> quite a lot of memory waste.

We are talking about automatic variables here.  When optimizing, the
compiler does not even reserve stack space when it does not need it.  In
fact, you are likely getting code bloat if you force intermediate values
into variables of smaller size than the original type.  The compiler
works with 64-bit registers in the affected architectures, anyway, and
it needs to fiddle with masking/extending operations in order to
simulate 32-bit variables.  It generates extra code in order to produce
the behavior that the compiler warns about.

-- 
David Kastrup




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-25  7:31     ` Eli Zaretskii
@ 2010-09-25 13:19       ` Lars Magne Ingebrigtsen
  2010-09-25 13:28         ` Eli Zaretskii
  2010-09-25 20:09       ` Stefan Monnier
  1 sibling, 1 reply; 26+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-09-25 13:19 UTC (permalink / raw)
  To: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> >> -  int frame_lines = FRAME_LINES (frame);
>> >> +  EMACS_INT frame_lines = FRAME_LINES (frame);

[...]

> So what is the practical guidance to Lars and others who go by the
> warnings emitted by -Wconversion?  Will the below be okay, for when an
> small-valued EMACS_INT is assigned to an int:
>
>  . if the source is EMACS_INT, consider making it an int; if that's
>    not possible, cast to int, preferably inside a macro
>
>  . if the source is a Lisp_Object passed through XINT, cast to an int,
>    preferably inside an accessor macro

So in this case FRAME_LINES should cast to an int before returning?
Makes sense to me, and I can redo the stuff in that file based on that. 

Or just make these into ints:

  /* Size of this frame, excluding fringes, scroll bars etc.,
     in units of canonical characters.  */
  EMACS_INT text_lines, text_cols;

It does seem rather nonsensical to have them be EMACS_INT...

Which reminds me about a question about characters.  Can they really be
longs?  Let's see...

DEFUN ("char-resolve-modifiers", Fchar_resolve_modifiers,
...
  (Lisp_Object character)
{
  int c;

  CHECK_NUMBER (character);
  c = XINT (character);
  return make_number (char_resolve_modifier_mask (c));
}

Hm.  In that case it should perhaps actually be EMACS_INT, since the
character comes from "user space".  So that's a bad example.  :-)  But
the general question is whether characters can be longs still stand, and
whether there then should be like an XCHAR macro that does the same as
XINT, but casts to int.  

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-25 13:19       ` Lars Magne Ingebrigtsen
@ 2010-09-25 13:28         ` Eli Zaretskii
  0 siblings, 0 replies; 26+ messages in thread
From: Eli Zaretskii @ 2010-09-25 13:28 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: emacs-devel

> From: Lars Magne Ingebrigtsen <larsi@gnus.org>
> Date: Sat, 25 Sep 2010 15:19:37 +0200
> 
> So in this case FRAME_LINES should cast to an int before returning?
> Makes sense to me, and I can redo the stuff in that file based on that. 
> 
> Or just make these into ints:
> 
>   /* Size of this frame, excluding fringes, scroll bars etc.,
>      in units of canonical characters.  */
>   EMACS_INT text_lines, text_cols;

Given the controversy, I'll defer to Stefan and Chong for a definitive
guidance.

> Which reminds me about a question about characters.  Can they really be
> longs?

AFAIK, characters in Emacs are presently 32-bit entities, so an int
should suffice.



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-24 22:08         ` Chong Yidong
@ 2010-09-25 20:05           ` Stefan Monnier
  0 siblings, 0 replies; 26+ messages in thread
From: Stefan Monnier @ 2010-09-25 20:05 UTC (permalink / raw)
  To: Chong Yidong; +Cc: Eli Zaretskii, larsi, emacs-devel

> I think text_lines and related members of `struct frame' should be ints.

Agreed.


        Stefan



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-25  7:31     ` Eli Zaretskii
  2010-09-25 13:19       ` Lars Magne Ingebrigtsen
@ 2010-09-25 20:09       ` Stefan Monnier
  2010-09-25 20:30         ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 26+ messages in thread
From: Stefan Monnier @ 2010-09-25 20:09 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: larsi, emacs-devel

>  . if the source is a Lisp_Object passed through XINT, cast to an int,
>    preferably inside an accessor macro

Ideally, we'd have two XINT-style macros, one that returns an int and
one that returns an EMACS_INT.  E.g. for chars, we'd use the `int'
version since chars use less than 32 bits.


        Stefan



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-25 20:09       ` Stefan Monnier
@ 2010-09-25 20:30         ` Lars Magne Ingebrigtsen
  2010-09-25 22:09           ` Eli Zaretskii
  0 siblings, 1 reply; 26+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-09-25 20:30 UTC (permalink / raw)
  To: emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Ideally, we'd have two XINT-style macros, one that returns an int and
> one that returns an EMACS_INT.  E.g. for chars, we'd use the `int'
> version since chars use less than 32 bits.

Makes sense.  The other macro could just be a wrapper around XINT that
coerces to int.

What would it be called?  XIINT?  Eek.  Uhm.  XNINT?  (For "not long
int.")  :-)  Ok, I have nothing.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-25 20:30         ` Lars Magne Ingebrigtsen
@ 2010-09-25 22:09           ` Eli Zaretskii
  2010-09-26 21:52             ` Stefan Monnier
  0 siblings, 1 reply; 26+ messages in thread
From: Eli Zaretskii @ 2010-09-25 22:09 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: emacs-devel

> From: Lars Magne Ingebrigtsen <larsi@gnus.org>
> Date: Sat, 25 Sep 2010 22:30:09 +0200
> 
> What would it be called?  XIINT?  Eek.  Uhm.  XNINT?  (For "not long
> int.")  :-)  Ok, I have nothing.

IXINT?



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-25 22:09           ` Eli Zaretskii
@ 2010-09-26 21:52             ` Stefan Monnier
  2010-09-27 15:33               ` Chong Yidong
  0 siblings, 1 reply; 26+ messages in thread
From: Stefan Monnier @ 2010-09-26 21:52 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Lars Magne Ingebrigtsen, emacs-devel

>> What would it be called?  XIINT?  Eek.  Uhm.  XNINT?  (For "not long
>> int.")  :-)  Ok, I have nothing.
> IXINT?

XINT would be the obvious name, but it's already taken.
IXINT doesn't follow the "X..." convention we've used so far, but
I won't oppose it.  We could go with XINT_int, otherwise.

Another question is whether it should do range-checking or just silent
wrap-around.


        Stefan



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-26 21:52             ` Stefan Monnier
@ 2010-09-27 15:33               ` Chong Yidong
  2010-09-27 16:23                 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 26+ messages in thread
From: Chong Yidong @ 2010-09-27 15:33 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Eli Zaretskii, Lars Magne Ingebrigtsen, emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>> What would it be called?  XIINT?  Eek.  Uhm.  XNINT?  (For "not long
>>> int.")  :-)  Ok, I have nothing.
>> IXINT?
>
> XINT would be the obvious name, but it's already taken.
> IXINT doesn't follow the "X..." convention we've used so far, but
> I won't oppose it.  We could go with XINT_int, otherwise.

How about XINT for ints and XEINT for EMACS_INTs?



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-27 15:33               ` Chong Yidong
@ 2010-09-27 16:23                 ` Lars Magne Ingebrigtsen
  2010-09-27 20:59                   ` Stefan Monnier
  0 siblings, 1 reply; 26+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-09-27 16:23 UTC (permalink / raw)
  To: emacs-devel

Chong Yidong <cyd@stupidchicken.com> writes:

> How about XINT for ints and XEINT for EMACS_INTs?

So rename all instances of XINT in the source tree to XEINT first?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-27 16:23                 ` Lars Magne Ingebrigtsen
@ 2010-09-27 20:59                   ` Stefan Monnier
  2010-09-27 21:10                     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 26+ messages in thread
From: Stefan Monnier @ 2010-09-27 20:59 UTC (permalink / raw)
  To: emacs-devel

>> How about XINT for ints and XEINT for EMACS_INTs?
> So rename all instances of XINT in the source tree to XEINT first?

That's the part I didn't like about using XINT for `int'.


        Stefan



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-27 20:59                   ` Stefan Monnier
@ 2010-09-27 21:10                     ` Lars Magne Ingebrigtsen
  2010-09-27 21:21                       ` Andreas Schwab
  0 siblings, 1 reply; 26+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-09-27 21:10 UTC (permalink / raw)
  To: emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> So rename all instances of XINT in the source tree to XEINT first?
>
> That's the part I didn't like about using XINT for `int'.

Me neither.  The code churn would be massive, wouldn't it?

I think IXINT is the most pleasing suggestion so far.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-27 21:10                     ` Lars Magne Ingebrigtsen
@ 2010-09-27 21:21                       ` Andreas Schwab
  2010-09-28  5:47                         ` Eli Zaretskii
  0 siblings, 1 reply; 26+ messages in thread
From: Andreas Schwab @ 2010-09-27 21:21 UTC (permalink / raw)
  To: emacs-devel

XSMALLINT

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-27 21:21                       ` Andreas Schwab
@ 2010-09-28  5:47                         ` Eli Zaretskii
  2010-09-28  9:26                           ` Lars Magne Ingebrigtsen
  2010-09-29 13:15                           ` Davis Herring
  0 siblings, 2 replies; 26+ messages in thread
From: Eli Zaretskii @ 2010-09-28  5:47 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel

> From: Andreas Schwab <schwab@linux-m68k.org>
> Date: Mon, 27 Sep 2010 23:21:16 +0200
> 
> XSMALLINT

XINT2int



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-28  5:47                         ` Eli Zaretskii
@ 2010-09-28  9:26                           ` Lars Magne Ingebrigtsen
  2010-09-28 22:35                             ` Stefan Monnier
  2010-09-29 13:15                           ` Davis Herring
  1 sibling, 1 reply; 26+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-09-28  9:26 UTC (permalink / raw)
  To: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> XSMALLINT
>
> XINT2int

XINTINT

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-28  9:26                           ` Lars Magne Ingebrigtsen
@ 2010-09-28 22:35                             ` Stefan Monnier
  0 siblings, 0 replies; 26+ messages in thread
From: Stefan Monnier @ 2010-09-28 22:35 UTC (permalink / raw)
  To: emacs-devel

>>> XSMALLINT
>> XINT2int
> XINTINT

Nobody cares: pick one.


        Stefan



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Emacs-diffs Digest, Vol 94, Issue 89
  2010-09-28  5:47                         ` Eli Zaretskii
  2010-09-28  9:26                           ` Lars Magne Ingebrigtsen
@ 2010-09-29 13:15                           ` Davis Herring
  1 sibling, 0 replies; 26+ messages in thread
From: Davis Herring @ 2010-09-29 13:15 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Andreas Schwab, emacs-devel

>> XSMALLINT
>
> XINT2int

If we're allowing lowercase, we could just use Xint.  Or, if we need
"mostly" capitals, XiNT or XCint.

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.



^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2010-09-29 13:15 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1OzCq2-00008v-RR@eggs.gnu.org>
2010-09-24 19:00 ` Emacs-diffs Digest, Vol 94, Issue 89 Eli Zaretskii
2010-09-24 19:41   ` Lars Magne Ingebrigtsen
2010-09-24 19:50     ` Eli Zaretskii
2010-09-24 20:19       ` Eli Zaretskii
2010-09-24 20:29         ` David Kastrup
2010-09-25  7:25           ` Eli Zaretskii
2010-09-25  7:50             ` David Kastrup
2010-09-24 22:08         ` Chong Yidong
2010-09-25 20:05           ` Stefan Monnier
2010-09-24 22:25   ` Stefan Monnier
2010-09-25  7:31     ` Eli Zaretskii
2010-09-25 13:19       ` Lars Magne Ingebrigtsen
2010-09-25 13:28         ` Eli Zaretskii
2010-09-25 20:09       ` Stefan Monnier
2010-09-25 20:30         ` Lars Magne Ingebrigtsen
2010-09-25 22:09           ` Eli Zaretskii
2010-09-26 21:52             ` Stefan Monnier
2010-09-27 15:33               ` Chong Yidong
2010-09-27 16:23                 ` Lars Magne Ingebrigtsen
2010-09-27 20:59                   ` Stefan Monnier
2010-09-27 21:10                     ` Lars Magne Ingebrigtsen
2010-09-27 21:21                       ` Andreas Schwab
2010-09-28  5:47                         ` Eli Zaretskii
2010-09-28  9:26                           ` Lars Magne Ingebrigtsen
2010-09-28 22:35                             ` Stefan Monnier
2010-09-29 13:15                           ` Davis Herring

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).