• Stefan Monnier's avatar
    * lisp/gnus/gnus.el (gnus-info): Define with `cl-defstruct` · b1a69505
    Stefan Monnier authored
    This makes the accessors into (inlined) functions (instead of macros),
    which simplifies some uses, and it makes the gnus-info-set-<foo>
    macros redundant since we can use `setf` instead.  Remove them and
    update all users.
    
    (gnus-info-group, gnus-info-rank, gnus-info-read, gnus-info-marks)
    (gnus-info-method, gnus-info-params): Auto-defined by defstruct.
    (gnus-info-level, gnus-info-score): Define as a function.  Add gv-setter.
    (gnus-info-set-group, gnus-info-set-rank, gnus-info-set-read): Remove,
    use `setf` instead.
    (gnus-info-set-marks, gnus-info-set-method, gnus-info-set-params):
    Define as a function.
    (gnus-info-set-entry): Delete function.
    (gnus-info--grow-entry): New function, extracted from it.
    (gnus-info--set-level, gnus-info--set-score): New functions, extracted
    from the `gnus-info-set-level` and `gnus-info-set-score` which they replace.
    (gnus-get-info): Define as a function.
    
    * lisp/gnus/gnus-group.el (gnus-group-edit-group-done):
    Use the `extend` arg of `gnus-info-set-method`.
    (gnus-group-sort-selected-flat): eta-reduce.
    b1a69505
Name
Last commit
Last update
admin Loading commit data...
build-aux Loading commit data...
doc Loading commit data...
etc Loading commit data...
leim Loading commit data...
lib Loading commit data...
lib-src Loading commit data...
lisp Loading commit data...
lwlib Loading commit data...
m4 Loading commit data...
modules Loading commit data...
msdos Loading commit data...
nextstep Loading commit data...
nt Loading commit data...
oldXMenu Loading commit data...
src Loading commit data...
test Loading commit data...
.clang-format Loading commit data...
.dir-locals.el Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
BUGS Loading commit data...
CONTRIBUTE Loading commit data...
COPYING Loading commit data...
ChangeLog.1 Loading commit data...
ChangeLog.2 Loading commit data...
ChangeLog.3 Loading commit data...
GNUmakefile Loading commit data...
INSTALL Loading commit data...
INSTALL.REPO Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
config.bat Loading commit data...
configure.ac Loading commit data...
make-dist Loading commit data...