Skip to content

Commit

Permalink
Add directories to `load-path' on byte-compilation on Emacs21.
Browse files Browse the repository at this point in the history
* twittering-mode.el: Add some directories for Emacs21 to
`load-path' even when byte-compiling the file on Emacs21.
  • Loading branch information
cvmat committed May 5, 2011
1 parent 63dd103 commit 6084e33
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
(twittering-start-http-session-curl-https-p): likewise.
(twittering-initialize-global-variables-if-necessary): likewise.

* twittering-mode.el: Add some directories for Emacs21 to
`load-path' even when byte-compiling the file on Emacs21.

2011-04-23 Tadashi MATSUO <tad@mymail.twin.jp>

* NEWS, NEWS.ja, LAST-VERSION, VERSION, doc/web/index.text:
Expand Down
21 changes: 11 additions & 10 deletions twittering-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,17 @@
(require 'xml)
(require 'parse-time)
(when (> 22 emacs-major-version)
(setq load-path
(append (mapcar (lambda (dir)
(expand-file-name
dir
(if load-file-name
(or (file-name-directory load-file-name)
".")
".")))
'("url-emacs21" "emacs21"))
load-path))
(eval-and-compile
(setq load-path
(append (mapcar (lambda (dir)
(expand-file-name
dir
(if load-file-name
(or (file-name-directory load-file-name)
".")
".")))
'("url-emacs21" "emacs21"))
load-path)))
(and (require 'un-define nil t)
;; the explicitly require 'unicode to update a workaround with
;; navi2ch. see a comment of `twittering-ucs-to-char' for more
Expand Down

0 comments on commit 6084e33

Please sign in to comment.