|
From: | Stefan Monnier |
Subject: | Re: master b8062be 3/5: Remove some compat code from eudc-bob.el |
Date: | Sat, 15 Aug 2020 17:19:07 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> (defun eudc-bob-save-object () > "Save the object data of the button at point." > (interactive) > (let ((data (eudc-bob-get-overlay-prop 'object-data)) > (buffer (generate-new-buffer "*eudc-tmp*"))) > (save-excursion > (set-buffer-file-coding-system 'binary) > (set-buffer buffer) > (set-buffer-multibyte nil) > (insert data) > (save-buffer)) > (kill-buffer buffer))) Does this function work at all? I mean, won't `save-buffer` just burp because `buffer-file-name` is nil? Stefan "who only noticed after attempting to simply the code to `(write-region data nil ...)`"
[Prev in Thread] | Current Thread | [Next in Thread] |