From: Dan Maftei <ninestraycats@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: RE: two function requests
Date: Wed, 1 Aug 2012 17:28:03 +0100 [thread overview]
Message-ID: <CABxY=vg=iYv7eTRQMvr5XGn9-112V9tFWFF-gcfJVrRvuJiRXA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]
>
> From: drain <aeuster@gmail.com>
> To: Help-gnu-emacs@gnu.org
> Cc:
> Date: Wed, 1 Aug 2012 08:45:39 -0700 (PDT)
> 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.
>
query-replace (M-%) and replace-regexp will do this for you, if you do not
enter anything in the replace string:
M-% _ <RET> <RET>
>
> (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.
>
Adapt forward-sentence and backward-sentence to your needs. C-h f <RET>
function-name will give you a link to the function code. Should be a fun
little project if you're new to emacs lisp (like I am!)
Dan
[-- Attachment #2: Type: text/html, Size: 1651 bytes --]
next reply other threads:[~2012-08-01 16:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-01 16:28 Dan Maftei [this message]
2012-08-01 16:35 ` two function requests Alp Aker
-- strict thread matches above, loose matches on Subject: below --
2012-08-01 15:45 drain
2012-08-01 16:11 ` Doug Lewan
2012-08-01 16:24 ` PJ Weisberg
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABxY=vg=iYv7eTRQMvr5XGn9-112V9tFWFF-gcfJVrRvuJiRXA@mail.gmail.com' \
--to=ninestraycats@gmail.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.