all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* compilation-process-setup-function doc bug?
@ 2009-11-04 22:57 Paul Michael Reilly
  2009-11-05  1:57 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Michael Reilly @ 2009-11-04 22:57 UTC (permalink / raw)
  To: emacs-devel

I believe the documentation string for the variable
compilation-process-setup-function is wrong or less than clear.
It says:

   *Function to call to customize the compilation process.
   This function is called immediately before the compilation process is
   started.  It can be used to set any variables or functions that are
   used while processing the output of the compilation process.  The
   function is called with variables `compilation-buffer' and
   `compilation-window' bound to the compilation buffer and window,
   respectively.

What does this mean actually?  In my blissful ignorance I thought
it meant I should create a function like so:

(defun test (compilation-buffer compilation-window)
   ...)

and do

(setq compilation-process-setup-function 'test)

but when I do M-x compile, Emacs is not happy with the arguments.
It is actually called with no arguments.  So next I'm thinking maybe 
this is what the documentation means:

(defun test ()
   (message "The args are %s %s" compilation-buffer compilation-window)
   ...)

but Emacs complains that the variables are void, which seems reasonable. 
  My take is that the last sentence in the doc string should be 
expunged.  Am I correct?

-pmr





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

end of thread, other threads:[~2009-11-05  2:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-04 22:57 compilation-process-setup-function doc bug? Paul Michael Reilly
2009-11-05  1:57 ` Stefan Monnier
2009-11-05  2:18   ` Paul Michael Reilly
2009-11-05  2:44     ` 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.