[Top][All Lists]

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

Re: Still cannot build native windows version of emacs 23.*

From: Lennart Borgman (gmail)
Subject: Re: Still cannot build native windows version of emacs 23.*
Date: Sat, 09 Feb 2008 23:20:17 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20071031 Thunderbird/ Mnenhy/

Jason Rumney wrote:
Lennart Borgman (gmail) wrote:
And after reinserting the same code I sent before I get this:

 Generating autoloads for kmacro.el...done
 -- c:/eclean/bld/emacs/lisp/ldefs-boot.el: (;; version-control: never
 ;; no-byte-compile: t
 ;; no-update-autoloads: t
 Local variables entry in c:/eclean/bld/emacs/lisp/ldefs-boot.el
   is  missing the suffix (suffix chars: (13 36)), line:
 version-control: never
 make[1]: *** [autoloads] Error -1
 make[1]: Leaving directory `C:/eclean/bld/emacs/lisp'
 make: *** [bootstrap-gmake] Error 2

There is a CR in ldefs-boot.el.

Yes, there are two embedded ^M characters, which cause the eol detection to fail. They seem to be translated from the \r and \C-m escape sequences in button.el and wid-edit.el.

The conversion from \r in button.el in

(defvar button-map
  (let ((map (make-sparse-keymap)))
    (define-key map "\r" 'push-button)
    (define-key map [mouse-2] 'push-button)
  "Keymap used by buttons.")

happens in `read' in `autoload-generate-file-autoloads' in autoload.el:

              ;; Read the next form and make an autoload.
              (let* ((form (prog1 (read (current-buffer))
                             (or (bolp) (forward-line 1))))
                     (autoload (make-autoload form load-name)))
                (if autoload
                    (push (nth 1 form) autoloads-done)
                  (setq autoload form))
                (let ((autoload-print-form-outbuf outbuf))
                  (autoload-print-form autoload)))

Would it help to write the key binding as

    (define-key map [(control ?m)] 'push-button)

I just tried, but ldefs-boot.el was not changed. When is ldefs-boot.el created? Where is this described?

However chaning the bindings in ldefs-boot.el directly makes bootstrap succeed.

reply via email to

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