unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* New Package for GNU ELPA
@ 2016-05-22 16:45 Ian Dunn
  2016-05-22 17:06 ` Clément Pit--Claudel
  0 siblings, 1 reply; 12+ messages in thread
From: Ian Dunn @ 2016-05-22 16:45 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 174 bytes --]


I'd like to offer my new package, hook-helpers
(https://savannah.nongnu.org/projects/hook-helpers-el/), to GNU ELPA.
I've already filled out copyright paperwork for Emacs.


[-- Attachment #2: Type: text/html, Size: 2066 bytes --]

[-- Attachment #3: Type: text/plain, Size: 14 bytes --]


-- 
Ian Dunn

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: New Package for GNU ELPA
@ 2016-05-22 17:27 Ian Dunn
  2016-05-22 17:51 ` Clément Pit--Claudel
  0 siblings, 1 reply; 12+ messages in thread
From: Ian Dunn @ 2016-05-22 17:27 UTC (permalink / raw)
  To: Cl?ment Pit--Claudel; +Cc: emacs-devel


On 2016-05-22, Cl?ment Pit--Claudel wrote:
> > ;; Add font lock for both macros.
> > (font-lock-add-keywords
> >  'emacs-lisp-mode
> >  '(("(\\(define-hook-helper\\)\\_>[ \t]*\\(\\(?:\\sw\\|\\s_\\)+\\)?"
> >     (1 font-lock-keyword-face)
> >     (2 font-lock-constant-face nil t))
> >    ("(\\(define-mode-hook-helper\\)\\_>[ \t]*\\(\\(?:\\sw\\|\\s_\\)+\\)?"
> >     (1 font-lock-keyword-face)
> >     (2 font-lock-constant-face nil t))))
> 
> Is there a reason why these two macros aren't highlighted properly by default? I don't think other packages do this.
> 

Yes and no.  Yes, as macros, they have their name highlighted, but to emphasise the significance of the second argument, I wanted that be highlighted as well.

I know for a fact that both use-package and hydra do this same thing, as I used the two of them as an example when creating the above code.

Also, please CC me on any replies to this, and not just the mailing list.  I'm sure it was just a mistake.

-- 
Ian Dunn



^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: New Package for GNU ELPA
@ 2016-05-24 23:37 Ian Dunn
  2016-05-25  0:16 ` Drew Adams
  0 siblings, 1 reply; 12+ messages in thread
From: Ian Dunn @ 2016-05-24 23:37 UTC (permalink / raw)
  To: Drew Adams; +Cc: emacs-devel


On 2016-05-22, Drew Adams wrote:

> If this is a package in GNU ELPA, shouldn't its thingies have a
> package prefix?
> 
> IOW, shouldn't `define(-mode)-hook-helper' be called something like
> `hkhlp-define(-mode)-hook-helper'?
> 
> I'm not saying it should, as the rules for GNU ELPA packages are not
> clear to me.  But if its packages follow the general rule then they
> should have a prefix, no?
> 

According to the "Emacs Lisp Coding Conventions" section of the "GNU
Emacs Lisp Reference Manual":

"Constructs that define a function or variable should be macros, not
functions, and their names should start with ‘define-’."

That might make sense for `remove-hook-helper', though.

-- 
Ian Dunn



^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: New Package for GNU ELPA
@ 2016-05-27  2:00 Ian Dunn
  2016-05-27 10:26 ` Kaushal Modi
  0 siblings, 1 reply; 12+ messages in thread
From: Ian Dunn @ 2016-05-27  2:00 UTC (permalink / raw)
  To: emacs-devel


    If no one else sees any issue with this, would someone with commit
access to ELPA mind adding hook helpers?  If it helps, the git repo is here:

git://git.savannah.nongnu.org/hook-helpers-el.git

-- 
Ian Dunn



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-05-28  1:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-22 16:45 New Package for GNU ELPA Ian Dunn
2016-05-22 17:06 ` Clément Pit--Claudel
2016-05-22 17:20   ` Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
2016-05-22 17:27 Ian Dunn
2016-05-22 17:51 ` Clément Pit--Claudel
2016-05-22 18:17   ` Ian Dunn
2016-05-24 23:37 Ian Dunn
2016-05-25  0:16 ` Drew Adams
2016-05-27  2:00 Ian Dunn
2016-05-27 10:26 ` Kaushal Modi
2016-05-27 17:19   ` John Wiegley
2016-05-28  1:16     ` Ian Dunn

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).