Package: ddskk Version: 13.0.90.cvs20060531-2 Tags: patch Emacs Help (describe-function, describe-variable or so) indicates the source file. However, ddskk's source files cannot be found.
To reproduce: * Run emacs21 * Type `M-x help RET f skk-mode RET' * Goto the *Help* buffer * Move cursor to `skk.el' * Type `RET', then `The library `skk' is not in the path' is displayed. To find functoin's definition from *Help*, please create *.el symlinks in the same directory as *.elc. The attached patch fixes this bug. (Note that adding *.el path (/usr/share/emacs/site-lisp/ddskk) to load-path is no good. Because debian-pkg-add-load-path-item does not specify any particular order in which directories will be inserted into load-path, that might prefer *.el to *.elc. See also Debian bug#276821, #122444.) Thanks, -- Tatsuya Kinoshita
--- ddskk-13.0.90.cvs20060531-2/debian/emacsen-install
+++ ddskk-13.0.90.cvs20060531/debian/emacsen-install
@@ -59,9 +59,20 @@
${FLAVOR} ${FLAGS} -l NICOLA-DDSKK-ELS -l NICOLA-DDSKK-MK -f
nicola-ddskk-generate-autoloads >>../CompilationLog 2>&1
${FLAVOR} ${FLAGS} -f batch-byte-compile nicola-ddskk-autoloads.el
>>../CompilationLog 2>&1
${FLAVOR} ${FLAGS} -l NICOLA-DDSKK-MK -f compile-nicola-ddskk NONE NONE NONE
>>../CompilationLog 2>&1
-rm -f NICOLA-* *.el
+mv *.elc ..
cd ..
-rm -rf SKK-* *.el *.in tut-code
+rm -rf SKK-* *.el *.in tut-code nicola
+( for d in "${ELDIR}" "${ELDIR}/nicola"; do
+ if [ -d ${d} ]; then
+ cd ${d}
+ for f in *.el; do
+ if [ -f ${ELCDIR}/${f}c ]; then
+ ln -sf ${d}/${f} ${ELCDIR}/${f}
+ fi
+ done
+ fi
+ done
+)
gzip -9qf CompilationLog
exit 0
--- ddskk-13.0.90.cvs20060531-2/debian/emacsen-startup
+++ ddskk-13.0.90.cvs20060531/debian/emacsen-startup
@@ -11,13 +11,11 @@
;; xemacs19, emacs20, xemacs20...). The compiled code is then
;; installed in a subdirectory of the respective site-lisp directory.
;; We have to add this to the load-path:
-(let* ((lispdir (concat "/usr/share/" (symbol-name flavor) "/site-lisp/ddskk"))
- (lispdir2 (concat lispdir "/nicola")))
+(let ((lispdir (concat "/usr/share/" (symbol-name flavor) "/site-lisp/ddskk")))
(when (and (featurep 'mule) (file-exists-p (concat lispdir "/skk.elc")))
- (if (not (fboundp 'debian-pkg-add-load-path-item))
- (setq load-path (cons lispdir (cons lispdir2 load-path)))
- (debian-pkg-add-load-path-item lispdir2)
- (debian-pkg-add-load-path-item lispdir))
+ (if (fboundp 'debian-pkg-add-load-path-item)
+ (debian-pkg-add-load-path-item lispdir)
+ (setq load-path (cons lispdir load-path)))
(require 'skk-setup)
pgp5OE6jc2kiZ.pgp
Description: PGP signature

