[elpa] externals/prefixed-core 745a1ef 3/3: Add buffer aliases
branch: externals/prefixed-core commit 745a1eff605d5f25218527f679107017b8c01cbb Author: Philippe Vaucher Commit: Philippe Vaucher Add buffer aliases --- prefixed-core.el | 32 1 file changed, 32 insertions(+) diff --git a/prefixed-core.el b/prefixed-core.el index c381836..a5a104d 100644 --- a/prefixed-core.el +++ b/prefixed-core.el @@ -124,5 +124,37 @@ (defalias 'plist-get-lax #'lax-plist-get) (defalias 'plist-put-lax #'lax-plist-put) +;; buffer +(defalias 'buffer-current #'current-buffer) +(defalias 'buffer-set #'set-buffer) +(defalias 'buffer-rename #'rename-buffer) +(defalias 'buffer-get #'get-buffer) +(defalias 'buffer-generate-new-name #'generate-new-buffer-name) +(defalias 'buffer-get-file #'get-file-buffer) +(defalias 'buffer-find-visiting #'find-buffer-visiting) +(defalias 'buffer-set-visited-file-name #'set-visited-file-name) +(defalias 'buffer-set-modified #'set-buffer-modified-p) +(defalias 'buffer-restore-modified #'restore-buffer-modified-p) +(defalias 'buffer-not-modified #'not-modified) +(defalias 'buffer-verify-visited-file-modtime #'verify-visited-file-modtime) +(defalias 'buffer-clear-visited-file-modtime #'clear-visited-file-modtime) +(defalias 'buffer-visited-file-modtime #'visited-file-modtime) +(defalias 'buffer-set-visited-file-modtime #'set-visited-file-modtime) +(defalias 'buffer-ask-user-about-supersession-threat #'ask-user-about-supersession-threat) +(defalias 'buffer-read-only-mode #'read-only-mode) +(defalias 'buffer-barf-if-read-only #'barf-if-buffer-read-only) +(defalias 'buffer-other #'other-buffer) +(defalias 'buffer-last #'last-buffer) +(defalias 'buffer-bury #'bury-buffer) +(defalias 'buffer-unbury #'unbury-buffer) +(defalias 'buffer-get-or-create #'get-buffer-create) +(defalias 'buffer-generate-new #'generate-new-buffer) +(defalias 'buffer-kill #'kill-buffer) +(defalias 'buffer-make-indirect #'make-indirect-buffer) +(defalias 'buffer-clone-indirect #'clone-indirect-buffer) +(defalias 'buffer-base #'buffer-base-buffer) +(defalias 'buffer-gap-position #'gap-position) +(defalias 'buffer-gap-size #'gap-size) + (provide 'prefixed-core) ;;; prefixed-core.el ends here
[elpa] externals/prefixed-core 6051ebf 1/3: Add alist aliases
branch: externals/prefixed-core commit 6051ebf4788800955b33d7aea12beba3dfb1457e Author: Philippe Vaucher Commit: Philippe Vaucher Add alist aliases --- prefixed-core.el | 11 +++ 1 file changed, 11 insertions(+) diff --git a/prefixed-core.el b/prefixed-core.el index 8ec8021..9368acc 100644 --- a/prefixed-core.el +++ b/prefixed-core.el @@ -109,5 +109,16 @@ (defalias 're-submatch-p #'match-beginning "Return non-nil if SUBEXP did match.") +;; alist +(defalias 'alist-assoc #'assoc) +(defalias 'alist-rassoc #'rassoc) +(defalias 'alist-assq #'assq) +(defalias 'alist-rassq #'rassq) +(defalias 'alist-assoc-default #'assoc-default) +(defalias 'alist-copy #'copy-alist) +(defalias 'alist-assq-delete-all #'assq-delete-all) +(defalias 'alist-assoc-delete-all #'assoc-delete-all) +(defalias 'alist-rassq-delete-all #'rassq-delete-all) + (provide 'prefixed-core) ;;; prefixed-core.el ends here
[elpa] externals/prefixed-core updated (468a251 -> 745a1ef)
monnier pushed a change to branch externals/prefixed-core. from 468a251 * prefixed-core: Initial commit new 6051ebf Add alist aliases new 2931de1 Add plist aliases new 745a1ef Add buffer aliases Summary of changes: prefixed-core.el | 47 +++ 1 file changed, 47 insertions(+)
[elpa] externals/prefixed-core 2931de1 2/3: Add plist aliases
branch: externals/prefixed-core commit 2931de12fd47d29bd73990488a92430b8b8a977b Author: Philippe Vaucher Commit: Philippe Vaucher Add plist aliases --- prefixed-core.el | 4 1 file changed, 4 insertions(+) diff --git a/prefixed-core.el b/prefixed-core.el index 9368acc..c381836 100644 --- a/prefixed-core.el +++ b/prefixed-core.el @@ -120,5 +120,9 @@ (defalias 'alist-assoc-delete-all #'assoc-delete-all) (defalias 'alist-rassq-delete-all #'rassq-delete-all) +;; plist +(defalias 'plist-get-lax #'lax-plist-get) +(defalias 'plist-put-lax #'lax-plist-put) + (provide 'prefixed-core) ;;; prefixed-core.el ends here
[elpa] externals/prefixed-core 56ee89d: * prefixed-core.el: shuffle and nnotate the buffers/alist aliases
branch: externals/prefixed-core commit 56ee89d1d6d424d2f78b85d057972e7706bffc89 Author: Stefan Monnier Commit: Stefan Monnier * prefixed-core.el: shuffle and nnotate the buffers/alist aliases Also, fix the section headers to use the proper capitalization and sectioning comment markers. --- prefixed-core.el | 59 ++-- 1 file changed, 36 insertions(+), 23 deletions(-) diff --git a/prefixed-core.el b/prefixed-core.el index a5a104d..5084edb 100644 --- a/prefixed-core.el +++ b/prefixed-core.el @@ -30,7 +30,7 @@ ;; then what it operates on. ;; ;; In this library, we try to group functions based on their "subject" -;; and make them share a commen prefix. +;; and make them share a common prefix. ;; ;; While this may seem like a futile and impossible endeavor (many functions ;; can arguably be reasonably placed in several different groups), I think it @@ -40,7 +40,7 @@ ;; Some of the expected benefits are: ;; - Making some functionality more discoverable ;; - Helping to write code using prefix-based completion. -;; - Better match he tradition followed in pretty much all programming +;; - Better match the tradition followed in pretty much all programming ;; languages (including Elisp, for non-core functions). ;;; Code: @@ -58,8 +58,8 @@ ;; Other possibilities, which make sense but might be too verbose to be popular: (defalias 'string-downcase #'downcase) (defalias 'string-upcase #'upcase) -(defalias 'string-format #'format) -(defalias 'string-concat #'concat) +(defalias 'string-format #'format) ;FIXME: toolong, unrenamable +(defalias 'string-concat #'concat) ;FIXME: unrenamable File names (defalias 'file-name-expand #'expand-file-name) @@ -109,7 +109,11 @@ (defalias 're-submatch-p #'match-beginning "Return non-nil if SUBEXP did match.") -;; alist + Alists +;; FIXME: I doubt this will get much traction, since all the popular functions +;; affected a significantly lengthened. "assoc" and "assq" already imply +;; "alist" to most Lispers IMO, so the new names sound redundant. +;; IOW, this probably belongs in prefixed-core-extras. (defalias 'alist-assoc #'assoc) (defalias 'alist-rassoc #'rassoc) (defalias 'alist-assq #'assq) @@ -120,41 +124,50 @@ (defalias 'alist-assoc-delete-all #'assoc-delete-all) (defalias 'alist-rassq-delete-all #'rassq-delete-all) -;; plist + Plists (defalias 'plist-get-lax #'lax-plist-get) (defalias 'plist-put-lax #'lax-plist-put) -;; buffer -(defalias 'buffer-current #'current-buffer) -(defalias 'buffer-set #'set-buffer) + Buffer +;; FIXME: The notion of buffer is kind of omnipresent in Elisp +;; so it's easy to go overboard here, and there are many +;; functions which are so frequently used that it's virtually +;; impossible to rename them. +;; IOW, I think most of the below belong to prefixed-core-extras. +(defalias 'buffer-current #'current-buffer) ;FIXME: unrenamable +(defalias 'buffer-set #'set-buffer) ;FIXME: unrenamable, badname (defalias 'buffer-rename #'rename-buffer) -(defalias 'buffer-get #'get-buffer) +(defalias 'buffer-get #'get-buffer) ;FIXME: unrenamable, badname +(defalias 'buffer-get-or-create #'get-buffer-create) (defalias 'buffer-generate-new-name #'generate-new-buffer-name) +(defalias 'buffer-generate-new #'generate-new-buffer) +(defalias 'buffer-kill #'kill-buffer) +(defalias 'buffer-make-indirect #'make-indirect-buffer) +(defalias 'buffer-clone-indirect #'clone-indirect-buffer) +(defalias 'buffer-base #'buffer-base-buffer) +(defalias 'buffer-gap-position #'gap-position) ;FIXME: unused +(defalias 'buffer-gap-size #'gap-size) +(defalias 'buffer-set-modified-p #'set-buffer-modified-p) +(defalias 'buffer-restore-modified-p #'restore-buffer-modified-p) +(defalias 'buffer-not-modified #'not-modified) +;; FIXME: The ones below are about *file* buffers rather than about buffers +;; in general, I think that's why they don't have "buffer" in their names. (defalias 'buffer-get-file #'get-file-buffer) (defalias 'buffer-find-visiting #'find-buffer-visiting) (defalias 'buffer-set-visited-file-name #'set-visited-file-name) -(defalias 'buffer-set-modified #'set-buffer-modified-p) -(defalias 'buffer-restore-modified #'restore-buffer-modified-p) -(defalias 'buffer-not-modified #'not-modified) (defalias 'buffer-verify-visited-file-modtime #'verify-visited-file-modtime) (defalias 'buffer-clear-visited-file-modtime #'clear-visited-file-modtime) (defalias 'buffer-visited-file-modtime #'visited-file-modtime) (defalias 'buffer-set-visited-file-modtime #'set-visited-file-modtime) (defalias 'buffer-ask-user-about-supersession-threat #'ask-user-about-supersession-threat) -(defalias 'buffer-read-only-mode #'read-only-mode) -(defalias 'buffer-barf-if-read-only #'barf-if-buffer-read-only) +(defalias 'buffer-read-only-mode #'read-only-mode) ;FIXME: notspecific +(defalias 'buffer-barf-if-read-only #'barf-if-buffer-read-only) ;FIXME: notspecifi
[elpa] master b303547: * ada-mode: Fix copyright
branch: master commit b3035477260fd042ba97bd74cd75021bbbc97aec Author: Stefan Monnier Commit: Stefan Monnier * ada-mode: Fix copyright --- packages/ada-mode/ada-prj.el | 6 -- packages/ada-mode/ada-stmt.el | 6 -- packages/ada-mode/ada-xref.el | 8 +--- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/ada-mode/ada-prj.el b/packages/ada-mode/ada-prj.el index c1f1e66..141d25e 100644 --- a/packages/ada-mode/ada-prj.el +++ b/packages/ada-mode/ada-prj.el @@ -1,6 +1,8 @@ ;; dummy file to hide obsolete bundled version -;;; -;;; Keep this file until drop support for Emacs 26; core ada-mode deleted in Emacs 27. +;; +;; Copyright (C) 2020 Free Software Foundation, Inc. +;; +;; Keep this file until drop support for Emacs 26; core ada-mode deleted in Emacs 27. (require 'ada-mode) (provide 'ada-prj) diff --git a/packages/ada-mode/ada-stmt.el b/packages/ada-mode/ada-stmt.el index 25cf111..27e1b40 100644 --- a/packages/ada-mode/ada-stmt.el +++ b/packages/ada-mode/ada-stmt.el @@ -1,6 +1,8 @@ ;; dummy file to hide obsolete bundled version -;;; -;;; Keep this file until drop support for Emacs 26; core ada-mode deleted in Emacs 27. +;; +;; Copyright (C) 2020 Free Software Foundation, Inc. +;; +;; Keep this file until drop support for Emacs 26; core ada-mode deleted in Emacs 27. (require 'ada-mode) (provide 'ada-stmt) diff --git a/packages/ada-mode/ada-xref.el b/packages/ada-mode/ada-xref.el index b72901f..3f795f1 100644 --- a/packages/ada-mode/ada-xref.el +++ b/packages/ada-mode/ada-xref.el @@ -1,7 +1,9 @@ ;;; ada-xref.el --- Dummy file to hide obsolete bundled version -*- lexical-binding:t -*- -;;; see xref-ada.el for Emacs 25 xref minor mode for ada-mode -;;; -;;; Keep this file until drop support for Emacs 26; core ada-mode deleted in Emacs 27. +;; +;; Copyright (C) 2020 Free Software Foundation, Inc. +;; see xref-ada.el for Emacs 25 xref minor mode for ada-mode +;; +;; Keep this file until drop support for Emacs 26; core ada-mode deleted in Emacs 27. (require 'ada-mode) (provide 'ada-xref)