[elpa] externals/zones 101aabe: * zones.el: Add zones matching regexps

2018-12-04 Thread Stefan Monnier
branch: externals/zones
commit 101aabe30e04ed274d67fdd306b69218765581a1
Author: Stefan Monnier 
Commit: Stefan Monnier 

* zones.el: Add zones matching regexps

(zz-add-zones-matching-regexp, zz-set-zones-matching-regexp): New commands.
(zz-toggles-map): New keymap.
(condition-case-unless-debug): Provide fallback when needed.
(zz-set-zones-from-face): Rename from zz-create-face-zones.
(zz-select-zone-by-id-and-text): Bind to C-x n #.
(zz-select-zone-repeat): Change binding from C-x n r to C-x n C-x.
(narrow-map): Add bindings isearchp-remove-dimming (C-x n D),
  isearchp-put-prop-on-zones (C-x n P), zz-add-zones-matching-regexp (C-x n 
r),
  zz-set-zones-matching-regexp (C-x n R),
  isearchp-zones-(back|for)ward(-regexp) (C-x n r|s, C-x n C-M-r|s),
  zz-query-replace-zones (C-x n M-%), zz-toggles-map (C-x n M-= d),
  zz-query-replace-regexp-zones (C-x n C-M-%),
  isearchp-toggle-anti-zones-invisible (C-x n M-= v),
  isearchp-toggle-zones-invisible (C-x n M-= V),
  isearchp-toggle-complementing-domain (C-x n M-= ~).
---
 zones.el | 226 ---
 1 file changed, 188 insertions(+), 38 deletions(-)

diff --git a/zones.el b/zones.el
index c965098..99f8b79 100644
--- a/zones.el
+++ b/zones.el
@@ -7,11 +7,11 @@
 ;; Author: Drew Adams
 ;; Maintainer: Drew Adams 
 ;; Created: Sun Apr 18 12:58:07 2010 (-0700)
-;; Version: 2018.11.20
+;; Version: 2018.11.21
 ;; Package-Requires: ()
-;; Last-Updated: Tue Nov 20 08:04:44 2018 (-0800)
+;; Last-Updated: Wed Nov 21 06:57:27 2018 (-0800)
 ;;   By: dradams
-;; Update #: 2538
+;; Update #: 2644
 ;; URL: https://elpa.gnu.org/packages/zones.html
 ;; URL: https://www.emacswiki.org/emacs/download/zones.el
 ;; Doc URL: https://www.emacswiki.org/emacs/Zones
@@ -77,15 +77,16 @@
 ;;
 ;;`zz-add-zone', `zz-add-zone-and-coalesce',
 ;;`zz-add-zone-and-unite', `zz-add-zones-from-highlighting',
-;;`zz-clone-and-coalesce-zones', `zz-clone-and-unite-zones',
-;;`zz-clone-zones', `zz-coalesce-zones', `zz-create-face-zones',
-;;`zz-delete-zone', `zz-narrow', `zz-narrow-repeat',
-;;`zz-query-replace-zones' (Emacs 25+),
+;;`zz-add-zones-matching-regexp', `zz-clone-and-coalesce-zones',
+;;`zz-clone-and-unite-zones', `zz-clone-zones',
+;;`zz-coalesce-zones', `zz-delete-zone', `zz-narrow',
+;;`zz-narrow-repeat', `zz-query-replace-zones' (Emacs 25+),
 ;;`zz-query-replace-regexp-zones' (Emacs 25+), `zz-select-region',
 ;;`zz-select-region-by-id-and-text', `zz-select-region-repeat',
 ;;`zz-select-zone', `zz-select-zone-by-id-and-text',
 ;;`zz-select-zone-repeat', `zz-set-izones-var',
-;;`zz-set-zones-from-highlighting', `zz-unite-zones'.
+;;`zz-set-zones-from-face', `zz-set-zones-from-highlighting',
+;;`zz-set-zones-matching-regexp', `zz-unite-zones'.
 ;;
 ;;  User options defined here:
 ;;
@@ -128,9 +129,10 @@
 ;;
 ;;  Internal variables defined here:
 ;;
-;;`zz--fringe-remapping', `zz-izones', `zz-izones-var',
-;;`zz-lighter-narrowing-part', `zz-zone-abstract-function',
-;;`zz-zone-abstract-limit', `zz-add-zone-anyway-p'.
+;;`zz--fringe-remapping', `zz-add-zone-anyway-p', `zz-izones',
+;;`zz-izones-var', `zz-lighter-narrowing-part',
+;;`zz-zone-abstract-function', `zz-zone-abstract-limit',
+;;`zz-toggles-map'.
 ;;
 ;;  Macros defined here:
 ;;
@@ -418,23 +420,27 @@
 ;;  If you have already bound one of these keys then `zones.el' does
 ;;  not rebind that key; your bindings are respected.
 ;;
-;;  C-x n a   `zz-add-zone' - Add to current izones variable
-;;  C-x n A   `zz-add-zone-and-unite' - Add izone, then unite izones
+;;  C-x n #   `zz-select-zone-by-id-and-text' - Select zone as region
+;;  C-x n a   `zz-add-zone' - Add to current izones set (variable)
+;;  C-x n A   `zz-add-zone-and-unite' - Add zone, then unite zones
 ;;  C-x n c   `zz-clone-zones' - Clone zones from one var to another
 ;;  C-x n C   `zz-clone-and-unite-zones' - Clone then unite zones
 ;;  C-x n d   `narrow-to-defun'
 ;;  C-x n C-d `zz-delete-zone' - Delete an izone from current var
-;;  C-x n h   `hlt-highlight-regions' - Highlight izones
+;;  C-x n f   `zz-set-zones-from-face' - Set zone set to face areas
+;;  C-x n h   `hlt-highlight-regions' - Ad hoc zone highlighting
 ;;  C-x n H   `hlt-highlight-regions-in-buffers' - in multiple buffers
-;;  C-x n l   `zz-add-zones-from-highlighting' - Add highlighted areas
+;;  C-x n l   `zz-add-zones-from-highlighting' - Add from highlighted
 ;;  C-x n L   `zz-set-zones-from-highlighting' - Set to highlighted
 ;;  C-x n n   `narrow-to-region'
 ;;  C-x n p   `narrow-to-page'
-;;  C-x n r   `zz-select-zone-repeat' - Cycle as active regions
-;;  C-x n u   `zz-unite-zones' - Unite (coalesce) izones
-;;  C-x n v   `zz-set-izones-var' - Set `zz-izones-var' to a variable
+;;  C-x n r   `zz-add-zones-matching-regexp' - Add regexp-match zones
+;;  C-x n R   `zz-s

[elpa] master 72e71c0: * README: Recommend "externals" and add some recommendations

2018-12-04 Thread Stefan Monnier
branch: master
commit 72e71c0a70c3e505225e5f8fc090b6ce0945ebe9
Author: Stefan Monnier 
Commit: Stefan Monnier 

* README: Recommend "externals" and add some recommendations

(Coding Style): New subsection.
(External branches): Recommend "externals" over "subtree".
(Externals): Use `git worktree`.
---
 README | 41 ++---
 1 file changed, 26 insertions(+), 15 deletions(-)

diff --git a/README b/README
index 4318bad..8c85210 100644
--- a/README
+++ b/README
@@ -44,7 +44,7 @@ release the new code.
 
 ** To add a package: (submission, submit)
 
-Adding a basic package is very simple. There are thorough
+Adding a basic package is very simple.  There are thorough
 instructions below, but the gist of it is that you:
 
 1. Notify emacs-de...@gnu.org.
@@ -98,7 +98,9 @@ For some examples, see
 *** Add a multi-file package as a directory, packages/.
 
 It needs to have a file named packages//.el which follows 
the
-same rules as above.
+same rules as above.  Note that if your package is large, we recommend you
+add it as an "external" into its own branch, see below discussion of
+external branches.
 
 It additionally follows the same guidelines described in
 (info "(elisp) Multi-file Packages")
@@ -149,25 +151,34 @@ and the web-pages from this source code:
   put a `.elpaignore' file in the root of your package directory, where you
   can list patterns of files to ignore (this file is passed to tar's -X).
 
+** Coding style
+
+We do not impose a particular coding style on GNU ELPA packages, but of
+course we recommend the coding style used in Emacs's own source code.
+Furthermore we recommend the following:
+- Use `cl-lib` rather than `cl` if it all possible.
+- Use lexical-binding if it all possible.
+- Try and fix the warnings emitted when compiling the package with a recent 
Emacs.
+
 ** External branches
 
 The above instructions are enough to add regular packages, those that
-are maintained primarily here in the repository.  The instructions
-below are for those maintainers who prefer to use a dedicated
-repository or branch for the package.
+are maintained primarily here in the repository and are fairly small.
+The instructions below are for those maintainers who prefer to use a dedicated
+repository or branch for the package or for largish packages.
 
-There are two ways to do that: subtrees and externals.
+There are two ways to do that: "subtrees" and "externals".
 
 Either way, such packages should always be listed in the
 `externals-list' file.
 
-In both cases, a copy of the code is kept in the `elpa' repository
+In both cases, a copy of the code is kept in the `elpa.git' repository
 (not necessarily in the master branch) and should be sync'd with the
 upstream every once in a while.  This copy may include local changes,
 although these should be kept to a minimum.
 
-If know you don't want a local package, but don't know which of these
-two options you prefer, then use a subtree.
+If you don't know which of these two options you prefer, then use an
+"external" (and also if your package is large).
 
 *** Subtrees
 
@@ -213,14 +224,14 @@ help and only gets in the way.
 
 *** Externals
 
-In the `external' case, the copy of the code is not kept here but in the
-`externals/' branch in the `elpa' repository.
+In the `external' case, the copy of the code is not kept in `master` but in the
+`externals/' branch in the `elpa.git' repository.
 
-To add a new externals package, first add this `elpa' repository as a
+To add a new externals package, first add this `elpa.git' repository as a
 new remote in your existing repository.  Then push a local branch to a
-new remote branch in `elpa', named externals/.  For example:
+new remote branch in `elpa.git', named externals/.  For example:
 
-   git push elpa master:externals/
+   git push elpa :externals/
 
 Then edit the `externals-list' file as mentioned above, and push that
 change to `elpa's master branch.
@@ -234,7 +245,7 @@ You can check out a specific external PACKAGE into the 
`packages'
 directory with these commands:
 
cd packages
-   git clone --reference .. --single-branch --branch externals/PACKAGE $(git 
config remote.origin.url) PACKAGE
+   git worktree add PACKAGE externals/PACKAGE
 
 If you already have a packages/PACKAGE directory with a previous
 checkout, you can update it like this:



[elpa] master b627444 2/3: [gnus-mock] Set a value of default-directory for child Emacs process

2018-12-04 Thread Eric Abrahamsen
branch: master
commit b62744403d471c71e4cf2a68ef752e3fa2bdf2f9
Author: Eric Abrahamsen 
Commit: Eric Abrahamsen 

[gnus-mock] Set a value of default-directory for child Emacs process

* packages/gnus-mock/gnus-mock.el (gnus-mock-start): Small convenience
  for getting at Gnus' source files after startup.
---
 packages/gnus-mock/gnus-mock.el | 14 ++
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/packages/gnus-mock/gnus-mock.el b/packages/gnus-mock/gnus-mock.el
index 0874200..74a85a3 100644
--- a/packages/gnus-mock/gnus-mock.el
+++ b/packages/gnus-mock/gnus-mock.el
@@ -255,10 +255,16 @@ will start a mock Gnus session."
  %Seen %Draft %*))
   (current-buffer)))
(basic-save-buffer))
- (make-process :name "gnus-mock" :buffer nil
-   :command (list gnus-mock-emacs-program
-  "-Q" "--load" init-file)
-   :stderr "*gnus mock errors*"))
+ (let ((default-directory
+ (expand-file-name
+  "lisp/gnus"
+  (file-name-as-directory
+   (expand-file-name "../.."
+ gnus-mock-emacs-program)
+   (make-process :name "gnus-mock" :buffer nil
+ :command (list gnus-mock-emacs-program
+"-Q" "--load" init-file)
+ :stderr "*gnus mock errors*")))
   (error (when (and gnus-mock-cleanup-p
(file-exists-p mock-tmp-dir))
   (delete-directory mock-tmp-dir t))



[elpa] master updated (72e71c0 -> 3f7baba)

2018-12-04 Thread Eric Abrahamsen
girzel pushed a change to branch master.

  from  72e71c0   * README: Recommend "externals" and add some 
recommendations
   new  26d9da5   [gnus-mock] Don't completely swallow errors
   new  b627444   [gnus-mock] Set a value of default-directory for child 
Emacs process
   new  3f7baba   [gnus-mock] Set gnus-verbose to max by default, bump to 
0.4.0


Summary of changes:
 packages/gnus-mock/data/.gnus.el |  2 ++
 packages/gnus-mock/gnus-mock.el  | 21 ++---
 2 files changed, 16 insertions(+), 7 deletions(-)



[elpa] master 26d9da5 1/3: [gnus-mock] Don't completely swallow errors

2018-12-04 Thread Eric Abrahamsen
branch: master
commit 26d9da530bd93885c17352189ada9ef4eac88153
Author: Eric Abrahamsen 
Commit: Eric Abrahamsen 

[gnus-mock] Don't completely swallow errors

* packages/gnus-mock/gnus-mock.el (gnus-mock-start): And use
  `condition-case-unless-debug'.
---
 packages/gnus-mock/gnus-mock.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/packages/gnus-mock/gnus-mock.el b/packages/gnus-mock/gnus-mock.el
index b11c15f..0874200 100644
--- a/packages/gnus-mock/gnus-mock.el
+++ b/packages/gnus-mock/gnus-mock.el
@@ -139,7 +139,7 @@ Gnus settings pre-loaded.  Any of the normal Gnus entry 
points
 will start a mock Gnus session."
   (interactive)
   (let ((mock-tmp-dir (make-temp-file "emacs-gnus-mock-" t)))
-(condition-case nil
+(condition-case-unless-debug err
(let ((init-file (expand-file-name "init.el" mock-tmp-dir)))
  (with-temp-buffer
(let ((standard-output (current-buffer))
@@ -261,7 +261,8 @@ will start a mock Gnus session."
:stderr "*gnus mock errors*"))
   (error (when (and gnus-mock-cleanup-p
(file-exists-p mock-tmp-dir))
-  (delete-directory mock-tmp-dir t))
+  (delete-directory mock-tmp-dir t))
+(signal (car err) (cdr err))
 
 (provide 'gnus-mock)
 ;;; gnus-mock.el ends here



[elpa] master 3f7baba 3/3: [gnus-mock] Set gnus-verbose to max by default, bump to 0.4.0

2018-12-04 Thread Eric Abrahamsen
branch: master
commit 3f7babaed42b1ef9a4f036c5e5378dd9645bd484
Author: Eric Abrahamsen 
Commit: Eric Abrahamsen 

[gnus-mock] Set gnus-verbose to max by default, bump to 0.4.0

* packages/gnus-mock/data/.gnus.el (gnus-verbose): Useful default.
---
 packages/gnus-mock/data/.gnus.el | 2 ++
 packages/gnus-mock/gnus-mock.el  | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/packages/gnus-mock/data/.gnus.el b/packages/gnus-mock/data/.gnus.el
index 0687612..3fe0a87 100644
--- a/packages/gnus-mock/data/.gnus.el
+++ b/packages/gnus-mock/data/.gnus.el
@@ -15,6 +15,8 @@
 (setq user-mail-address "mocktur...@gnus.org"
   user-full-name "Mock Turtle")
 
+(setq gnus-verbose 10)
+
 ;; `sendmail-program' has already been set to fakesendmail.py in the
 ;; init file.
 (setq message-send-mail-function #'message-send-mail-with-sendmail)
diff --git a/packages/gnus-mock/gnus-mock.el b/packages/gnus-mock/gnus-mock.el
index 74a85a3..968bed2 100644
--- a/packages/gnus-mock/gnus-mock.el
+++ b/packages/gnus-mock/gnus-mock.el
@@ -5,7 +5,7 @@
 ;; Author: Eric Abrahamsen 
 ;; Maintainer: Eric Abrahamsen 
 ;; Package-Type: multi
-;; Version: 0.3.0
+;; Version: 0.4.0
 
 ;; This program is free software; you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by



[elpa] master 46c7629: * externals-list: Add lisp/progmodes/flymake.el as new :core package.

2018-12-04 Thread Jo�o T�vora
branch: master
commit 46c7629b3000eb9216e92b7760386b665a1f29d2
Author: João Távora 
Commit: João Távora 

* externals-list: Add lisp/progmodes/flymake.el as new :core package.
---
 externals-list | 1 +
 1 file changed, 1 insertion(+)

diff --git a/externals-list b/externals-list
index 6f7d623..146a33b 100644
--- a/externals-list
+++ b/externals-list
@@ -76,6 +76,7 @@
  ("ergoemacs-mode" :external 
"https://github.com/ergoemacs/ergoemacs-mode.git";)
  ("exwm"   :external "https://github.com/ch11ng/exwm.git";)
  ("f90-interface-browser" :subtree "https://github.com/wence-/f90-iface";)
+ ("flymake":core "lisp/progmodes/flymake.el")
  ("fountain-mode"  :external "https://github.com/rnkn/fountain-mode";)
  ("ggtags" :subtree "https://github.com/leoliu/ggtags";)
  ("gnome-c-style"  :subtree "https://github.com/ueno/gnome-c-style.git";)