[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs 26.0.50 (address@hidden) Nested defsubst fails
From: |
T.V Raman |
Subject: |
Re: Emacs 26.0.50 (address@hidden) Nested defsubst fails |
Date: |
Fri, 24 Feb 2017 09:36:58 -0800 |
Here's a sample file demonstrating the problem.
;;; byte compiling this with emacs 26 fails.
;;; Changing outer defsubst to defun succeeds
(defvar test-bc-null-char (format "%c" 0)
"Null char.")
(defsubst inner (mode)
"Remove null-char address@hidden"
(declare (special test-bc-null-char))
(goto-char (point-min))
(cond
((eq mode 'all)
(while (search-forward test-bc-null-char nil t) (replace-match " control
at ")))
(t (while (search-forward test-bc-null-char nil t) (replace-match "")))))
(defsubst outer(mode)
"Clean-up text before sending it out."
(let ((inhibit-read-only t))
(test-bc-fix-null-char mode)))
--
--