all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* declare-function for C files
@ 2007-11-22 16:22 Richard Stallman
  2007-11-22 16:28 ` Juanma Barranquero
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2007-11-22 16:22 UTC (permalink / raw)
  To: emacs-devel

What is the purpose of specifying a C file in `declare-function'?
Is it for platform-specific primitives?

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

* Re: declare-function for C files
  2007-11-22 16:22 declare-function for C files Richard Stallman
@ 2007-11-22 16:28 ` Juanma Barranquero
  2007-11-22 18:19   ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Juanma Barranquero @ 2007-11-22 16:28 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

On Nov 22, 2007 5:22 PM, Richard Stallman <rms@gnu.org> wrote:

> What is the purpose of specifying a C file in `declare-function'?
> Is it for platform-specific primitives?

Yes. For example, `make-symbolic-link' throws warnings on Windows, as
do several x-* functions. Same for `w32-*' functions on non-Windows
builds.

             Juanma

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

* Re: declare-function for C files
  2007-11-22 16:28 ` Juanma Barranquero
@ 2007-11-22 18:19   ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2007-11-22 18:19 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: rms, emacs-devel

>> What is the purpose of specifying a C file in `declare-function'?
>> Is it for platform-specific primitives?

> Yes. For example, `make-symbolic-link' throws warnings on Windows, as
> do several x-* functions.

BTW, `make-symbol-link' should be defined on Windows as well.  It may
signal an error, but it should be defined so that e.g. Tramp can make it
work on remote hosts.


        Stefan

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

end of thread, other threads:[~2007-11-22 18:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-22 16:22 declare-function for C files Richard Stallman
2007-11-22 16:28 ` Juanma Barranquero
2007-11-22 18:19   ` Stefan Monnier

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.