We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [setf]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
0answers
17 views

Is there a generalized setter for buffer-modified-p?

It is very simple to define a simple generalized setter for buffer-modified-p: (gv-define-simple-setter buffer-modified-p set-buffer-modified-p) That enables constructs like: (with-current-buffer "...
0
votes
3answers
52 views

How do I remove :width and :height from an image created with create-image?

I am trying to make jabber.el support images sent from e.g. Conversations. I download the image using url-retrieve-synchonously and call create-image to get an image which I can then use with insert-...
7
votes
1answer
415 views

Setf weird expansion

Trying to understand what setf can do, I called (macroexpand '(setf (aref vec i) val)) ⇒ (let* ((v vec) (v i)) (aset v v val)) This seems obviously wrong. However I couldn't create an actual ...