all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matt McClure <matthewlmcclure@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Emacs sporadically gets into a state in which M-q wraps lines at apostrophes
Date: Thu, 5 Jul 2012 12:32:21 -0400	[thread overview]
Message-ID: <CAJELnLFkW91ds0as=yj9m6thKaq6bRmE8qgYdShy2N4O8Onw2w@mail.gmail.com> (raw)

My Emacs sporadically gets into a state in which M-q wraps a line with
apostrophes like:

    it's a test
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

as:

    it's a test
      'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

rather than:

    it's a test
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I added the white space indentation added for readability above. It's
not in the actual text.

I'm using: `GNU Emacs 24.1.50.1 (x86_64-apple-darwin, NS
apple-appkit-1038.36) of 2012-06-10 on bob.porkrind.org`

I've customized adaptive-fill-regexp, in case it's relevant to:

    "[ 	]*\\([-–!|#%;>*·•‣⁃◦0-9]\\.?+[ 	]*\\)*"

so that lines beginning with a number optionally followed by a `.` will
wrap with a hanging indent.

I notice that the value of adaptive-fill-first-line-regexp is:

    "\\`[ 	]*\\'"

I'm suspicious of its including `'`, but changing its value by
removing the `\\'` doesn't make the text wrap as I expect.

Quitting and restarting Emacs makes the text wrap as I expect again.

I haven't been able to find the relevant difference in Emacs's state
before and after I restart to isolate the issue or prevent M-q from
wrapping at the apostrophe.

Where should I look next?

-- 
Matt McClure
http://www.matthewlmcclure.com
http://www.mapmyfitness.com/profile/matthewlmcclure



             reply	other threads:[~2012-07-05 16:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-05 16:32 Matt McClure [this message]
     [not found] <mailman.4120.1341505956.855.help-gnu-emacs@gnu.org>
2012-07-06  6:16 ` Emacs sporadically gets into a state in which M-q wraps lines at apostrophes Jason Rumney
2012-07-06  6:49   ` Christopher Schmidt
2012-07-06 18:26     ` Matt McClure
2013-05-14 13:18       ` Matt McClure

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='CAJELnLFkW91ds0as=yj9m6thKaq6bRmE8qgYdShy2N4O8Onw2w@mail.gmail.com' \
    --to=matthewlmcclure@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.