commit 99738d030778c7a5294a543856e74af45453a90f parent 8641b79f8abc7e71fd33e633c47121c8cf7958e0 Author: Iqbal Ansari <iqbalansari02@yahoo.com> Date: Sat, 5 Mar 2016 22:12:59 +0530 Mark `emojify-prog-contexts` as obsolete Diffstat:
M | emojify.el | | | 34 | ++++++++++++++++++++++++++++++---- |
1 file changed, 30 insertions(+), 4 deletions(-)
diff --git a/emojify.el b/emojify.el @@ -365,10 +365,6 @@ These can have one of the following values :set (lambda (_ value) (emojify-set-emoji-styles value)) :group 'emojify) -;; Obsolete vars -(define-obsolete-variable-alias 'emojify-emoji-style 'emojify-emoji-styles "0.2") -(define-obsolete-function-alias 'emojify-set-emoji-style 'emojify-set-emoji-styles "0.2") - (defcustom emojify-program-contexts '(comments string code) "Contexts where emojis can be displayed in programming modes. @@ -383,6 +379,28 @@ Possible values are (const :tag "Display emojis in code" code)) :group 'emojify) +(defcustom emojify-prog-contexts + 'both + "Contexts where emojis can be displayed in programming modes. + +Possible values are +`comments' - Display emojis only in comments +`string' - Display emojis only in strings +`both' - Display emojis in comments and strings +`none' - Do not display emojis in programming modes" + :type '(radio :tag "Contexts where emojis should be displayed in programming modes" + (const :tag "Only in comments" comments) + (const :tag "Only in string" string) + (const :tag "Both in comments and string" both) + (const :tag "Do not display emojis in programming modes" none)) + :set (lambda (_ value) + (setq emojify-program-contexts (pcase value + (`comments '(comments)) + (`string '(string)) + (`both '(comments string)) + (`none '())))) + :group 'emojify) + (defcustom emojify-inhibit-functions '(emojify-in-org-tags-p emojify-in-org-list-p) "Functions used to determine given emoji should displayed at current point. @@ -496,6 +514,14 @@ the visible area." +;; Obsolete vars + +(define-obsolete-variable-alias 'emojify-emoji-style 'emojify-emoji-styles "0.2") +(define-obsolete-function-alias 'emojify-set-emoji-style 'emojify-set-emoji-styles "0.2") +(define-obsolete-variable-alias 'emojify-prog-contexts 'emojify-program-contexts "0.3") + + + ;; Customizations to control the behaviour when point enters emojified text (defcustom emojify-point-entered-behaviour 'echo