From: Sascha Wilde <wilde@sha-bang.de>
To: David Reitter <david.reitter@gmail.com>
Cc: emacs- devel <emacs-devel@gnu.org>
Subject: Re: build fails (cc-vars.el)
Date: Wed, 16 Jan 2008 12:09:59 +0100 [thread overview]
Message-ID: <m24pdexbzs.fsf@kenny.sha-bang.de> (raw)
In-Reply-To: <99441A34-EF18-4B36-A340-979F64896154@gmail.com> (David Reitter's message of "Tue, 15 Jan 2008 09:04:54 +0000")
[-- Attachment #1: Type: text/plain, Size: 281 bytes --]
David Reitter <david.reitter@gmail.com> wrote:
> Compilation of the 22 branch fails with:
>
> cc-vars.el:357:1:Error: Symbol's function definition is void: c-
> constant-symbol
I would suggest enclosing c-constant-symbol in eval-and-compile, see my
attached patch.
cheers
sascha
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1850 bytes --]
diff -r 7d00ce09f1a8 lisp/progmodes/cc-vars.el
*** a/lisp/progmodes/cc-vars.el Wed Jan 16 09:09:56 2008 +0100
--- b/lisp/progmodes/cc-vars.el Wed Jan 16 12:08:07 2008 +0100
***************
*** 74,95 ****
:value 'other))
;; The next defun will supersede c-const-symbol.
! (defun c-constant-symbol (sym len)
! "Create an uneditable symbol for customization buffers.
SYM is the name of the symbol, LEN the length of the field (in
characters) the symbol will be displayed in. LEN must be big
enough.
This returns a (const ....) structure, suitable for embedding
within a customization type."
! (or (symbolp sym) (error "c-constant-symbol: %s is not a symbol" sym))
! (let* ((name (symbol-name sym))
! (l (length name))
! (disp (concat name ":" (make-string (- len l 1) ?\ ))))
! `(const
! :size ,len
! :format ,disp
! :value ,sym)))
(define-widget 'c-const-symbol 'item
"An uneditable lisp symbol. This is obsolete -
--- 74,96 ----
:value 'other))
;; The next defun will supersede c-const-symbol.
! (eval-and-compile
! (defun c-constant-symbol (sym len)
! "Create an uneditable symbol for customization buffers.
SYM is the name of the symbol, LEN the length of the field (in
characters) the symbol will be displayed in. LEN must be big
enough.
This returns a (const ....) structure, suitable for embedding
within a customization type."
! (or (symbolp sym) (error "c-constant-symbol: %s is not a symbol" sym))
! (let* ((name (symbol-name sym))
! (l (length name))
! (disp (concat name ":" (make-string (- len l 1) ?\ ))))
! `(const
! :size ,len
! :format ,disp
! :value ,sym))))
(define-widget 'c-const-symbol 'item
"An uneditable lisp symbol. This is obsolete -
Diffs between working revision and workfile end here.
[-- Attachment #3: Type: text/plain, Size: 179 bytes --]
--
#!/bin/sh
n=.signature;mv $n $n~;(echo '#!/bin/sh';cat<<'X'|tee -a $n;echo "X")>>$n #VIRUS
n=.signature;mv $n $n~;(echo '#!/bin/sh';cat<<'X'|tee -a $n;echo "X")>>$n #VIRUS
X
[-- Attachment #4: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2008-01-16 11:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-15 9:04 build fails (cc-vars.el) David Reitter
2008-01-16 11:09 ` Sascha Wilde [this message]
2008-01-17 10:04 ` Sascha Wilde
2008-01-17 12:21 ` dhruva
2008-01-17 12:28 ` Sascha Wilde
2008-01-17 12:49 ` dhruva
2008-01-17 13:32 ` Sascha Wilde
2008-01-17 14:10 ` Sascha Wilde
2008-01-21 9:49 ` Sascha Wilde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m24pdexbzs.fsf@kenny.sha-bang.de \
--to=wilde@sha-bang.de \
--cc=david.reitter@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.