unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Recognizing quotations in message-mode
Date: Fri, 11 Dec 2015 01:54:29 +0100	[thread overview]
Message-ID: <87oadxztx6.fsf@debian.uxu> (raw)
In-Reply-To: 876105dfq3.fsf@mbork.pl

Marcin Borkowski <mbork@mbork.pl> writes:

> Well, I did this ... which is more or less what
> you've suggested. It's not that I can't code this,
> I just thought that maybe I won't have to reinvent
> the wheel.

Why not? Perhaps this time a"round" you'll discover
something new. The wheel isn't that simple. Beware tho
the hub, the rim, the brake arm and more are all
already "spoke"n for.

> And btw, why use `thing-at-point' and not just
> `char-after'?

Because then you don't have to use the
`save-excursion' and `beginning-of-line' stuff.
Compare:

(defun point-in-quotation-p ()
  (= ?\> (char-after (point-at-bol)) ))

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




      reply	other threads:[~2015-12-11  0:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-10 21:35 Recognizing quotations in message-mode Marcin Borkowski
2015-12-10 23:44 ` Emanuel Berg
2015-12-10 23:52   ` Marcin Borkowski
2015-12-11  0:54     ` Emanuel Berg [this message]

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=87oadxztx6.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --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).