unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* FRAME_PTR vs "struct frame *"
@ 2005-07-28 15:34 Juanma Barranquero
  2005-07-28 21:40 ` Miles Bader
  0 siblings, 1 reply; 14+ messages in thread
From: Juanma Barranquero @ 2005-07-28 15:34 UTC (permalink / raw)


The FRAME_PTR macro seems not too successful: there are ~1300 uses of
"struct frame *" on 39 files, vs. ~270 uses of FRAME_PTR on 30 files.

Should this be unified, eventually?

-- 
                    /L/e/k/t/u

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

* Re: FRAME_PTR vs "struct frame *"
  2005-07-28 15:34 FRAME_PTR vs "struct frame *" Juanma Barranquero
@ 2005-07-28 21:40 ` Miles Bader
  2005-07-28 23:29   ` Juanma Barranquero
  0 siblings, 1 reply; 14+ messages in thread
From: Miles Bader @ 2005-07-28 21:40 UTC (permalink / raw)
  Cc: Emacs Devel

2005/7/29, Juanma Barranquero <lekktu@gmail.com>:
> The FRAME_PTR macro seems not too successful: there are ~1300 uses of
> "struct frame *" on 39 files, vs. ~270 uses of FRAME_PTR on 30 files.
> 
> Should this be unified, eventually?

It seems completely pointless to have an obfuscating macro (ok it's
actually a typedef) like FRAME_PTR.  It's very old, though so maybe
there was some reason a long time ago...

I'd say, get rid of it.

-Miles
-- 
Do not taunt Happy Fun Ball.

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

* Re: FRAME_PTR vs "struct frame *"
  2005-07-28 21:40 ` Miles Bader
@ 2005-07-28 23:29   ` Juanma Barranquero
  2005-07-28 23:58     ` Juanma Barranquero
  2005-07-29  0:46     ` Kenichi Handa
  0 siblings, 2 replies; 14+ messages in thread
From: Juanma Barranquero @ 2005-07-28 23:29 UTC (permalink / raw)
  Cc: Emacs Devel

On 7/28/05, Miles Bader <snogglethorpe@gmail.com> wrote:

> It seems completely pointless to have an obfuscating macro (ok it's
> actually a typedef) like FRAME_PTR.

And other structs (like window, buffer, etc.) are used directly.

> I'd say, get rid of it.

Fine by me.

Any objections, anyone?

-- 
                    /L/e/k/t/u

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

* Re: FRAME_PTR vs "struct frame *"
  2005-07-28 23:29   ` Juanma Barranquero
@ 2005-07-28 23:58     ` Juanma Barranquero
  2005-07-29  0:46     ` Kenichi Handa
  1 sibling, 0 replies; 14+ messages in thread
From: Juanma Barranquero @ 2005-07-28 23:58 UTC (permalink / raw)
  Cc: Emacs Devel

And, what about the million times that w->frame is used, instead of
WINDOW_FRAME (w)?

-- 
                    /L/e/k/t/u

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

* Re: FRAME_PTR vs "struct frame *"
  2005-07-28 23:29   ` Juanma Barranquero
  2005-07-28 23:58     ` Juanma Barranquero
@ 2005-07-29  0:46     ` Kenichi Handa
  2005-07-29  1:13       ` Miles Bader
                         ` (2 more replies)
  1 sibling, 3 replies; 14+ messages in thread
From: Kenichi Handa @ 2005-07-29  0:46 UTC (permalink / raw)
  Cc: emacs-devel, miles

In article <f7ccd24b050728162968f332b3@mail.gmail.com>, Juanma Barranquero <lekktu@gmail.com> writes:

> On 7/28/05, Miles Bader <snogglethorpe@gmail.com> wrote:
>>  It seems completely pointless to have an obfuscating macro (ok it's
>>  actually a typedef) like FRAME_PTR.

> And other structs (like window, buffer, etc.) are used directly.

>>  I'd say, get rid of it.

> Fine by me.

> Any objections, anyone?

Such a cosmetic change will cause lots of conflicts in
emacs-unicode branch.  Could you please postpone it until
emacs-unicode is merged?

---
Kenichi Handa
handa@m17n.org

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

* Re: FRAME_PTR vs "struct frame *"
  2005-07-29  0:46     ` Kenichi Handa
@ 2005-07-29  1:13       ` Miles Bader
  2005-07-29  8:43       ` Juanma Barranquero
  2005-07-29 13:54       ` Richard M. Stallman
  2 siblings, 0 replies; 14+ messages in thread
From: Miles Bader @ 2005-07-29  1:13 UTC (permalink / raw)
  Cc: Juanma Barranquero, emacs-devel, miles

2005/7/29, Kenichi Handa <handa@m17n.org>:
> Such a cosmetic change will cause lots of conflicts in
> emacs-unicode branch.  Could you please postpone it until
> emacs-unicode is merged?

That's probably the best thing.

[Though, probably I'm the one who ends up resolving all the resulting
conflicts!]

-Miles
-- 
Do not taunt Happy Fun Ball.

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

* Re: FRAME_PTR vs "struct frame *"
  2005-07-29  0:46     ` Kenichi Handa
  2005-07-29  1:13       ` Miles Bader
@ 2005-07-29  8:43       ` Juanma Barranquero
  2005-07-29  9:13         ` Miles Bader
  2005-07-29 11:09         ` Kenichi Handa
  2005-07-29 13:54       ` Richard M. Stallman
  2 siblings, 2 replies; 14+ messages in thread
From: Juanma Barranquero @ 2005-07-29  8:43 UTC (permalink / raw)
  Cc: emacs-devel, miles

On 7/29/05, Kenichi Handa <handa@m17n.org> wrote:

> Such a cosmetic change will cause lots of conflicts in
> emacs-unicode branch.  Could you please postpone it until
> emacs-unicode is merged?

Sure.

And BTW, when will it be merged? Soon after the 22.1 release?

-- 
                    /L/e/k/t/u

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

* Re: FRAME_PTR vs "struct frame *"
  2005-07-29  8:43       ` Juanma Barranquero
@ 2005-07-29  9:13         ` Miles Bader
  2005-07-29  9:17           ` Juanma Barranquero
  2005-07-29 11:09         ` Kenichi Handa
  1 sibling, 1 reply; 14+ messages in thread
From: Miles Bader @ 2005-07-29  9:13 UTC (permalink / raw)
  Cc: emacs-devel, Kenichi Handa

Juanma Barranquero <lekktu@gmail.com> writes:
> And BTW, when will it be merged? Soon after the 22.1 release?

I hope so.  The unicode branch is kept in a merged state already, with
about 1 week latency, so it shouldn't take more than about 5 minutes to
reverse the process and commit everything to the trunk (if possible I'd
like to be the one that does it).

-Miles
-- 
Ich bin ein Virus. Mach' mit und kopiere mich in Deine .signature.

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

* Re: FRAME_PTR vs "struct frame *"
  2005-07-29  9:13         ` Miles Bader
@ 2005-07-29  9:17           ` Juanma Barranquero
  2005-07-29  9:35             ` Miles Bader
  0 siblings, 1 reply; 14+ messages in thread
From: Juanma Barranquero @ 2005-07-29  9:17 UTC (permalink / raw)
  Cc: emacs-devel, Kenichi Handa

On 7/29/05, Miles Bader <miles@lsi.nec.co.jp> wrote:

> I hope so.  The unicode branch is kept in a merged state already, with
> about 1 week latency

Does it build on Windows?

> so it shouldn't take more than about 5 minutes to
> reverse the process and commit everything to the trunk (if possible I'd
> like to be the one that does it).

Well, I don't think anyone's gonna jump and take that from under your feet... :)


-- 
                    /L/e/k/t/u

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

* Re: FRAME_PTR vs "struct frame *"
  2005-07-29  9:17           ` Juanma Barranquero
@ 2005-07-29  9:35             ` Miles Bader
  2005-07-29  9:52               ` Juanma Barranquero
  0 siblings, 1 reply; 14+ messages in thread
From: Miles Bader @ 2005-07-29  9:35 UTC (permalink / raw)
  Cc: emacs-devel, Kenichi Handa

Juanma Barranquero <lekktu@gmail.com> writes:
>> I hope so.  The unicode branch is kept in a merged state already, with
>> about 1 week latency
>
> Does it build on Windows?

I don't know.  It doesn't matter.  If there are bugs, they should be
fixed, but delaying the merge won't help anything.

-Miles
-- 
Americans are broad-minded people.  They'll accept the fact that a person can
be an alcoholic, a dope fiend, a wife beater, and even a newspaperman, but if a
man doesn't drive, there is something wrong with him.  -- Art Buchwald

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

* Re: FRAME_PTR vs "struct frame *"
  2005-07-29  9:35             ` Miles Bader
@ 2005-07-29  9:52               ` Juanma Barranquero
  2005-07-29 11:45                 ` Juanma Barranquero
  0 siblings, 1 reply; 14+ messages in thread
From: Juanma Barranquero @ 2005-07-29  9:52 UTC (permalink / raw)
  Cc: emacs-devel, Kenichi Handa

On 7/29/05, Miles Bader <miles@lsi.nec.co.jp> wrote:

> I don't know.  It doesn't matter.  If there are bugs, they should be
> fixed, but delaying the merge won't help anything.

I wasn't suggesting delaying the merge in case it didn't build on
Windows. I asked out of curiosity, to check it out and try it.

-- 
                    /L/e/k/t/u

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

* Re: FRAME_PTR vs "struct frame *"
  2005-07-29  8:43       ` Juanma Barranquero
  2005-07-29  9:13         ` Miles Bader
@ 2005-07-29 11:09         ` Kenichi Handa
  1 sibling, 0 replies; 14+ messages in thread
From: Kenichi Handa @ 2005-07-29 11:09 UTC (permalink / raw)
  Cc: emacs-devel, miles

In article <f7ccd24b050729014358a5a36c@mail.gmail.com>, Juanma Barranquero <lekktu@gmail.com> writes:

> On 7/29/05, Kenichi Handa <handa@m17n.org> wrote:
>>  Such a cosmetic change will cause lots of conflicts in
>>  emacs-unicode branch.  Could you please postpone it until
>>  emacs-unicode is merged?

> Sure.

> And BTW, when will it be merged? Soon after the 22.1 release?

Yes, that is what I heard from Richard ... long ago.

---
Kenichi Handa
handa@m17n.org

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

* Re: FRAME_PTR vs "struct frame *"
  2005-07-29  9:52               ` Juanma Barranquero
@ 2005-07-29 11:45                 ` Juanma Barranquero
  0 siblings, 0 replies; 14+ messages in thread
From: Juanma Barranquero @ 2005-07-29 11:45 UTC (permalink / raw)
  Cc: emacs-devel, Kenichi Handa

At the bare minimum, the following patch is needed; with it the
emacs-unicode-2 branch builds on Windows with GCC.

Additionally, I'm seeing a few error messages while bytecompiling the .el files:

 File local-variables error: (error "Local variables entry is missing
the suffix")

Not sure whether that's a general problem or NTEmacs-specific.

-- 
                    /L/e/k/t/u



Index: lib-src/makefile.w32-in
===================================================================
RCS file: /cvsroot/emacs/emacs/lib-src/makefile.w32-in,v
retrieving revision 2.25.2.6
diff -u -2 -r2.25.2.6 makefile.w32-in
--- lib-src/makefile.w32-in	29 Jul 2005 01:54:39 -0000	2.25.2.6
+++ lib-src/makefile.w32-in	29 Jul 2005 11:08:15 -0000
@@ -191,13 +191,4 @@
  	$(lispsource)international/mule-cmds.elc \
  	$(lispsource)international/characters.elc \
-	$(lispsource)international/ucs-tables.elc \
-	$(lispsource)international/utf-8.elc \
-	$(lispsource)international/latin-1.el \
-	$(lispsource)international/latin-2.el \
-	$(lispsource)international/latin-3.el \
-	$(lispsource)international/latin-4.el \
-	$(lispsource)international/latin-5.el \
-	$(lispsource)international/latin-8.el \
-	$(lispsource)international/latin-9.el \
  	$(lispsource)case-table.elc

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

* Re: FRAME_PTR vs "struct frame *"
  2005-07-29  0:46     ` Kenichi Handa
  2005-07-29  1:13       ` Miles Bader
  2005-07-29  8:43       ` Juanma Barranquero
@ 2005-07-29 13:54       ` Richard M. Stallman
  2 siblings, 0 replies; 14+ messages in thread
From: Richard M. Stallman @ 2005-07-29 13:54 UTC (permalink / raw)
  Cc: lekktu, miles, emacs-devel

    Such a cosmetic change will cause lots of conflicts in
    emacs-unicode branch.  Could you please postpone it until
    emacs-unicode is merged?

There's no reason to do this now if it would cause any inconvenience.

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

end of thread, other threads:[~2005-07-29 13:54 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-28 15:34 FRAME_PTR vs "struct frame *" Juanma Barranquero
2005-07-28 21:40 ` Miles Bader
2005-07-28 23:29   ` Juanma Barranquero
2005-07-28 23:58     ` Juanma Barranquero
2005-07-29  0:46     ` Kenichi Handa
2005-07-29  1:13       ` Miles Bader
2005-07-29  8:43       ` Juanma Barranquero
2005-07-29  9:13         ` Miles Bader
2005-07-29  9:17           ` Juanma Barranquero
2005-07-29  9:35             ` Miles Bader
2005-07-29  9:52               ` Juanma Barranquero
2005-07-29 11:45                 ` Juanma Barranquero
2005-07-29 11:09         ` Kenichi Handa
2005-07-29 13:54       ` Richard M. Stallman

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).