unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim Johnson <tim@akwebsoft.com>
To: Emacs <Help-gnu-emacs@gnu.org>
Subject: Copy whitespace-delimited text to variable
Date: Wed, 7 Mar 2018 13:40:18 -0900	[thread overview]
Message-ID: <20180307224018.GB12710@mail.akwebsoft.com> (raw)

GNU Emacs 25.1. on ubuntu 14.04

Is there an elisp function which would return the whitespace
delimited text preceding the cursor?

Example: in elpy
g.args (where cursor is at or following 's')
(current-word) would just return 'args', I need 'g.args'
and I don't wish to modify the syntax table.

Before I roll my own, I'd rather not re-invent the wheel...
thanks
-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com



             reply	other threads:[~2018-03-07 22:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-07 22:40 Tim Johnson [this message]
     [not found] <mailman.10256.1520462425.27995.help-gnu-emacs@gnu.org>
2018-03-08  6:10 ` Copy whitespace-delimited text to variable Emanuel Berg
2018-03-08  6:37   ` Emanuel Berg
2018-03-08 16:15   ` Tim Johnson
     [not found]   ` <mailman.10281.1520525754.27995.help-gnu-emacs@gnu.org>
2018-03-09  6:47     ` Emanuel Berg
2018-03-09 16:20       ` Tim Johnson
     [not found]       ` <mailman.10333.1520612428.27995.help-gnu-emacs@gnu.org>
2018-03-11  0:21         ` Emanuel Berg
2018-03-11 16:18           ` Tim Johnson
     [not found]           ` <mailman.10425.1520785140.27995.help-gnu-emacs@gnu.org>
2018-03-11 22:17             ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180307224018.GB12710@mail.akwebsoft.com \
    --to=tim@akwebsoft.com \
    --cc=Help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).