unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27487: [PATCH] Associate .pyi with python-mode
@ 2017-06-25  6:46 Ville Skyttä
  2017-07-05 19:22 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Ville Skyttä @ 2017-06-25  6:46 UTC (permalink / raw)
  To: 27487

https://www.python.org/dev/peps/pep-0484/#id43

* lisp/progmodes/python.el (auto-mode-alist): Add .pyi.
---
 lisp/progmodes/python.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 464b931..6f16912 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -273,7 +273,7 @@
 (autoload 'help-function-arglist "help-fns")
 
 ;;;###autoload
-(add-to-list 'auto-mode-alist (cons (purecopy "\\.pyw?\\'")  'python-mode))
+(add-to-list 'auto-mode-alist (cons (purecopy "\\.py[iw]?\\'") 'python-mode))
 ;;;###autoload
 (add-to-list 'interpreter-mode-alist (cons (purecopy "python[0-9.]*") 'python-mode))
 
-- 
2.9.4






^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#27487: [PATCH] Associate .pyi with python-mode
  2017-06-25  6:46 bug#27487: [PATCH] Associate .pyi with python-mode Ville Skyttä
@ 2017-07-05 19:22 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2017-07-05 19:22 UTC (permalink / raw)
  To: 27487-done

Version: 26.1

Thanks; done in 94b2e1f.






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-05 19:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-25  6:46 bug#27487: [PATCH] Associate .pyi with python-mode Ville Skyttä
2017-07-05 19:22 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).