• João Távora's avatar
    sly-stickers uses sly-buttons like everything else · 0cd60e60
    João Távora authored
    * contrib/sly-stickers.el (sly-stickers-mouse-hover-face): Don't need this.
    (sly-stickers-mode-map): Bind "C-c C-s S" to `sly-stickers--fetch'
    (sly-stickers--stickers-between): New.
    (sly-stickers--sticker): New button type.
    (sly-stickers--set-face): New function.
    (sly-stickers--sticker): Create a sticker button.
    (sly-stickers--arm-sticker, sly-stickers--sticker-id)
    (sly-stickers--disarm-sticker, sly-stickers--populate-sticker): Use buttons.
    (sly-stickers--decrease-prio, sly-stickers--increase-prio): New
    fucntions.
    (sly-stickers--sticker-priority): New function.
    (sly-stickers--delete): Improve to understand priorities.
    (sly-stickers--sticker-modified): New hook.
    (sly-stickers-operate-on-sticker): The "operate on existing
    sticker" part is taken to the sticker's own keymap.
    (sly-stickers-fetch): Don't warn too much.
    (sly-stickers-commit-stickers): Ensure current package.
    (sly-stickers-commit-stickers): Ensure a good sorting.
    0cd60e60