From: "Bill Atkins" <atkinw@rpi.edu>
Subject: wdired patch
Date: Fri, 28 Jul 2006 07:50:37 -0400 [thread overview]
Message-ID: <66b7e34b0607280450se4077d3w3b2de5e3c213b6aa@mail.gmail.com> (raw)
Index: lisp/wdired.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/wdired.el,v
retrieving revision 1.19
diff -u -r1.19 wdired.el
--- lisp/wdired.el 4 Mar 2006 21:40:17 -0000 1.19
+++ lisp/wdired.el 28 Jul 2006 11:49:56 -0000
@@ -238,6 +238,8 @@
See `wdired-mode'."
(interactive)
+ (or (eq major-mode 'dired-mode)
+ (error "Not a Dired buffer"))
(set (make-local-variable 'wdired-old-content)
(buffer-substring (point-min) (point-max)))
(set (make-local-variable 'wdired-old-point) (point))
@@ -328,6 +330,8 @@
(defun wdired-change-to-dired-mode ()
"Change the mode back to dired."
+ (or (eq major-mode 'wdired-mode)
+ (error "Not a Wdired buffer"))
(let ((inhibit-read-only t))
(remove-text-properties (point-min) (point-max)
'(read-only nil local-map nil)))
--
Bill Atkins
next reply other threads:[~2006-07-28 11:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-28 11:50 Bill Atkins [this message]
2006-07-28 20:59 ` wdired patch Thien-Thi Nguyen
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=66b7e34b0607280450se4077d3w3b2de5e3c213b6aa@mail.gmail.com \
--to=atkinw@rpi.edu \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).