On Fri, Aug 04, 2023 at 01:18:15AM +0900, OHURA Makoto wrote:
> After upgrading emacs 29.1, psvn.el does not work fine.  Emacs 29.1
> doesn't support the function, toggle-read-only.  Use read-only-mode.
> I attach a patch to this e-mail.

Thanks for the patch!

> --- psvn.el.old       2023-08-04 01:00:23.460477204 +0900
> +++ psvn.el   2023-08-04 00:28:50.764059785 +0900
> @@ -2248,7 +2248,7 @@
>    (setq mode-line-process 'svn-status-mode-line-process)
>    (run-hooks 'svn-status-mode-hook)
>    (let ((view-read-only nil))
> -    (toggle-read-only 1)))
> +    (read-only-mode 1)))

If we make this change, then it won't work with older emacs versions.
I'd like to send the fix upstream, but would need this resolved first.

Is it possible to make these changes compatible with both old and new
emacs?

Cheers,
-- 
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB

Reply via email to