unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Avoiding this byte compile warning
@ 2007-01-10 16:34 rgb
  2007-01-11  8:04 ` Tim X
  0 siblings, 1 reply; 3+ messages in thread
From: rgb @ 2007-01-10 16:34 UTC (permalink / raw)


I get the following message if the column-marker feature isn't
available.

tal-mode.el:1367:26:Warning: the following functions are not known to
be defined: column-marker-1,  column-marker-2

What's the proper way to code the function below so that it works the
way I want but doesn't cause a warning?

Thanks.


(defun tal-setup-column-markers ()
  "Turns on column markers if configured and available.
See `tal-column-marker-1' and `tal-column-marker-2' "
  (if (condition-case ()
          (progn (require 'column-marker) nil)
        (error t))
      (if (not (and (zerop tal-column-marker-1)
                    (zerop tal-column-marker-2)))
          (message "column markers are configured but %s"
                   " column-marker feature not available."))
    (setq indent-tabs-mode nil)      ;documented as buffer local
    (column-marker-1 tal-column-marker-1)
    (column-marker-2 tal-column-marker-2)))

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

end of thread, other threads:[~2007-01-11 17:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-10 16:34 Avoiding this byte compile warning rgb
2007-01-11  8:04 ` Tim X
2007-01-11 17:46   ` rgb

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