[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] [bug #14336] bug in emacs-wiki-markup-list-or-parag
From: |
anonymous |
Subject: |
[emacs-wiki-discuss] [bug #14336] bug in emacs-wiki-markup-list-or-paragraph |
Date: |
Tue, 30 Aug 2005 09:36:03 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 |
URL:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14336>
Summary: bug in emacs-wiki-markup-list-or-paragraph
Project: emacs-wiki, planner, and related modules
Submitted by: None
Submitted on: Tue 08/30/05 at 09:36
Category: emacs-wiki
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
(defun emacs-wiki-markup-list-or-paragraph ()
"Markup a list entry or quoted paragraph.
The reason this function is so funky, is to prevent text properties
like read-only from being inadvertently deleted."
(if (null (match-string 2))
(let ((ws (match-string 4)))
(when (save-excursion
+ (save-match-data
(forward-line)
(or (eolp)
(looking-at "\\S-"))))
function looking-at will affect the match-data
so the following refer to match-beginning maybe not make any sense.
(let (block-start block-end)
(delete-region (match-beginning 4) (match-end 4))
So, I believe save-match-data should be added.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14336>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [emacs-wiki-discuss] [bug #14336] bug in emacs-wiki-markup-list-or-paragraph,
anonymous <=