* How can we evaluate buffer but also must clear...
@ 2019-06-13 13:52 Budi
2019-06-14 3:46 ` Xavier Maillard
0 siblings, 1 reply; 5+ messages in thread
From: Budi @ 2019-06-13 13:52 UTC (permalink / raw)
To: help-gnu-emacs
How can we evaluate buffer but also must clear the undefined or unset
function or variable in the .el file contained in that buffer ?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How can we evaluate buffer but also must clear...
2019-06-13 13:52 How can we evaluate buffer but also must clear Budi
@ 2019-06-14 3:46 ` Xavier Maillard
2019-06-14 7:26 ` 조성빈 via help-gnu-emacs
0 siblings, 1 reply; 5+ messages in thread
From: Xavier Maillard @ 2019-06-14 3:46 UTC (permalink / raw)
To: Budi; +Cc: help-gnu-emacs
> From: Budi <budikusasi@gmail.com>
> Date: Thu, 13 Jun 2019 20:52:13 +0700
>
> How can we evaluate buffer
You can use the function `eval-buffer' (describe-function 'eval-buffer)
> but also must clear the undefined or unset
> function or variable in the .el file contained in that buffer ?
I do not understand that part, sorry.
- xma
GPG: BA4909B7 8F04DE1B
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How can we evaluate buffer but also must clear...
2019-06-14 3:46 ` Xavier Maillard
@ 2019-06-14 7:26 ` 조성빈 via help-gnu-emacs
2019-06-14 7:36 ` abdulbadii
2019-06-14 10:59 ` Noam Postavsky
0 siblings, 2 replies; 5+ messages in thread
From: 조성빈 via help-gnu-emacs @ 2019-06-14 7:26 UTC (permalink / raw)
To: Xavier Maillard; +Cc: Budi, help-gnu-emacs
2019. 6. 14. 오후 12:46, Xavier Maillard <xavier@maillard.im> 작성:
>> From: Budi <budikusasi@gmail.com>
>> Date: Thu, 13 Jun 2019 20:52:13 +0700
>>
>> but also must clear the undefined or unset
>> function or variable in the .el file contained in that buffer ?
>
> I do not understand that part, sorry.
Looks like he’s finding a way to ‘erase’ variables that the file once defined (but currently doesn’t, as the definition was removed).
For example, if there is such way, I could reload the init file after removing some var/fun decls and expect the vars/funs undefined or have default values.
Said that, I doubt there will be such way. Maybe parsing a diff would work?̊̈
> - xma
>
> GPG: BA4909B7 8F04DE1B
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How can we evaluate buffer but also must clear...
2019-06-14 7:26 ` 조성빈 via help-gnu-emacs
@ 2019-06-14 7:36 ` abdulbadii
2019-06-14 10:59 ` Noam Postavsky
1 sibling, 0 replies; 5+ messages in thread
From: abdulbadii @ 2019-06-14 7:36 UTC (permalink / raw)
To: 조성빈, Xavier Maillard; +Cc: help-gnu-emacs@gnu.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How can we evaluate buffer but also must clear...
2019-06-14 7:26 ` 조성빈 via help-gnu-emacs
2019-06-14 7:36 ` abdulbadii
@ 2019-06-14 10:59 ` Noam Postavsky
1 sibling, 0 replies; 5+ messages in thread
From: Noam Postavsky @ 2019-06-14 10:59 UTC (permalink / raw)
To: 조성빈
Cc: Budi, Help Gnu Emacs mailing list, Xavier Maillard
On Fri, 14 Jun 2019 at 03:32, 조성빈 via help-gnu-emacs
<help-gnu-emacs@gnu.org> wrote:
> Looks like he’s finding a way to ‘erase’ variables that the file once defined (but currently doesn’t, as the definition was removed).
> For example, if there is such way, I could reload the init file after removing some var/fun decls and expect the vars/funs undefined or have default values.
> Said that, I doubt there will be such way. Maybe parsing a diff would work?̊̈
If you (provide 'init), then perhaps (unload-feature 'init) before
reloading could work.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-06-14 10:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-13 13:52 How can we evaluate buffer but also must clear Budi
2019-06-14 3:46 ` Xavier Maillard
2019-06-14 7:26 ` 조성빈 via help-gnu-emacs
2019-06-14 7:36 ` abdulbadii
2019-06-14 10:59 ` Noam Postavsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).