help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy whitespace-delimited text to variable


From: Emanuel Berg
Subject: Re: Copy whitespace-delimited text to variable
Date: Sun, 11 Mar 2018 01:21:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

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


"Pacquiao hits Marquez like a typhoon across
the Pacific!"
"And Marquez has never seen anything like
it before!"
"Who has?"
...
"If this levels out, it can be a tremendous
turn of events!"
"Marquez is fighting the fight of his life,
because this is the fight of his life."

-- 
underground experts united
http://user.it.uu.se/~embe8573


reply via email to

[Prev in Thread] Current Thread [Next in Thread]