Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#41825 - [emacs-python-mode] typo in post-install instructions

Attached to Project: Community Packages
Opened by Tavian Barnes (tavianator) - Thursday, 04 September 2014, 17:24 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 12 September 2014, 12:34 GMT
Task Type General Gripe
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The post-install message for emacs-python-mode (similar for others like php-mode) contains instructions to add

(autoload 'python-mode "python-mode.el" "Python mode." t)
(setq auto-mode-alist (append '(("/*.\.py$" . python-mode)) auto-mode-alist))

to your ~/.emacs. But it looks like that regex has a typo, and should be more like "/.*\\.py\\'". Note the /.* instead of /*. (which seems like a typo), the double backslash (otherwise lisp eats it), and the \\' instead of $ (which matters in the rare case that filenames have a newline in them).

"\\.py\\'" would be equivalent and simpler.

Additional info:

emacs-python-mode 6.1.3-1
emacs-php-mode 1.5.0-5
Possibly others.

Steps to reproduce:

# pacman -S emacs-python-mode
This task depends upon

Closed by  Sergej Pupykin (sergej)
Friday, 12 September 2014, 12:34 GMT
Reason for closing:  Fixed
Additional comments about closing:  in svn/trunk only

Loading...