[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5277: 23.1.90; cus-load.el path for cedet/semantic/bovine/c.el

From: Kevin Ryde
Subject: bug#5277: 23.1.90; cus-load.el path for cedet/semantic/bovine/c.el
Date: Thu, 31 Dec 2009 07:43:51 +1100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

In the current cvs cus-load.el has

    (put 'c 'custom-loads '("cc-vars" cmacexp cpp hideif "c"))

I think the "c" there is cedet/semantic/bovine/c.el.  I believe it won't
load under that name as the cedet subdirs aren't in the load-path.

That c.el file has

    generated-autoload-load-name: "semantic/bovine/c"

which I presume is designed for its autoloads.  I wonder if it should be
used for the custom loads too.  Seems a bit like hard work to remember
it in every sub-file, but building a load-path relative name might go
wrong in worse ways if making deps from files not yet in a loadable tree
or whatnot.

cus-load.el.subfiles.diff below is the what's changed by using
`generated-autoload-load-name'.  Notice for instance the "ede/locate"
one was previously loading "locate", which would mean the wrong
locate.el -- a danger of duplicate names among .el files I suppose.

2009-12-30  Kevin Ryde  <address@hidden>

        * cus-dep.el (custom-make-dependencies): Add hack-local-variables
        to pick up generated-autoload-load-name from
        cedet/semantic/bovine/c.el and similar.  This ensures
        "semantic/bovine/c" gets into custom-loads, instead of bare "c"
        which is no good as the bovine subdir is not in load-path.

Attachment: cus-dep.el.local-vars.diff
Description: Text Data

Attachment: cus-load.el.subfiles.diff
Description: Text Data

In GNU Emacs (i586-pc-linux-gnu, GTK+ Version 2.18.5)
 of 2009-12-27 on blah.blah
configured using `configure  'CFLAGS=-O -g' '--prefix=/down/emacs/b/inst' 

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_AU
  value of $XMODIFIERS: nil
  locale-coding-system: iso-latin-1-unix
  default enable-multibyte-characters: t

reply via email to

[Prev in Thread] Current Thread [Next in Thread]