not finding pymacs/pymacs.el

Bug #835868 reported by Andreas Roehler
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Medium
Andreas Roehler

Bug Description

Am 28.08.2011 03:08, schrieb tlroche:
> 2 byte-compile-directory.sh abends on not finding pymacs/pymacs.el (which is not included, either)

Related branches

Revision history for this message
Andreas Roehler (a-roehler) wrote :

AFAIK it was never distributed here, however required. Think we should include it.

Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
importance: Undecided → Medium
status: New → Confirmed
Changed in python-mode:
status: Confirmed → Fix Committed
Revision history for this message
tlroche (tom-roche) wrote :

if there's a package I can download to test, please lemme know.

Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Bug 835868] Re: not finding pymacs/pymacs.el

Am 31.08.2011 21:17, schrieb tlroche:
> if there's a package I can download to test, please lemme know.
>

Thanks. Does pycomplete work for you?

Andreas

Revision history for this message
tlroche (tom-roche) wrote :
Download full text (3.9 KiB)

Andreas Röhler Wed, 31 Aug 2011 19:40:33 -0000
> Does pycomplete work for you?

Apparently not. Here's how I tested:

0 Open setup.py (distributed with python-mode) in buffer.

1 In the first line

- from distutils.core import setup

  backspace to

+ from distutils.core imp

2 Test keys: if I press

* Tab -> nothing. Press Tab again: line indents. `C-x u` to restore.

* C-Tab -> buffer splits (lower buffer name="*anything*") and in minibuffer I get prompt=

> pattern:

  with text=

> imp

  `C-g` to restore.

* C-M-i -> I get the minibuffer message

> No completions available; use M-T or M-x semantic-mode

I suspect the above behavior is due to:

0 I am

> Using `python-mode' version 6.0.2

1 I don't have pymacs, and pycomplete requires pymacs (no?)

2 I do have `anything`, but I can delete that.

The python-related stuff called from my init.el follows to end of post.
Your suggestions for its improvements (at least for testing purposes)
are appreciated.------------------------------------------------------

(defconst LOCAL-PYTHON-LISP-DIR (concat LOCAL-EMACS-LISP-DIR "/python"))
(setq load-path
  (append
    (list
      LOCAL-PYTHON-LISP-DIR
      (concat LOCAL-PYTHON-LISP-DIR "/python-mode")
      (concat LOCAL-PYTHON-LISP-DIR "/anything")
      (concat LOCAL-PYTHON-LISP-DIR "/pylookup")
    )
  load-path)
) ; end (setq load-path

(require 'python-mode)
(add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))

(require 'ipython)

(require 'anything)
(require 'anything-ipython)
(when (require 'anything-show-completion nil t)
   (use-anything-show-completion 'anything-ipython-complete
                                 '(length initial-pattern)))
;;; begin adaptation from header comments to anything-ipython.el
;;; use C-Tab, not M-Tab (which changes windows)
(add-hook 'python-mode-hook #'(lambda ()
          (define-key py-mode-map (kbd "C-<tab>") 'anything-ipython-complete)))
(add-hook 'ipython-shell-hook #'(lambda ()
          (define-key py-mode-map (kbd "C-<tab>") 'anything-ipython-complete)))
;;; end adaptation from header comments to anything-ipython.el

(require 'comint)
(define-key comint-mode-map (kbd "M-") 'comint-next-input)
(define-key comint-mode-map (kbd "M-") 'comint-previous-input)
(define-key comint-mode-map [down] 'comint-next-matching-input-from-input)
(define-key comint-mode-map [up] 'comint-previous-matching-input-from-input)

;;; pylookup
(autoload 'pylookup-lookup "pylookup")
(autoload 'pylookup-update "pylookup")
;;; TODO: reuse load-path above
(setq pylookup-program "~/.emacs.d/site-lisp/python/pylookup/pylookup.py")
(setq pylookup-db-file "~/.emacs.d/site-lisp/python/pylookup/pylookup.db")
(global-set-key "\C-ch" 'pylookup-lookup)

;;; autopair
(autoload 'autopair-global-mode "autopair" nil t)
(autopair-global-mode)
(add-hook 'lisp-mode-hook
          #'(lambda () (setq autopair-dont-activate t)))
(add-hook 'python-mode-hook
          #'(lambda ()
              (push '(?' . ?')
                    (getf autopair-extra-pairs :code))
              (setq autopair-handle-action-fns
                    (list #'autopair-default-handle-action
                          #'autopair-python-triple-quote-action))))

(require ...

Read more...

Revision history for this message
Andreas Roehler (a-roehler) wrote :

Am 31.08.2011 21:17, schrieb tlroche:
> if there's a package I can download to test, please lemme know.
>

could you make an entry in the tracker from your report sent to
pymacs-devel?

Thanks,

Andreas

Revision history for this message
tlroche (tom-roche) wrote :

I replied to Andreas, but forgot to CC launchpad:

From: Tom Roche <email address hidden>
To: Andreas Roehler <email address hidden>
Subject: Re: [Bug 835868] Re: not finding pymacs/pymacs.el
User-Agent: GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.4)
Reply-to: Tom Roche <email address hidden>
Date: Fri, 16 Sep 2011 21:16:49 -0400
Message-ID: <email address hidden>
In-Reply-To: <email address hidden>
References: <email address hidden> <email address hidden> <email address hidden>

> Andreas Roehler Thu, 08 Sep 2011 06:07:59 -0000
> > could you make an entry in the tracker from your report sent to
> > pymacs-devel?

> Apologies for the delay. I made two bug reports: one for the install problem

> https://bugs.launchpad.net/python-mode/+bug/852287

> and one for the unhelpful message pymacs utters when installed incorrectly

> https://bugs.launchpad.net/python-mode/+bug/852293

> HTH, Tom Roche <email address hidden>

Revision history for this message
tlroche (tom-roche) wrote :

A few minutes ago I installed python-mode from trunk (revision=580) and noted that pymacs is included. I had another problem, detailed @

https://bugs.launchpad.net/python-mode/+bug/821986/comments/7

running with a previously-installed pymacs=v0.24-beta2. If python-mode currently installs pymacs, and there is way to test that, please let me know and I will try. (Err ... you should probably tell me how to uninstall my currently-installed pymacs, also.) In any case, looks like this issue=835868 may be nearly fixed.

Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.