all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* RE: two function requests
@ 2012-08-01 16:28 Dan Maftei
  2012-08-01 16:35 ` Alp Aker
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Maftei @ 2012-08-01 16:28 UTC (permalink / raw)
  To: help-gnu-emacs

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread
* two function requests
@ 2012-08-01 15:45 drain
  2012-08-01 16:11 ` Doug Lewan
  2012-08-01 16:24 ` PJ Weisberg
  0 siblings, 2 replies; 5+ messages in thread
From: drain @ 2012-08-01 15:45 UTC (permalink / raw)
  To: Help-gnu-emacs


(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.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-08-01 16:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-01 16:28 two function requests Dan Maftei
2012-08-01 16:35 ` 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

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.