[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Copy whitespace-delimited text to variable
From: |
Tim Johnson |
Subject: |
Re: Copy whitespace-delimited text to variable |
Date: |
Sun, 11 Mar 2018 08:18:21 -0800 |
User-agent: |
Mutt/1.7.0 (2016-08-17) |
* Emanuel Berg <moasen@zoho.com> [180310 15:31]:
> Tim Johnson wrote:
>
> > Hmm! Interesting that you brought that up.
> > Been thinking of the same. I hate messing
> > with the '.' in python, 'cuz I don't want to
> > mess up elpy.
>
> (defun backward-word-experiment ()
> (interactive)
> (let ((temp-st (make-syntax-table)))
> (modify-syntax-entry ?. "w" temp-st)
> (with-syntax-table temp-st
> (backward-word 1) )))
> (defalias 'bwe 'backward-word-experiment)
> ;; never fear, g.args is here
> ^^ try me
>
This one is definitely the Bee's Knees.
Adding to moi library.
tack
--
Tim
http://www.akwebsoft.com, http://www.tj49.com