pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/46804: Emacs Load Path issues when using emacs-nox11 w/ other packages such as flim, semi, and skk
The following reply was made to PR pkg/46804; it has been noted by GNATS.
From: David Holland <dholland-pbugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/46804: Emacs Load Path issues when using emacs-nox11 w/
other packages such as flim, semi, and skk
Date: Wed, 22 Aug 2012 09:13:00 +0000
On Fri, Aug 17, 2012 at 12:50:08PM +0000, Makoto Fujiwara wrote:
> +_EMACS_VERSION_DIR!= \
> + emacs -q -batch -f eval '(print load-path)' --no-site-lisp 2>&1 | \
> + ${TR} ' ' '\012' | \
> + ${SED} -e 's|.*/share|/share|' -e 's/(//' | \
> + rev | ${CUT} -d '/' -f 2- | rev | ${SORT} -u | \
> + ${GREP} lisp | ${SED} -e 's|share/emacs/||' -e 's|/lisp||'
Also, while I'm at it, that seems excessively complicated. How about
emacs -q -batch -eval '(print load-path)' |\
${TR} ' ' '\n' |\
${GREP} '/share/emacs/[^/]*/lisp' |\
${SED} -e 's|.*/share/emacs/\([^/]*\)/lisp.*|\1|' |\
${SORT} -u
?
One can also do
emacs -q -batch -eval '(print load-path)' |\
${SED} -n 'y/
/\n/;\,/share/emacs/[^/]*/lisp,{s|.*/share/emacs/\([^/]*\)/lisp.*|\1|;p;q;}'
That is not a win on clarity, but if we're going to run this every
time the .mk file is loaded having fewer forks will help slow systems...
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index