all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: raman@google.com (T.V Raman)
To: raman@google.com
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: Emacs 26.0.50 (Git@head) Nested defsubst fails
Date: Fri, 24 Feb 2017 09:36:58 -0800	[thread overview]
Message-ID: <22704.28474.463705.935796@retriever.mtv.corp.google.com> (raw)
In-Reply-To: <p91d1e7v9uy.fsf@google.com>

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 C-@."
  (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)))

-- 

-- 



  reply	other threads:[~2017-02-24 17:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-24  1:32 Emacs 26.0.50 (Git@head) Nested defsubst fails raman
2017-02-24  4:12 ` Stefan Monnier
2017-02-24 16:20   ` raman
2017-02-24 17:36     ` T.V Raman [this message]
2017-02-24 18:24       ` Stefan Monnier

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22704.28474.463705.935796@retriever.mtv.corp.google.com \
    --to=raman@google.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.