From 4212d44f81116405c6947277e98064b9297b7f2e Mon Sep 17 00:00:00 2001 From: Martin Rudalics Date: Tue, 9 Jan 2007 09:14:46 +0000 Subject: [PATCH] (wdired-xcase-word): Skip non-word read-only characters. --- lisp/ChangeLog | 5 +++++ lisp/wdired.el | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ec53b2ad1c9..bc49750745a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2007-01-09 martin rudalics + + * wdired.el (wdired-xcase-word): Skip non-word read-only + characters. + 2007-01-09 Kenichi Handa * international/mule-cmds.el diff --git a/lisp/wdired.el b/lisp/wdired.el index 5a925e5d031..2c43b6f1552 100644 --- a/lisp/wdired.el +++ b/lisp/wdired.el @@ -576,8 +576,11 @@ If OLD, return the old target. If MOVE, move point before it." (funcall command 1) (setq arg (1- arg))) (error - (if (not (forward-word 1)) - (setq arg 0))))))) + (if (forward-word) + ;; Skip any non-word characters to avoid triggering a read-only + ;; error which would cause skipping the next word characters too. + (skip-syntax-forward "^w") + (setq arg 0))))))) (defun wdired-downcase-word (arg) "WDired version of `downcase-word'. -- 2.39.2