Posts
49
Comments
83
Trackbacks
0
Emacs powershell-mode.el updated to v0.5

Here is the updated file. The old v0.4 version can still be downloaded as well. Many thanks to Richard Bielawski for taking the time to update some things and fix bugs. Change list from Richard's diff:

  • Indenting fixed on <tab>
  • Elseif keyword added
  • Support standard comment func
  • Bug fixed when visiting files in major mode

I didn't do a thorough test, simply used it in the following scenarios: visiting file, auto-load, colorization, indenting via <tab> and editing.

Apologies for the dastardly delay--but if you have improvements and suggestions / snippets, I'd be happy to include them and give you due credit.

Thanks again Richard!

 

del.icio.us Tags: ,

Technorati Tags: ,
posted on Tuesday, August 19, 2008 7:52 PM Print
Comments
Gravatar
# re: Emacs powershell-mode.el updated to v0.5
Martin S
9/25/2008 8:29 AM
  
Thanks for updating it!
I do get an error upon typing M-x powershell-mode, namely: File mode specification error: (wrong-type-argument stringp t)

I am using native Emacs-22.1 under Win XP.

After the error, the mode still seems to work. What is wrong?
Gravatar
# re: Emacs powershell-mode.el updated to v0.5
Vivek
11/24/2008 8:13 PM
  
Martin:
Not sure, I am using a recent csv version more recent than what you have and get no error. However, if the mode continues to work, I would ignore it till your next emacs upgrade.

If it continues to cause problems let me know and I'll downgrade my emacs version and see what's up.
Thanks
Gravatar
# re: Emacs powershell-mode.el updated to v0.5
Alan B
12/17/2008 6:30 AM
  
I have XEmacs 21.4 and I'm getting these errors also.
Gravatar
# re: Emacs powershell-mode.el updated to v0.5
Alan B
12/17/2008 7:02 AM
  
I did some investigating. The problem is powershell-setup-imenu.
`require' is a built-in function
(require FEATURE &optional FILENAME), but you pass t as a filename where a stringp is expected. Also I don't have which-func.
Gravatar
# re: Emacs powershell-mode.el updated to v0.5
Vivek
12/25/2008 4:38 PM
  
I'll take a look when I get the next chance... Thanks for reporting it.

FWIW, you can take that entire imenu section out for now if this bugs you enough to prevent real work :)
Gravatar
# re: Emacs powershell-mode.el updated to v0.5
paco
5/6/2009 7:09 AM
  
Thanks for updating it!
I do get an error upon typing M-x powershell-mode, namely: File mode specification error: (wrong-type-argument stringp t)

I am using native Emacs-22.1 under Win XP.

After the error, the mode still seems to work. What is wrong?

---> same problem here with emacs 22.3.1

regards, paco
Gravatar
# re: Emacs powershell-mode.el updated to v0.5
Vivek
6/28/2009 4:39 PM
  
re: Paco,

Sorry for the late reply---this is a harmless error. Please ignore till next version. :)
Gravatar
# re: Emacs powershell-mode.el updated to v0.5
Xah Lee
7/3/2009 10:05 PM
  
hi, is your script open source or something?

may i have permission to put it on my website?

i have a emacs tutorial here

http://xahlee.org/emacs/emacs.html

but am writing a simple tutorial for powershell,
not yet public. Am thinking to include your script there, possibly mod a bit, or perhaps send you back any change if you like. Also, am talking to emacsw32 guy Lennart and we hope to include your in that emacs distro.

thanks.

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 1 and 4 and type the answer here:
News
A little slow these days as I'm busy working on exchangelabs.com. I will try and post tidbits when I get some time. Enjoy the older posts till then!