[ELPA-diffs] ELPA branch, master, updated. 7e61487d3cb27ad4d7e5b3420c8d3901621c9d8c

2014-01-07 Thread Michael Albinus
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "ELPA".

The branch, master has been updated
   via  7e61487d3cb27ad4d7e5b3420c8d3901621c9d8c (commit)
   via  69132fb25eada90c77b6f46240a15afde7aadc60 (commit)
  from  42134e17d38e51ec156b518b3afca3b9e173efae (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 7e61487d3cb27ad4d7e5b3420c8d3901621c9d8c
Merge: 69132fb 42134e1
Author: Michael Albinus 
Date:   Tue Jan 7 14:36:34 2014 +0100

Merge branch 'master' of git://bzr.sv.gnu.org/emacs/elpa


commit 69132fb25eada90c77b6f46240a15afde7aadc60
Author: Michael Albinus 
Date:   Tue Jan 7 14:27:23 2014 +0100

Update copyright years.

diff --git a/packages/debbugs/Debbugs.wsdl b/packages/debbugs/Debbugs.wsdl
index 64b9306..b186c80 100644
--- a/packages/debbugs/Debbugs.wsdl
+++ b/packages/debbugs/Debbugs.wsdl
@@ -1,6 +1,6 @@
 
 
-

[ELPA-diffs] ELPA branch, master, updated. 4acb2ef259003a21c42563d9be1d5762694185ea

2014-01-07 Thread Ivan Kanis
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "ELPA".

The branch, master has been updated
   via  4acb2ef259003a21c42563d9be1d5762694185ea (commit)
  from  7e61487d3cb27ad4d7e5b3420c8d3901621c9d8c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 4acb2ef259003a21c42563d9be1d5762694185ea
Author: Ivan Kanis 
Date:   Tue Jan 7 14:38:14 2014 +0100

add 100 seconds word puzzle version 1.0

diff --git a/100secwp/100secwp.el b/100secwp/100secwp.el
new file mode 100644
index 000..261e9d2
--- /dev/null
+++ b/100secwp/100secwp.el
@@ -0,0 +1,434 @@
+;;; 100secwp.el --- One hundred seconds word puzzle  -*- coding: utf-8; 
lexical-binding: t -*-
+
+;; Copyright (C) 2014  Free Software Foundation, Inc.
+
+;; Author: Ivan Kanis 
+;; Version: 1.0
+
+;; This file is part of GNU Emacs.
+
+;; GNU Emacs is free software: you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; GNU Emacs is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with GNU Emacs.  If not, see .
+
+;;; Commentary:
+
+;; Find as many word as possible in a 100 seconds. Words are scored by
+;; length and the scrablle letter value.
+
+;; M-x 100secwp to start the game
+
+;; You need to have aspell installed, it will check for valid words.
+
+ THANKS:
+
+;; Inspiration from an Android game written by SpiceLabs http://spicelabs.in
+
+;; I dedicate this code to my grandmother who taught me to play Scrabble
+
+ BUGS:
+
+ INSTALLATION:
+
+;; Use ELPA
+
+ TODO
+
+;;  - add other languages such as french
+;;  - input letter one by one like the original game
+;;  - really stop after 100 seconds
+;;  - display something more fancy with letter points (SVG would be cool!)
+;;  - use ispell.el
+;;  - display best possible score on a given deck at the end of the game
+;;  - use gamegrid.el for dealing with high score
+;;  - use defcustom for variables
+;;  - add unit testing
+;;  - use global state less (functional style programming)
+;;  - clock ticks with timer
+;;  - use face to display picked letter
+;;(insert (propertize "foo" 'face 'highlight))
+;;  - kill score buffer when quiting
+;;  - use a list instead of a string for the deck letters
+;;  - add command to shuffle the deck
+;;  - navigate to source code in other window to pretend working while playing
+
+;; search for TODO within the file
+
+ VERSION
+
+;; version 1
+
+;;; Code:
+
+(require 'thingatpt)
+
+(defvar 100secwp-time-limit 100
+  "Number of seconds the game will last.")
+
+(defvar 100secwp-high-score-buffer "100secwp-score"
+  "File for holding high scores.")
+
+(defvar 100secwp-high-score-directory
+  (locate-user-emacs-file "games/")
+  "A directory for storing game high score.")
+
+(defvar 100secwp-high-score-file
+  (concat 100secwp-high-score-directory 100secwp-high-score-buffer)
+  "Full path to file used for storing game high score.")
+
+(defvar 100secwp-buffer "*100secwp*"
+  "Game buffer")
+
+(defvar 100secwp-state
+  '((deck-letter)
+(score)
+(start-time)
+(correct-word))
+  "Global game state.")
+
+(defconst 100secwp-frequency
+  '((?e . 111)
+(?a . 84)
+(?r . 75)
+(?i . 75)
+(?o . 71)
+(?t . 69)
+(?n . 66)
+(?s . 57)
+(?l . 54)
+(?c . 45)
+(?u . 36)
+(?d . 70) ; crank up for verb ending in ed (normally 33)
+(?p . 31)
+(?m . 30)
+(?h . 30)
+(?g . 70) ; same for ing (normally 33)
+(?b . 20)
+(?f . 18)
+(?y . 17)
+(?w . 12)
+(?k . 11)
+(?v . 10)
+(?x . 10) ; (normally 2) remaining letters are cranked up to
+(?z . 10) ;  add a bit of spice to the game :)
+(?j . 10) ; (normally 1)
+(?q . 10))
+  "English letter frequency.")
+
+(defconst 100secwp-scrabble
+  '((?a . 1) (?b . 3) (?c . 3) (?d . 2) (?e . 1) (?f . 4) (?g . 2) (?h . 4)
+(?i . 1) (?j . 8) (?k . 5) (?l . 1) (?m . 3) (?n . 1) (?o . 1) (?p . 3)
+(?q . 10) (?r . 1) (?s . 1) (?t . 1) (?u . 1) (?v . 4) (?w . 4) (?x . 8)
+(?y . 4) (?z . 10))
+  "Scrabble letter values.")
+
+(defmacro 100secwp-state (key)
+  "Return KEY stored variable state."
+  `(cdr (assoc ',key 100secwp-state)))
+
+(defmacro 100secwp-add (place number)
+  "Append number PLACE with CHAR."
+  `(progn (setf ,place (+ ,place ,number
+
+(defma

[ELPA-diffs] ELPA branch, master, updated. 055b3ad052d5746000196344b75ca7fb4da55614

2014-01-07 Thread Bastien Guerry
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "ELPA".

The branch, master has been updated
   via  055b3ad052d5746000196344b75ca7fb4da55614 (commit)
  from  4acb2ef259003a21c42563d9be1d5762694185ea (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 055b3ad052d5746000196344b75ca7fb4da55614
Author: bastien1 
Date:   Tue Jan 7 14:40:19 2014 +0100

Update copyright years.

diff --git a/packages/register-list/register-list.el 
b/packages/register-list/register-list.el
index d192cc7..c93e479 100755
--- a/packages/register-list/register-list.el
+++ b/packages/register-list/register-list.el
@@ -1,6 +1,6 @@
 ;;; register-list.el ---  Interactively list/edit registers  -*- 
lexical-binding:t -*-
 ;;
-;; Copyright (C) 2011-2013  Free Software Foundation, Inc.
+;; Copyright (C) 2011-2014  Free Software Foundation, Inc.
 ;;
 ;; Filename: register-list.el
 ;; Author: Bastien Guerry 
diff --git a/packages/windresize/windresize.el 
b/packages/windresize/windresize.el
index e13dd3f..d80afde 100755
--- a/packages/windresize/windresize.el
+++ b/packages/windresize/windresize.el
@@ -1,6 +1,6 @@
 ;;; windresize.el --- Resize windows interactively
 ;;
-;; Copyright (C) 2011  Free Software Foundation, Inc.
+;; Copyright (C) 2011-2014  Free Software Foundation, Inc.
 ;;
 ;; Filename: windresize.el
 ;; Author: Bastien 

---

Summary of changes:
 packages/register-list/register-list.el |2 +-
 packages/windresize/windresize.el   |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
ELPA



[ELPA-diffs] ELPA branch, master, updated. a5b16e46a18a714aadb0ed6a367c0e9e21a07a8e

2014-01-07 Thread Bastien Guerry
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "ELPA".

The branch, master has been updated
   via  a5b16e46a18a714aadb0ed6a367c0e9e21a07a8e (commit)
  from  055b3ad052d5746000196344b75ca7fb4da55614 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit a5b16e46a18a714aadb0ed6a367c0e9e21a07a8e
Author: bastien1 
Date:   Tue Jan 7 17:26:54 2014 +0100

New command `debbugs-org-regenerate-status'

* debbugs-org.el: Mention `debbugs-org-regenerate-status'
in the comment section.

* debbugs-org.el (debbugs-org-show-reports): Fix typo.
(debbugs-org-regenerate-status): New command.
(debbugs-org-mode-map): Bind it to `C-c # g'.

diff --git a/packages/debbugs/debbugs-org.el b/packages/debbugs/debbugs-org.el
index bde1299..7c4d108 100644
--- a/packages/debbugs/debbugs-org.el
+++ b/packages/debbugs/debbugs-org.el
@@ -84,12 +84,18 @@
 ;;   "C-c # C": Send a debbugs control message
 ;;   "C-c # t": Mark the bug locally as tagged
 ;;   "C-c # d": Show bug attributes
+;;   "C-c # g": Regenerate text properties with status
 
 ;; The last entry in a TODO record is the link [[Messages]].  If you
 ;; follow this link, a Gnus ephemeral group is opened presenting all
 ;; related messages for this bug.  Here you could also send debbugs
 ;; control messages by keystroke "C".
 
+;; Note that following the [[Messages]] link will only work if you
+;; generated the list of bugs from the current session, or if you hit
+;; C-c # g which will regenerate the text properties containing the
+;; bug status (i.e. the bug number).
+
 ;; Finally, if you simply want to list some bugs with known bug
 ;; numbers, call the command
 ;;
@@ -329,7 +335,7 @@ returned."
 
;; Properties.
(insert "  :PROPERTIES:\n")
-   (insert (format "  :DEBGUGS_ID: %s\n" id))
+   (insert (format "  :DEBBUGS_ID: %s\n" id))
(when merged
  (insert
   (format
@@ -359,6 +365,24 @@ returned."
 (org-overview)
 (set-buffer-modified-p nil)))
 
+(defun debbugs-org-regenerate-status ()
+  "Regenerate the `tabulated-list-id' text property.
+This property is used when following the [Messages] link, so you
+need to regenerate it when opening an .org file after you killed
+the corresponding buffer (e.g. by closing Emacs.)"
+  (interactive)
+  (save-excursion
+(goto-char (point-min))
+(while (re-search-forward ":DEBBUGS_ID:[ \t]*\\([0-9]+\\)" nil t)
+  (let* ((bugnum (string-to-number (match-string 1)))
+(mw (org-entry-get (point) "MERGEDWIDTH"))
+(tli (list (cons 'id bugnum)
+   (cons 'bug_num bugnum)
+   (cons 'mergedwidth (if mw (string-to-number mw)
+   (beg (org-back-to-heading t))
+   (end (org-end-of-subtree t)))
+   (add-text-properties beg end `(tabulated-list-id ,tli))
+
 (defun debbugs-org-show-next-reports (hits)
   "Show next HITS of bug reports."
   (with-current-buffer (get-buffer-create "*Org Bugs*")
@@ -382,6 +406,7 @@ returned."
 (define-key map (kbd "C-c # t") 'debbugs-gnu-toggle-tag)
 (define-key map (kbd "C-c # C") 'debbugs-gnu-send-control-message)
 (define-key map (kbd "C-c # d") 'debbugs-gnu-display-status)
+(define-key map (kbd "C-c # g") 'debbugs-org-regenerate-status)
 map)
   "Keymap for the `debbugs-org-mode' minor mode.")
 

---

Summary of changes:
 packages/debbugs/debbugs-org.el |   27 ++-
 1 files changed, 26 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
ELPA



[ELPA-diffs] ELPA branch, master, updated. 8ef5c403755ac1754a8a3ae9a5c097ab827f4feb

2014-01-07 Thread Ivan Kanis
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "ELPA".

The branch, master has been updated
   via  8ef5c403755ac1754a8a3ae9a5c097ab827f4feb (commit)
  from  a5b16e46a18a714aadb0ed6a367c0e9e21a07a8e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
commit 8ef5c403755ac1754a8a3ae9a5c097ab827f4feb
Author: Ivan Kanis 
Date:   Tue Jan 7 18:43:18 2014 +0100

rename 100secwp to wpuzzle

diff --git a/100secwp/100secwp.el b/wpuzzle/wpuzzle.el
similarity index 97%
rename from 100secwp/100secwp.el
rename to wpuzzle/wpuzzle.el
index 261e9d2..5602c72 100644
--- a/100secwp/100secwp.el
+++ b/wpuzzle/wpuzzle.el
@@ -1,4 +1,4 @@
-;;; 100secwp.el --- One hundred seconds word puzzle  -*- coding: utf-8; 
lexical-binding: t -*-
+;;; wpuzzle.el --- find as many word in a given time  -*- coding: utf-8; 
lexical-binding: t -*-
 
 ;; Copyright (C) 2014  Free Software Foundation, Inc.
 
@@ -41,6 +41,10 @@
 
 ;; Use ELPA
 
+;; install aspell english dictionary. On Ubuntu or Debian type the following:
+
+;; sudo apt-get install aspell aspell-en
+
  TODO
 
 ;;  - add other languages such as french
@@ -416,13 +420,13 @@ The resulting list contains all items that appear in 
LIST1 but not LIST2."
   (erase-buffer)
   (switch-to-buffer 100secwp-buffer)
   (erase-buffer)
-  (insert "Welcome to 100 seconds word puzzle!
+  (insert (format "Welcome to %d seconds word puzzle!
 
-You have a hundred second to type as many word made out of the
+You have %d seconds to type as many word made out of the
 letters presented. Longer words are worth more points. The letters
 are scored with Scrabble value.
 
-Press any key to start.")
+Press any key to start." 100secwp-time-limit 100secwp-time-limit))
   (while (not (aref (read-key-sequence nil) 0))
 (sit-for 1))
   (100secwp-mode))

---

Summary of changes:
 100secwp/100secwp.el => wpuzzle/wpuzzle.el |   12 
 1 files changed, 8 insertions(+), 4 deletions(-)
 rename 100secwp/100secwp.el => wpuzzle/wpuzzle.el (97%)


hooks/post-receive
-- 
ELPA