unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4402: apropos-documentation and platform-specific docs
@ 2009-09-11  7:01 Glenn Morris
  2009-09-11  9:02 ` Eli Zaretskii
  2009-09-11 19:04 ` Stefan Monnier
  0 siblings, 2 replies; 8+ messages in thread
From: Glenn Morris @ 2009-09-11  7:01 UTC (permalink / raw)
  To: bug-gnu-emacs


On GNU/Linux:
emacs -Q
M-x apropos-documentation nextstep

returns various matches, including things like:

x-create-frame
  Function: Make a new Nextstep window, called a "frame" in Emacs terms.
[...]

The one-line summary is incorrect, since it is the version specific to
the NS build, not the build currently running.

The problem is caused by the DOC file containing three sets of
doc-strings for Fx-create-frame, extracted from w32fns.c, xfns.c, and
nsfns.m.

This made me wonder, why does the DOC file in my GNU/Linux build
contain information extracted from Nextstep and Windows files that is
never going to be relevant? Perhaps it's so that one can in principle
share DOC files between different builds? This doesn't seem like a big
advantage to me. I doubt (m)any people have ever shared the DOC file
between any of these platforms. The size of DOC is a negligible part of
a current Emacs installation.

The standard solution to this kind of thing seems to be that where
functions/variables have multiple, platform-specific definitions, each
should have the same, unified doc-string. This is a bit of a pain.

Only putting the relevant files into the DOC file would eliminate this
issue.






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

* bug#4402: apropos-documentation and platform-specific docs
  2009-09-11  7:01 bug#4402: apropos-documentation and platform-specific docs Glenn Morris
@ 2009-09-11  9:02 ` Eli Zaretskii
  2009-09-11 18:05   ` Glenn Morris
  2009-09-11 19:04 ` Stefan Monnier
  1 sibling, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2009-09-11  9:02 UTC (permalink / raw)
  To: Glenn Morris, 4402

> From: Glenn Morris <rgm@gnu.org>
> Date: Fri, 11 Sep 2009 03:01:04 -0400
> Cc: 
> 
> The problem is caused by the DOC file containing three sets of
> doc-strings for Fx-create-frame, extracted from w32fns.c, xfns.c, and
> nsfns.m.
> 
> This made me wonder, why does the DOC file in my GNU/Linux build
> contain information extracted from Nextstep and Windows files that is
> never going to be relevant? Perhaps it's so that one can in principle
> share DOC files between different builds? This doesn't seem like a big
> advantage to me. I doubt (m)any people have ever shared the DOC file
> between any of these platforms. The size of DOC is a negligible part of
> a current Emacs installation.

DOC is an architecture-independent file, so it must include the doc
strings of all symbols.

> The standard solution to this kind of thing seems to be that where
> functions/variables have multiple, platform-specific definitions, each
> should have the same, unified doc-string. This is a bit of a pain.
> 
> Only putting the relevant files into the DOC file would eliminate this
> issue.

There are other solutions, but they need some infrastructure.  See
past discussions of this issue a couple of months ago.





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

* bug#4402: apropos-documentation and platform-specific docs
  2009-09-11  9:02 ` Eli Zaretskii
@ 2009-09-11 18:05   ` Glenn Morris
  2009-09-12  8:55     ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2009-09-11 18:05 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 4402

Eli Zaretskii wrote:

> DOC is an architecture-independent file, so it must include the doc
> strings of all symbols.

My question is, why must DOC be architecture independent?
There are certianly drawbacks to this, so what's the benefit?





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

* bug#4402: apropos-documentation and platform-specific docs
  2009-09-11  7:01 bug#4402: apropos-documentation and platform-specific docs Glenn Morris
  2009-09-11  9:02 ` Eli Zaretskii
@ 2009-09-11 19:04 ` Stefan Monnier
  1 sibling, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2009-09-11 19:04 UTC (permalink / raw)
  To: Glenn Morris; +Cc: bug-gnu-emacs, 4402

> x-create-frame
>   Function: Make a new Nextstep window, called a "frame" in Emacs terms.
> [...]

Yes.  Someone needs to move the DEFUN of x-create-frame to
a platform-independent file.  Maybe it can be renamed to something that
doesn't include the misleading "x-" prefix.  If we ever want to be able
to run an Emacs session with both X11 and ns frames (and/or X11 and
w32), this kind of work will be necessary anyway.

Same thing goes for x-popup-menu and many others.

Any help in this direction is welcome.  It can be done little by little.


        Stefan





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

* bug#4402: apropos-documentation and platform-specific docs
  2009-09-11 18:05   ` Glenn Morris
@ 2009-09-12  8:55     ` Eli Zaretskii
  2009-09-12 19:45       ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2009-09-12  8:55 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 4402

> From: Glenn Morris <rgm@gnu.org>
> Cc: 4402@emacsbugs.donarmstrong.com
> Date: Fri, 11 Sep 2009 14:05:32 -0400
> 
> Eli Zaretskii wrote:
> 
> > DOC is an architecture-independent file, so it must include the doc
> > strings of all symbols.
> 
> My question is, why must DOC be architecture independent?
> There are certianly drawbacks to this, so what's the benefit?

The main benefit is that it can be installed only once for several
different architectures, like all the Lisp files.

Another benefit is that the doc strings are available on all
platforms, no matter if the doc string is read from a Lisp file or
from DOC.  This is handy when, e.g., one writes an emulation for a
platform-specific function on another platform.  It also provides a
common base for discussing interfaces and doc strings.






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

* bug#4402: apropos-documentation and platform-specific docs
  2009-09-12  8:55     ` Eli Zaretskii
@ 2009-09-12 19:45       ` Stefan Monnier
       [not found]         ` <os1vmatjml.fsf@fencepost.gnu.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2009-09-12 19:45 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 4402

>> > DOC is an architecture-independent file, so it must include the doc
>> > strings of all symbols.
>> My question is, why must DOC be architecture independent?
>> There are certianly drawbacks to this, so what's the benefit?

Actually, I can't think of many drawbacks.  Most of the problems we face
in this respect are just the tip of the iceberg, where the rest of the
iceberg is the inconsistency we have in the different implementations of
"the same" function/variable.
If we fix the real underlying problems, then there are no problems with
the DOC file.


        Stefan





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

* Processed: Re: bug#4402: apropos-documentation and platform-specific docs
       [not found]         ` <os1vmatjml.fsf@fencepost.gnu.org>
@ 2009-09-14  1:20           ` Emacs bug Tracking System
  2017-12-04  3:05           ` Glenn Morris
  1 sibling, 0 replies; 8+ messages in thread
From: Emacs bug Tracking System @ 2009-09-14  1:20 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Emacs Bugs

Processing commands for control@emacsbugs.donarmstrong.com:

> retitle 4402 Merge all platform-specific functions
Bug #4402 [emacs] apropos-documentation and platform-specific docs
Changed bug title to 'Merge all platform-specific functions' from 'apropos-documentation and platform-specific docs'
> stop
Stopping processing here.

Please contact me if you need assistance.

Don Armstrong
(administrator, Emacs bugs database)




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

* bug#4402: apropos-documentation and platform-specific docs
       [not found]         ` <os1vmatjml.fsf@fencepost.gnu.org>
  2009-09-14  1:20           ` Processed: " Emacs bug Tracking System
@ 2017-12-04  3:05           ` Glenn Morris
  1 sibling, 0 replies; 8+ messages in thread
From: Glenn Morris @ 2017-12-04  3:05 UTC (permalink / raw)
  To: 4402


> Retitling this and leaving it open as a reminder.

It hasn't been of any use. Closing as wontfix.





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

end of thread, other threads:[~2017-12-04  3:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-11  7:01 bug#4402: apropos-documentation and platform-specific docs Glenn Morris
2009-09-11  9:02 ` Eli Zaretskii
2009-09-11 18:05   ` Glenn Morris
2009-09-12  8:55     ` Eli Zaretskii
2009-09-12 19:45       ` Stefan Monnier
     [not found]         ` <os1vmatjml.fsf@fencepost.gnu.org>
2009-09-14  1:20           ` Processed: " Emacs bug Tracking System
2017-12-04  3:05           ` Glenn Morris
2009-09-11 19:04 ` Stefan Monnier

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