emacs-devel
[Top][All Lists]
Advanced

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

Re: EMACS_INT cleanup


From: Lars Magne Ingebrigtsen
Subject: Re: EMACS_INT cleanup
Date: Fri, 24 Sep 2010 15:51:23 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Lars Magne Ingebrigtsen <address@hidden> writes:

> Nice.  The f7 macro could be extended to do that automatically.

So now the version of the macro look like:

(global-set-key
 [f7] (lambda () (interactive)
        (save-some-buffers t)
        (ignore-errors
          (mapcar (lambda (proc) (kill-process proc))
                  compilation-in-progress))
        (setq compilation-in-progress nil)
        (compile
         (format "make CFLAGS='-g -O2  -Wconversion' -k %s -W %s 2>&1 | egrep 
\"(conversion.*'int'.*(Lisp_Obj|long)|error)\""
                 (file-name-nondirectory
                  (replace-regexp-in-string ".c$" ".o" (buffer-file-name)))
                 (file-name-nondirectory (buffer-file-name))))))

And you don't even have to alter the Makefile to add the -Wconversion
any more.
                 
-- 
(domestic pets only, the antidote for overdose, milk.)
  address@hidden * Lars Magne Ingebrigtsen




reply via email to

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