unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Doug Lewan <dougl@shubertticketing.com>
To: drain <aeuster@gmail.com>,
	"Help-gnu-emacs@gnu.org" <Help-gnu-emacs@gnu.org>
Subject: RE: two function requests
Date: Wed, 1 Aug 2012 16:11:58 +0000	[thread overview]
Message-ID: <155DEC68569B714B86C2C7075F5EDA98268CB54F@DAKIYA1.pegasus.local> (raw)
In-Reply-To: <34241363.post@talk.nabble.com>

(2) -- clause definition -- would be very useful.

Every time I land in a new work environment this comes to my mind (and then gets buried by the work at hand).

Here are some of the core ideas that I find in my current [lack of] design:

- Extend the logic of sentence definition to include commas, semicolons and colons. (There may be others.)
- Identify words and phrases that begin clauses (and, but, or, if, then, otherwise, when, whenever, etc.)
- Define the hierarchy that governs priority of those words and phrases.
- Define the rules governing clause definition given priorities.

Once you've got the above(!), then motion, intelligent wrapping, etc. should be easy.

Yours in deferred laziness,

,Doug

P.S. Is there a connection between your two requests?

> -----Original Message-----
> From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org
> [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On
> Behalf Of drain
> Sent: Wednesday, 2012 August 01 11:46
> To: Help-gnu-emacs@gnu.org
> Subject: two function requests
> 
> 
> (1) A command that deletes every instance of a certain char, e.g., "_"
> is
> entered and every "_" is deleted from the text. Would be very useful
> when
> formatting pdfs into orgs.
> 
> (2) (forward-clause), (backward-clause) commands, which would be much
> more
> useful than (forward-sentence), (backward-sentence), particularly when
> formatting / reading pre-20th century literature, with its page-length
> Herman Melville sentences.
> 
> I suppose a function that sets point to next comma is what I am looking
> for,
> even if I'd be stuck incrementally moving inside of lists from time to
> time.
> 
> I'm asking whether these functions or similar functions already exist.
> If I
> were to write them myself, I also wouldn't mind being pointed in the
> right
> direction for models. I'm sure this would require just slight
> modification
> of the existing code base.
> --
> View this message in context: http://old.nabble.com/two-function-
> requests-tp34241363p34241363.html
> Sent from the Emacs - Help mailing list archive at Nabble.com.
> 




  reply	other threads:[~2012-08-01 16:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-01 15:45 two function requests drain
2012-08-01 16:11 ` Doug Lewan [this message]
2012-08-01 16:24 ` PJ Weisberg
  -- strict thread matches above, loose matches on Subject: below --
2012-08-01 16:28 Dan Maftei
2012-08-01 16:35 ` Alp Aker

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=155DEC68569B714B86C2C7075F5EDA98268CB54F@DAKIYA1.pegasus.local \
    --to=dougl@shubertticketing.com \
    --cc=Help-gnu-emacs@gnu.org \
    --cc=aeuster@gmail.com \
    /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).