[elpa] master 9d2a144 3/3: Merge commit 'b3b69f52207d3a8111421ad7ab9ed82abbe85316'

2018-03-22 Thread Rocky Bernstein
branch: master
commit 9d2a144e26f53d3142c743a3371c2ca8b503bdd9
Merge: cc199f5 b3b69f5
Author: rocky 
Commit: rocky 

Merge commit 'b3b69f52207d3a8111421ad7ab9ed82abbe85316'



[elpa] master e7c948e 1/3: Bump version to keep in sync with elpa

2018-03-22 Thread Rocky Bernstein
branch: master
commit e7c948e1cf22b8f85f0dd289a88a44d624b965c1
Author: rocky 
Commit: rocky 

Bump version to keep in sync with elpa
---
 test-simple.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test-simple.el b/test-simple.el
index 3387435..a85f5ba 100644
--- a/test-simple.el
+++ b/test-simple.el
@@ -1,7 +1,7 @@
 ;;; test-simple.el --- Simple Unit Test Framework for Emacs Lisp -*- 
lexical-binding: t -*-
 ;; Rewritten from Phil Hagelberg's behave.el by rocky
 
-;; Copyright (C) 2015, 2016 Free Software Foundation, Inc
+;; Copyright (C) 2015, 2016, 2017 Free Software Foundation, Inc
 
 ;; Author: Rocky Bernstein 
 ;; URL: http://github.com/rocky/emacs-test-simple



[elpa] master b3b69f5 2/3: Bump version

2018-03-22 Thread Rocky Bernstein
branch: master
commit b3b69f52207d3a8111421ad7ab9ed82abbe85316
Author: rocky 
Commit: rocky 

Bump version
---
 test-simple.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test-simple.el b/test-simple.el
index a85f5ba..8f1ec12 100644
--- a/test-simple.el
+++ b/test-simple.el
@@ -7,7 +7,7 @@
 ;; URL: http://github.com/rocky/emacs-test-simple
 ;; Keywords: unit-test
 ;; Package-Requires: ((cl-lib "0"))
-;; Version: 1.2.0
+;; Version: 1.3.0
 
 ;; This program is free software: you can redistribute it and/or
 ;; modify it under the terms of the GNU General Public License as



[elpa] master updated (cc199f5 -> 9d2a144)

2018-03-22 Thread Rocky Bernstein
rocky pushed a change to branch master.

  from  cc199f5   Show progress of automatic el-search-query-replace
   new  e7c948e   Bump version to keep in sync with elpa
   new  b3b69f5   Bump version
   new  9d2a144   Merge commit 'b3b69f52207d3a8111421ad7ab9ed82abbe85316'


Summary of changes:



[elpa] master 52b2760: Sync with github and MELPA stable

2018-03-22 Thread Rocky Bernstein
branch: master
commit 52b2760ec79ed037d689ae1dc62b8e365686
Author: rocky 
Commit: rocky 

Sync with github and MELPA stable
---
 packages/realgud/INSTALL.md| 14 +++-
 packages/realgud/install-from-git.sh   | 21 +++--
 packages/realgud/realgud.el| 24 --
 packages/realgud/realgud/.nosearch | 11 +++
 packages/realgud/realgud/common/bp.el  |  6 +-
 packages/realgud/realgud/common/buffer/command.el  |  6 +-
 packages/realgud/realgud/common/cmds.el|  2 +-
 packages/realgud/realgud/common/fringe.el  | 33 ++--
 packages/realgud/realgud/common/key.el | 25 ++
 packages/realgud/realgud/common/send.el| 23 -
 packages/realgud/realgud/common/track-mode.el  |  2 +-
 packages/realgud/realgud/common/track.el   | 98 --
 packages/realgud/realgud/debugger/bashdb/bashdb.el | 27 +-
 packages/realgud/realgud/debugger/nodejs/core.el   |  2 +-
 packages/realgud/realgud/debugger/nodejs/init.el   | 30 +--
 packages/realgud/realgud/debugger/nodejs/nodejs.el | 11 ++-
 packages/realgud/realgud/debugger/trepan3k/init.el | 11 +--
 packages/realgud/realgud/debugger/trepanjs/init.el |  4 +-
 packages/realgud/test/.gitignore   |  1 +
 packages/realgud/test/gcd.js   |  3 +-
 packages/realgud/test/test-bt-trepan2.el   | 34 
 packages/realgud/test/test-pdb.el  | 12 +--
 packages/realgud/test/test-realgud.el  | 71 +---
 packages/realgud/test/test-regexp-remake.el|  6 ++
 packages/realgud/test/test-regexp-trepan.el|  8 ++
 packages/realgud/test/test-send.el | 10 ++-
 packages/realgud/test/test-track.el| 95 ++---
 packages/realgud/test/test-utils.el|  4 +
 28 files changed, 426 insertions(+), 168 deletions(-)

diff --git a/packages/realgud/INSTALL.md b/packages/realgud/INSTALL.md
index cc7f7dd..3990d1c 100644
--- a/packages/realgud/INSTALL.md
+++ b/packages/realgud/INSTALL.md
@@ -1,5 +1,15 @@
 * Have `test-simple`, `loc-changes`, `cl-lib` and `load-relative` installed.
 * From inside emacs, evaluate:
 ```lisp
-  (compile (format "EMACSLOADPATH=:%s:%s ./autogen.sh" (file-name-directory 
(locate-library "test-simple.elc")) (file-name-directory (locate-library 
"realgud.elc"
-```
+  (compile (format "EMACSLOADPATH=:%s:%s:%s:%s ./autogen.sh" 
(file-name-directory (locate-library "test-simple.elc")) (file-name-directory 
(locate-library "load-relative.elc")) (file-name-directory (locate-library 
"loc-changes.elc")) (file-name-directory (locate-library "realgud.elc")) ))
+  ```
+
+After this you should be able to run:
+
+$ make # byte compile everything
+$ make check   # run unit tests
+$ make install # may need to prefix with sudo
+
+
+Also you can run from the source directory by running `eval-current-buffer`
+when inside to top level `realgud.el` (that's the one that is in this folder).
diff --git a/packages/realgud/install-from-git.sh 
b/packages/realgud/install-from-git.sh
index 8f1291a..76d5c3c 100755
--- a/packages/realgud/install-from-git.sh
+++ b/packages/realgud/install-from-git.sh
@@ -47,6 +47,7 @@
 #   GIT_PROTOCOL='git' SUDO_CMD=' ' sh ./install-from-git.sh --prefix=/tmp
 
 GIT_PROTOCOL=${GIT_PROTOCOL:-https}
+MAKE=${MAKE:-make}
 
 # Run and echo a command
 run_cmd() {
@@ -79,24 +80,26 @@ fi
 
 for program in git make $try_cmd ; do
 if ! which $program >/dev/null 2>&1 ; then
-   echo "Can't find program $program in $PATH"
+   echo 2>&1 "Can't find program $program in $PATH"
exit 1
 fi
 done
 
-for pkg in emacs-{test-simple,load-relative,loc-changes,dbgr} ; do
+cd /tmp
+for pkg in rocky/emacs-{test-simple,load-relative,loc-changes} realgud/realgud 
; do
 echo '**'
 echo Trying to install ${pkg}...
 echo '**'
-if [[ -d $pkg ]]; then
-   run_cmd $need_sudo rm -fr $pkg
+pkg_short=$(basename $pkg)
+if [[ -d $pkg_short ]]; then
+   run_cmd $need_sudo rm -fr $pkg_short
 fi
-run_cmd git clone ${GIT_PROTOCOL}://github.com/rocky/${pkg}.git
-(cd $pkg && \
+run_cmd git clone ${GIT_PROTOCOL}://github.com/${pkg}.git
+(cd $pkg_short && \
 run_cmd $SHELL ./autogen.sh && \
run_cmd ./configure $@ && \
-   run_cmd make && \
-   run_cmd make check && \
-run_cmd $need_sudo make install
+   run_cmd ${MAKE} && \
+   run_cmd ${MAKE} check && \
+run_cmd $need_sudo ${MAKE} install
 )
 done
diff --git a/packages/realgud/realgud.el b/packages/realgud/realgud.el
index 0826911..d15b324 100644
--- a/packages/realgud/realgud.el
+++ b/packages/realgud/realgud.el
@@ -1,13 +1,13 @@
 ;;; realgud.el --- A modular front-end for interacting with external debuggers
 
 ;; Author: Rocky Berns

[elpa] externals/ebdb 9e7a96f: Add experimental ebdb-completion-at-point-function

2018-03-22 Thread Eric Abrahamsen
branch: externals/ebdb
commit 9e7a96fdf8b5fb8ec14d173f3bb0383d461f5780
Author: Eric Abrahamsen 
Commit: Eric Abrahamsen 

Add experimental ebdb-completion-at-point-function

* ebdb-complete.el (ebdb-completion-at-point-function): New function
  that could be used as a completion-at-point function. Not sure this
  is a good idea, though.
---
 ebdb-complete.el | 36 
 1 file changed, 36 insertions(+)

diff --git a/ebdb-complete.el b/ebdb-complete.el
index a892ddd..66c9a9b 100644
--- a/ebdb-complete.el
+++ b/ebdb-complete.el
@@ -56,6 +56,42 @@
 (require 'message)
 (require 'sendmail)
 
+;; Experimental completion-at-point function.  I'm not sure this is a
+;; good idea yet -- with a large enough EBDB database, nearly any
+;; string is completable, meaning the other completion-at-point
+;; functions will rarely get a chance.
+(defun ebdb-completion-at-point-function ()
+  "Try to find an EBDB completion for the text at point.
+For use in `completion-at-point-functions'."
+  ;; Might consider restricting this to text-mode buffers -- would you
+  ;; ever want to complete contact names in prog-mode?
+  (let* ((start (point))
+(chunk (buffer-substring
+(save-excursion
+  ;; First try going back two words.
+  (forward-word -2)
+  (setq start (point)))
+(point)))
+(completions (all-completions (downcase chunk) ebdb-hashtable)))
+(unless completions
+  ;; If that didn't work, try just one word.
+  (setq chunk (buffer-substring
+  (save-excursion
+(forward-word -1)
+(setq start (point)))
+  (point))
+   completions (all-completions (downcase chunk) ebdb-hashtable)))
+(when completions
+  (list start (point)
+   (mapcar
+(lambda (str)
+  ;; Gross.
+  (if (string-match-p "@" str)
+  str
+(capitalize str)))
+completions)
+   '(:exclusive no)
+
 (defvar ebdb-complete-info (make-hash-table)
   "A hashtable, record buffer, buffer-window and window-point")