From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Cc: dominik@science.uva.nl
Subject: [BUG] 'outline-change-heading' in outline-magic.el adds extra spaces
Date: Mon, 18 Feb 2013 14:32:56 +0100 [thread overview]
Message-ID: <874nh9lpbr.fsf@gmail.com> (raw)
Hi List,
when using
,--------------------
| M-x outline-demote
| M-x outline-promote
`--------------------
with an outline-regexp that contains (trailing) spaces, like e.g.
,-----------
| ";; [*]+ "
`-----------
a new space is added between the outline-regexp and the headline each
time 'outline-demote' is used, and not removed afterwards when
'outline-promote' is used.
E.g.
;; ** headline
becomes
;; **** headline
after demoting 2 times, and then becomes
;; ** headline
after promoting again 2 times.
Proposed FIX:
replace the last line of 'outline-change-heading' in outline-magic.el
,--------------------------------------
| (replace-match newhead t t nil 1)))))
`--------------------------------------
with
,--------------------------------------------------------------
| (replace-match (outline-cleanup-match newhead) t t nil 1)))))
`--------------------------------------------------------------
--
cheers,
Thorsten
next reply other threads:[~2013-02-18 13:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-18 13:32 Thorsten Jolitz [this message]
2013-02-18 14:34 ` [BUG] 'outline-change-heading' in outline-magic.el adds extra spaces Thorsten Jolitz
2013-02-18 18:22 ` Stefan Monnier
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=874nh9lpbr.fsf@gmail.com \
--to=tjolitz@gmail.com \
--cc=dominik@science.uva.nl \
--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).