[nongnu] elpa/zig-mode aba01b6: Add zig-format-show-buffer defcustom

2021-08-31 Thread ELPA Syncer
branch: elpa/zig-mode
commit aba01b6199b7697692e5e9217f602477dd5ebd9b
Author: joachimschmidt557 
Commit: Joachim Schmidt 

Add zig-format-show-buffer defcustom

If zig-format-show-buffer is nil, when formatting fails, the *zig-fmt*
buffer is not shown.
---
 zig-mode.el | 17 -
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/zig-mode.el b/zig-mode.el
index efd703f..6c8595b 100644
--- a/zig-mode.el
+++ b/zig-mode.el
@@ -44,6 +44,12 @@
   :safe #'booleanp
   :group 'zig-mode)
 
+(defcustom zig-format-show-buffer t
+  "Show a *zig-fmt* buffer after zig fmt completes with errors"
+  :type 'boolean
+  :safe #'booleanp
+  :group 'zig-mode)
+
 (defcustom zig-zig-bin "zig"
   "Path to zig executable."
   :type 'string
@@ -141,11 +147,12 @@ If given a SOURCE, execute the CMD on it."
   (buffer-file-name))
(lambda (process _e)
  (if (> (process-exit-status process) 0)
- (progn
-   (pop-to-buffer fmt-buffer)
-   (compilation-mode)
-   (when zig-return-to-buffer-after-format
- (pop-to-buffer file-buffer)))
+ (when zig-format-show-buffer
+   (progn
+ (pop-to-buffer fmt-buffer)
+ (compilation-mode)
+ (when zig-return-to-buffer-after-format
+   (pop-to-buffer file-buffer
(revert-buffer :ignore-auto :noconfirm)))
 
 (defun zig-re-word (inner)



[elpa] externals/org ebba483 2/3: org-manual: Document the option 'none' for :results handling

2021-08-31 Thread ELPA Syncer
branch: externals/org
commit ebba483cf96cc99d3f42bb77e9c8e6b173099816
Author: Yasushi SHOJI 
Commit: TEC 

org-manual: Document the option 'none' for :results handling

The commit d4b739fbf2eee01 added the "none" header argument but didn't
add it to the manual.  Document it in the manual so that users can
discover it.

Signed-off-by: Yasushi SHOJI 
---
 doc/org-manual.org | 5 +
 1 file changed, 5 insertions(+)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index 8686940..10e0baa 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -17771,6 +17771,11 @@ Handling options after collecting the results.
   Do not insert results in the Org mode buffer, but echo them in the
   minibuffer.  Usage example: =:results output silent=.
 
+- =none= ::
+
+  Do not process results at all. No inserting in the Org mode buffer
+  nor echo them in the minibuffer.  Usage example: =:results none=.
+
 - =append= ::
 
   Append results to the Org buffer.  Latest results are at the bottom.



[elpa] externals/org 18bc3a6 3/3: ob-core: Document the option 'none' for :results handling

2021-08-31 Thread ELPA Syncer
branch: externals/org
commit 18bc3a65b2232f7f642b7087833afd8987e4e52a
Author: Yasushi SHOJI 
Commit: TEC 

ob-core: Document the option 'none' for :results handling

The commit d4b739fbf2eee01 added the "none" header argument but didn't
add it to the `org-babel-insert-result' documentation string.  Put it
in the doc string so that users can discover it.

Signed-off-by: Yasushi SHOJI 
---
 lisp/ob-core.el | 4 
 1 file changed, 4 insertions(+)

diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index 384c06c..1fc3b3d 100644
--- a/lisp/ob-core.el
+++ b/lisp/ob-core.el
@@ -2185,6 +2185,10 @@ silent -- no results are inserted into the Org buffer but
   ingested by Emacs (a potentially time consuming
   process).
 
+none  no results are inserted into the Org buffer nor
+  echoed to the minibuffer. they are not processed into
+  Emacs-lisp objects at all.
+
 file  the results are interpreted as a file path, and are
   inserted into the buffer using the Org file syntax.
 



[elpa] externals/org updated (b1a74d4 -> 18bc3a6)

2021-08-31 Thread ELPA Syncer
elpasync pushed a change to branch externals/org.

  from  b1a74d4   agenda: Fix whitespace
   new  3b79fe1   org-manual: Move the default result handing at the top
   new  ebba483   org-manual: Document the option 'none' for :results 
handling
   new  18bc3a6   ob-core: Document the option 'none' for :results handling


Summary of changes:
 doc/org-manual.org | 11 ---
 lisp/ob-core.el|  4 
 2 files changed, 12 insertions(+), 3 deletions(-)



[elpa] externals/org 3b79fe1 1/3: org-manual: Move the default result handing at the top

2021-08-31 Thread ELPA Syncer
branch: externals/org
commit 3b79fe1c009f3efa2da29c6c466ca7679e24b747
Author: Yasushi SHOJI 
Commit: TEC 

org-manual: Move the default result handing at the top

`replace` is the default option for the :results header option for the
source blocks.  Move it to the top of the list.

Signed-off-by: Yasushi SHOJI 
---
 doc/org-manual.org | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index d34d335..8686940 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -17761,16 +17761,16 @@ value listed above.  E.g.,
 
 Handling options after collecting the results.
 
-- =silent= ::
-
-  Do not insert results in the Org mode buffer, but echo them in the
-  minibuffer.  Usage example: =:results output silent=.
-
 - =replace= ::
 
   Default.  Insert results in the Org buffer.  Remove previous
   results.  Usage example: =:results output replace=.
 
+- =silent= ::
+
+  Do not insert results in the Org mode buffer, but echo them in the
+  minibuffer.  Usage example: =:results output silent=.
+
 - =append= ::
 
   Append results to the Org buffer.  Latest results are at the bottom.



[elpa] externals/org 1690fbd: org-colview: Fix dynblock match/maxlevel conflict

2021-08-31 Thread ELPA Syncer
branch: externals/org
commit 1690fbd88f4d55dc0e3c3af44f9fec534e75b601
Author: Nick Dokos 
Commit: TEC 

org-colview: Fix dynblock match/maxlevel conflict

* lisp/org-coplview.el (org-columns--capture-view): Combine the match
and maxlevel arguments properly to construct the MATCH argument of
`org-map-entries'.

Specifying both `maxlevel' and `match' in a columnview dynamic block
does not work: the `match' argument is ignored in that case.  See the
link below for a (not so minimal) ECM.

Reported-by: Pablo A Perez-Fernandez
Link: 
https://emacs.stackexchange.com/questions/66658/filter-columnview-dblock-on-properties-or-tags
---
 lisp/org-colview.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/org-colview.el b/lisp/org-colview.el
index 2e1c29a..7144308 100644
--- a/lisp/org-colview.el
+++ b/lisp/org-colview.el
@@ -1398,8 +1398,9 @@ other rows.  Each row is a list of fields, as strings, or
  (org-get-tags
 (push (cons (org-reduced-level (org-current-level)) (nreverse row))
   table)
- (or (and maxlevel (format "LEVEL<=%d" maxlevel))
-(and match match))
+ (if match
+ (concat match (and maxlevel (format "+LEVEL<=%d" maxlevel)))
+   (and maxlevel (format "LEVEL<=%d" maxlevel)))
  (and local 'tree)
  'archive 'comment)
 (org-columns-quit)



[nongnu] elpa/markdown-mode 1169bf1 1/2: Improve setext regexp for fill-paragraph

2021-08-31 Thread ELPA Syncer
branch: elpa/markdown-mode
commit 1169bf18feea76cc644131c6a39227b825f71d52
Author: Shohei YOSHIDA 
Commit: Shohei YOSHIDA 

Improve setext regexp for fill-paragraph
---
 markdown-mode.el   |  2 +-
 tests/markdown-test.el | 19 ++-
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/markdown-mode.el b/markdown-mode.el
index 35c2f07..5db1068 100644
--- a/markdown-mode.el
+++ b/markdown-mode.el
@@ -9730,7 +9730,7 @@ rows and columns and the column alignment."
;; not paragraph-ending suffixes:
".*  $" ; line ending in two spaces
"^#+"
-   "^[-=]+"
+   "^\\(?:   \\)?[-=]+[ \t]*$" ;; setext
"[ \t]*\\[\\^\\S-*\\]:[ \t]*$") ; just the start of 
a footnote def
  "\\|"))
   (setq-local adaptive-fill-first-line-regexp "\\`[ \t]*[A-Z]?>[ \t]*?\\'")
diff --git a/tests/markdown-test.el b/tests/markdown-test.el
index 669c94a..cbc1bbc 100644
--- a/tests/markdown-test.el
+++ b/tests/markdown-test.el
@@ -5586,7 +5586,24 @@ Details: 
https://github.com/jrblevin/markdown-mode/issues/638";
 "))
 (markdown-test-string input
   (markdown-fill-paragraph)
-  (should (string= (buffer-string) input)
+  (should (string= (buffer-string) input
+  (let ((input "Heading
+-
+"))
+(markdown-test-string input
+  (markdown-fill-paragraph)
+  (should (string= (buffer-string) input
+  ;; leading 3 spaces and trailing spaces is ok
+  (let ((input "Heading
+    \t\n"))
+(markdown-test-string input
+  (markdown-fill-paragraph)
+  (should (string= (buffer-string) input
+  ;; fill-paragraph is applied for list element
+  (markdown-test-string "- foo
+bar baz"
+(markdown-fill-paragraph)
+(should (string= (buffer-string) "- foo bar baz"
 
 ;;; Export tests:
 



[nongnu] elpa/markdown-mode a9cb230 2/2: Merge pull request #653 from jrblevin/issue-645-2

2021-08-31 Thread ELPA Syncer
branch: elpa/markdown-mode
commit a9cb2308530dbe72c3bcb6a144b03dcd536e292b
Merge: 0839d07 1169bf1
Author: Shohei YOSHIDA 
Commit: GitHub 

Merge pull request #653 from jrblevin/issue-645-2

Improve setext regexp for fill-paragraph
---
 markdown-mode.el   |  2 +-
 tests/markdown-test.el | 19 ++-
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/markdown-mode.el b/markdown-mode.el
index 35c2f07..5db1068 100644
--- a/markdown-mode.el
+++ b/markdown-mode.el
@@ -9730,7 +9730,7 @@ rows and columns and the column alignment."
;; not paragraph-ending suffixes:
".*  $" ; line ending in two spaces
"^#+"
-   "^[-=]+"
+   "^\\(?:   \\)?[-=]+[ \t]*$" ;; setext
"[ \t]*\\[\\^\\S-*\\]:[ \t]*$") ; just the start of 
a footnote def
  "\\|"))
   (setq-local adaptive-fill-first-line-regexp "\\`[ \t]*[A-Z]?>[ \t]*?\\'")
diff --git a/tests/markdown-test.el b/tests/markdown-test.el
index 669c94a..cbc1bbc 100644
--- a/tests/markdown-test.el
+++ b/tests/markdown-test.el
@@ -5586,7 +5586,24 @@ Details: 
https://github.com/jrblevin/markdown-mode/issues/638";
 "))
 (markdown-test-string input
   (markdown-fill-paragraph)
-  (should (string= (buffer-string) input)
+  (should (string= (buffer-string) input
+  (let ((input "Heading
+-
+"))
+(markdown-test-string input
+  (markdown-fill-paragraph)
+  (should (string= (buffer-string) input
+  ;; leading 3 spaces and trailing spaces is ok
+  (let ((input "Heading
+    \t\n"))
+(markdown-test-string input
+  (markdown-fill-paragraph)
+  (should (string= (buffer-string) input
+  ;; fill-paragraph is applied for list element
+  (markdown-test-string "- foo
+bar baz"
+(markdown-fill-paragraph)
+(should (string= (buffer-string) "- foo bar baz"
 
 ;;; Export tests:
 



[nongnu] main d0fa4b8: * elpa-packages (dart, gnuplot, idris, julia, yaml): Add :news

2021-08-31 Thread Philip Kaludercic
branch: main
commit d0fa4b86a7a42f60fbf6794ba71defc2df782d1d
Author: Philip Kaludercic 
Commit: Philip Kaludercic 

* elpa-packages (dart, gnuplot, idris, julia, yaml): Add :news
---
 elpa-packages | 15 ++-
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/elpa-packages b/elpa-packages
index 400f116..54b68a1 100644
--- a/elpa-packages
+++ b/elpa-packages
@@ -31,7 +31,8 @@
   :ignored-files ("coverage" "tests-todo" "tests" "Cask" "Makefile" 
"d-mode-tests.el"))
 
  ("dart-mode"  :url "https://github.com/bradyt/dart-mode";
-  :ignored-files ("test" "Cask" "Makefile"))
+  :ignored-files ("test" "Cask" "Makefile")
+  :news "CHANGELOG.md")
 
  ("editorconfig"   :url 
"https://github.com/editorconfig/editorconfig-emacs";
   :doc "doc/editorconfig.texi"
@@ -69,7 +70,8 @@
  ("geiser-stklos"  :url "https://gitlab.com/emacs-geiser/stklos.git";)
 
  ("gnuplot":url "https://github.com/emacsorphanage/gnuplot";
-  :ignored-files ("Makefile" "gpelcard.tex"))
+  :ignored-files ("Makefile" "gpelcard.tex")
+  :news "CHANGELOG.org")
 
  ("go-mode":url "https://github.com/dominikh/go-mode.el";
   :ignored-files ("generate_authors.sh"))
@@ -103,7 +105,8 @@
 
  ("idris-mode" :url "https://github.com/idris-hackers/idris-mode";
   :ignored-files ("test-data" "Makefile" "documentation.tex" "logo-small.png"
- "idris-tests*.el"))
+ "idris-tests*.el")
+  :news "CHANGES.markdown")
 
  ("inf-clojure":url 
"https://github.com/clojure-emacs/inf-clojure";
   :ignored-files ("test")
@@ -112,7 +115,8 @@
  ("j-mode" :url "https://github.com/zellio/j-mode";)
 
  ("julia-mode" :url "https://github.com/JuliaEditorSupport/julia-emacs";
-  :ignored-files ("julia-mode-tests.el" "logo.png"))
+  :ignored-files ("julia-mode-tests.el" "logo.png")
+  :news "CHANGELOG.md")
 
  ("lua-mode"   :url "https://github.com/immerrr/lua-mode/";
   :ignored-files ("test" "travis" "init-tryout.el"))
@@ -241,7 +245,8 @@
  ("wgrep"  :url "https://github.com/mhayashi1120/Emacs-wgrep";)
 
  ("yaml-mode"  :url "https://github.com/yoshiki/yaml-mode";
-  :ignored-files ("test-files" "Makefile"))
+  :ignored-files ("test-files" "Makefile")
+  :news "Changes")
 
  ("yasnippet-snippets" :url 
"https://github.com/AndreaCrotti/yasnippet-snippets";
   :ignored-files ("report" "snippets.html"))



[nongnu] elpa/projectile 7054dc7: [Fix #1701] Always add project root to known projects

2021-08-31 Thread ELPA Syncer
branch: elpa/projectile
commit 7054dc7497cea2bd62fc8b6837ea0cc32ef6ae95
Author: Juergen Hoetzel 
Commit: Bozhidar Batsov 

[Fix #1701] Always add project root to known projects

This prevents the unintentional addition of project subdirectories if
the directory tree layout does not match the specified
`projectile-project-search-path`.
---
 projectile.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/projectile.el b/projectile.el
index d47c281..cad9a21 100644
--- a/projectile.el
+++ b/projectile.el
@@ -1045,7 +1045,7 @@ discover projects there."
(not (member (file-name-nondirectory dir) '(".." "."
(projectile-discover-projects-in-directory dir (1- depth
 (when (projectile-project-p directory)
-  (projectile-add-known-project directory)))
+  (projectile-add-known-project (projectile-project-root directory
 (message "Project search path directory %s doesn't exist" directory)))
 
 ;;;###autoload



[elpa] externals/org b4e575e: org-manual/guide: use function quotes for hooks and key-bindings

2021-08-31 Thread ELPA Syncer
branch: externals/org
commit b4e575ee87bb841fa1a786a125f0990aa41616a1
Author: Marco Wahl 
Commit: Marco Wahl 

org-manual/guide: use function quotes for hooks and key-bindings
---
 doc/org-guide.org  |  6 +++---
 doc/org-manual.org | 22 +++---
 2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/doc/org-guide.org b/doc/org-guide.org
index ad2e873..aa793f1 100644
--- a/doc/org-guide.org
+++ b/doc/org-guide.org
@@ -76,9 +76,9 @@ keys for three commands that are useful in any Emacs buffer, 
not just
 Org buffers.  Please choose suitable keys yourself.
 
 #+begin_src emacs-lisp
-(global-set-key (kbd "C-c l") 'org-store-link)
-(global-set-key (kbd "C-c a") 'org-agenda)
-(global-set-key (kbd "C-c c") 'org-capture)
+(global-set-key (kbd "C-c l") #'org-store-link)
+(global-set-key (kbd "C-c a") #'org-agenda)
+(global-set-key (kbd "C-c c") #'org-capture)
 #+end_src
 
 Files with extension =.org= will be put into Org mode automatically.
diff --git a/doc/org-manual.org b/doc/org-manual.org
index 10e0baa..61b7433 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -170,9 +170,9 @@ to globally available keys, like the ones reserved for 
users (see
 please modify the keys to your own liking.
 
 #+begin_src emacs-lisp
-(global-set-key (kbd "C-c l") 'org-store-link)
-(global-set-key (kbd "C-c a") 'org-agenda)
-(global-set-key (kbd "C-c c") 'org-capture)
+(global-set-key (kbd "C-c l") #'org-store-link)
+(global-set-key (kbd "C-c a") #'org-agenda)
+(global-set-key (kbd "C-c c") #'org-capture)
 #+end_src
 
 #+cindex: Org mode, turning on
@@ -1789,7 +1789,7 @@ mode with {{{kbd(M-x orgtbl-mode)}}}.  To turn it on by 
default, for
 example in Message mode, use
 
 #+begin_src emacs-lisp
-(add-hook 'message-mode-hook 'turn-on-orgtbl)
+(add-hook 'message-mode-hook #'turn-on-orgtbl)
 #+end_src
 
 Furthermore, with some special setup, it is possible to maintain
@@ -3521,8 +3521,8 @@ generally, act on links.
 
   #+begin_src emacs-lisp
   (with-eval-after-load 'org
-(define-key org-mode-map (kbd "M-n") 'org-next-link)
-(define-key org-mode-map (kbd "M-p") 'org-previous-link))
+(define-key org-mode-map (kbd "M-n") #'org-next-link)
+(define-key org-mode-map (kbd "M-p") #'org-previous-link))
   #+end_src
 
 ** Using Links Outside Org
@@ -3563,7 +3563,7 @@ replacement text.  Here is an example:
 #+begin_src emacs-lisp
 (setq org-link-abbrev-alist
   '(("bugzilla". "http://10.1.2.9/bugzilla/show_bug.cgi?id=";)
-("Nu Html Checker" . "https://validator.w3.org/nu/?doc=%h";) 
+("Nu Html Checker" . "https://validator.w3.org/nu/?doc=%h";)
("duckduckgo"  . "https://duckduckgo.com/?q=%s";)
 ("omap". 
"http://nominatim.openstreetmap.org/search?q=%s&polygon=1";)
 ("ads" . 
"https://ui.adsabs.harvard.edu/search/q=%20author%3A\"%s\"";)))
@@ -4489,7 +4489,7 @@ all children are done, you can use the following setup:
   (let (org-log-done org-log-states)   ; turn off logging
 (org-todo (if (= n-not-done 0) "DONE" "TODO"
 
-(add-hook 'org-after-todo-statistics-hook 'org-summary-todo)
+(add-hook 'org-after-todo-statistics-hook #'org-summary-todo)
 #+end_src
 
 Another possibility is the use of checkboxes to identify (a hierarchy
@@ -11034,7 +11034,7 @@ current buffer with {{{kbd(M-x org-cdlatex-mode)}}}, or 
for all Org
 files with
 
 #+begin_src emacs-lisp
-(add-hook 'org-mode-hook 'turn-on-org-cdlatex)
+(add-hook 'org-mode-hook #'turn-on-org-cdlatex)
 #+end_src
 
 When this mode is enabled, the following features are present (for
@@ -15581,7 +15581,7 @@ BACKEND is the export back-end being used, as a symbol."
   (org-map-entries
(lambda () (delete-region (point) (line-beginning-position 2)
 
-(add-hook 'org-export-before-parsing-hook 'my-headline-removal)
+(add-hook 'org-export-before-parsing-hook #'my-headline-removal)
 #+end_src
 
 *** Filters
@@ -21451,7 +21451,7 @@ modify this GNU manual."
 * Footnotes
 
 [fn:1] If you do not use Font Lock globally turn it on in Org buffer
-with =(add-hook 'org-mode-hook 'turn-on-font-lock)=.
+with =(add-hook 'org-mode-hook #'turn-on-font-lock)=.
 
 [fn:2] Please consider subscribing to the mailing list in order to
 minimize the work the mailing list moderators have to do.



[elpa] elpa-admin e71d294: * GNUmakefile (packages/%.elc): Use `other-packages` if present

2021-08-31 Thread monnier--- via
branch: elpa-admin
commit e71d294c26f58b83ab42b6376022640652356328
Author: Stefan Monnier 
Commit: Stefan Monnier 

* GNUmakefile (packages/%.elc): Use `other-packages` if present
---
 GNUmakefile | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/GNUmakefile b/GNUmakefile
index 2ffcec2..affba15 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -85,7 +85,7 @@ descs := $(foreach pkg, $(pkgs), $(pkg)/$(notdir 
$(pkg))-pkg.el)
 # packages/names/names-autoloads.el
 
 # .PRECIOUS: packages/%-autoloads.el
-packages/%-autoloads.el: elpa-packages
+packages/%-autoloads.el: # elpa-packages
@#echo 'Generating autoloads for $@'
$(EMACS) -l admin/elpa-admin.el\
 -f elpaa-batch-generate-autoloads $@
@@ -117,7 +117,8 @@ elcs := $(call SET-diff, $(naive_elcs), $(patsubst %.el, 
%.elc, $(nbc_els)))
 packages/%.elc: packages/%.el
@echo 'Byte compiling $<'
@$(EMACS)\
-   --eval "(setq package-directory-list nil \
+   --eval "(setq package-directory-list \
+  (list \"$(abspath other-packages)\")   \
  load-prefer-newer t\
  package-user-dir \"$(abspath packages)\")" \
-f package-initialize\
@@ -167,6 +168,7 @@ $(call SET-diff, $(1), $(patsubst %.elc, %.el, $(2)))
 endef
 
 # Takes a set of .el files and returns those that can't be byte-compiled.
+# FIXME: Take `dir-locals.el` settings into account!
 define FILE-nobytecompile
 $(foreach el, $(1), \
   $(if $(shell grep '^;.*no-byte-compile: *t' "$(el)"), $(el)))