Function: trashed-tabulated-list-set-id

trashed-tabulated-list-set-id is a natively compiled function defined in trashed.el.

Signature

(trashed-tabulated-list-set-id NEWID)

Documentation

Change the Tabulated List entry at point, setting the ID to NEWID.

Source Code

;; Defined in /nix/store/7ppdacjhnynz276lxxnfw8sdz6r2k6h2-emacs-packages-deps/share/emacs/site-lisp/elpa/trashed-20230811.157/trashed.el
(defun trashed-tabulated-list-set-id (newid)
  "Change the Tabulated List entry at point, setting the ID to NEWID."
  (let ((oldid (tabulated-list-get-id))
        (tle tabulated-list-entries)
        (inhibit-read-only t))
    (while (not (string= (caar tle) oldid)) (setq tle (cdr tle)))
    (setcar (car tle) newid)
    (save-excursion (put-text-property (progn (beginning-of-line) (point))
                                       (progn (forward-line) (point))
                                       'tabulated-list-id newid))))