Thien-Thi Nguyen | 2 Jun 2004 16:59

EDB 1.22 available

EDB is released under the GNU General Public License (GPL).

README excerpt:

        This directory contains EDB, the Emacs Database.
        EDB was written by Michael Ernst <mernst <at> theory.lcs.mit.edu>,
        and is being maintained by Thien-Thi Nguyen <ttn <at> glug.org>.

NEWS excerpt:

  - 1.22 | 2004-06-02

        This is a cleanup release (perhaps one of several) following
        maintainership transfer from Michael Ernst, the author of EDB,
        to Thien-Thi Nguyen, the slowly-searching student of EDB (and
        other works of codified thought).

        Cleanup means adding "./configure && make && make install"
        support (including commonly related things like "make dist",
        NEWS file, etc); minor upgrading of the elisp dialect and
        style; and bundling the examples.  A request for outstanding
        bugfixes posted to one of the newsgroups has gone unanswered
        to date, so this release includes no bugfixes.

        The programming interface has not changed.  Those elements
        mentioned in the info pages are guaranteed to NOT change for
        all 1.x versions of EDB.  If you have written an application
        based on EDB that uses undocumented elements, you can either
        contribute doc patches (which if accepted would result in
        those elements being guaranteed to NOT change), or prepare
(Continue reading)

Thien-Thi Nguyen | 11 Jun 2004 03:28

ttn-pers-elisp 1.45 available

README excerpt:

  This directory tree contains ttn's personal elisp library, released
  under GNU GPL with ABSOLUTELY NO WARRANTY.  See the file COPYING for
  details.

NEWS excerpt:

  - 1.45 | 2004-06-11

    - VC "stay local" feature disabled

        "Stay local" is nice, but backup files are not so nice,
        especially since it seems CVS creates backup files anyway;
        Emacs should just use those instead of polluting cwd, IMHO.

        More importantly, it seems weird that "stay local" and "create
        backup files" are comingled in the first place.  Hmmm.

    - Preferred mode-line style now works again for Emacs 20.7

    - When composing mail, `truncate-lines' is automatically set

    - In Makefile mode, func names such as $(shell ...) are highlighted

    - Opposite paren offscreen no longer displays a message

    - Command `dired-diff' now advised

        For the case where the file in question is ".last-release" and
(Continue reading)

Joe Corneli | 13 Jun 2004 05:05
Picon
Favicon

musical-letters.el (revision)

Here is a revision to musical-letters.el and the
musical-letters-mode it proves.  Probably I will have further
updates before long, including an improved way to switch soundfonts
and change which instuments are attached to which midi channel.

But the current version is an improvement to the previous one I
posted.  The code is cleaner and more of the fluidsynth features are
implemented.

Also, there are still a few minor bugs that seem worth fixing, so
posting the code will give me something to refer to as I ask for
help with that.

;;; musical-letters.el -- play the fluidsynth software synthesizer

;; Copyright (C) 2004 Joe Corneli <jcorneli <at> math.utexas.edu>

;; Time-stamp: <jac -- Sat Jun 12 21:57:47 CDT 2004>

;; This file is not part of GNU Emacs, but it is distributed under
;; the same terms as 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 2, 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
(Continue reading)

Joe Corneli | 20 Jun 2004 18:16
Picon
Favicon

renewable scratch pad


This function provides a way to manage the scratch buffer in the
same way we're familiar with managing the shell buffer (and also
info, grep, etc.).  It is a very simple function to write, but I
think it should be included in Emacs to provide a more unified
look-n-feel.

(defun scratch ()
  "Access or create a notepad in the `*scratch*' buffer."
  (interactive)
  (let ((buffer (get-buffer-create "*scratch*")))
    (pop-to-buffer buffer)
  buffer))
Joe Corneli | 21 Jun 2004 00:01
Picon
Favicon

Re: renewable scratch pad

This would make the function behave more like M-x shell: the scratch
buffer would always have lisp interaction mode enforced.  A more
advanced version might allow the user to change the mode in the
scratch buffer, and have that mode preserved when accessing the
buffer using this function. Not sure about how best to do that, so
this is where I'll leave it for now.

(defun scratch ()
  "Access or create a lisp-interaction scratchpad in the `*scratch*' buffer."
  (interactive)
  (let ((buffer (get-buffer-create "*scratch*")))
    (pop-to-buffer buffer)
    (lisp-interaction-mode)
  buffer))
Kevin Rodgers | 21 Jun 2004 22:39
Picon
Favicon

Re: renewable scratch pad

Joe Corneli wrote:
 > This would make the function behave more like M-x shell: the scratch
 > buffer would always have lisp interaction mode enforced.  A more
 > advanced version might allow the user to change the mode in the
 > scratch buffer, and have that mode preserved when accessing the
 > buffer using this function. Not sure about how best to do that, so
 > this is where I'll leave it for now.

Simple, just don't call the mode function if the buffer already exists;
also, you should respect initial-major-mode:

(defun scratch ()
   "Select the `*scratch*' buffer."
   (interactive)
   (let ((buffer (get-buffer "*scratch*")))
     (pop-to-buffer (or buffer (generate-new-buffer "*scratch*")))
     (or buffer (funcall initial-major-mode))
     buffer))

--

-- 
Kevin Rodgers
Johan Bockgård | 22 Jun 2004 21:49
Picon
Picon

Re: renewable scratch pad

Kevin Rodgers <ihs_4664 <at> yahoo.com> writes:

> (defun scratch ()
>    "Select the `*scratch*' buffer."
>    (interactive)
>    (let ((buffer (get-buffer "*scratch*")))
>      (pop-to-buffer (or buffer (generate-new-buffer "*scratch*")))
>      (or buffer (funcall initial-major-mode))
>      buffer))

(defun scratch ()
  "Select the `*scratch*' buffer."
  (interactive)
  (pop-to-buffer "*scratch*"))

--

-- 
Johan Bockgård
Joe Corneli | 27 Jun 2004 21:53
Picon
Favicon

scrat.el

Here is a simple function that lets you access your scatch buffer
with `M-x scratch'.  There are some additional bonus features
included as well.  I think it would be nice if this package could be
included in Emacs.

;;; scrat.el --- access *scratch* like you do *shell*

;; Copyright (C) 2004 Joe Corneli <jcorneli <at> math.utexas.edu>

;; Time-stamp: <jac -- Sun Jun 27 14:45:20 CDT 2004>

;; This file is not part of GNU Emacs, but it is distributed under
;; the same terms as 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 2, 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; see the file COPYING.  If not, write to the
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.

;;; Commentary:
(Continue reading)

Klaus Berndl | 14 Jun 2004 16:31
Picon

ECB 2.25 released!

                              ECB 2.25 is released!

What's new in the new release:
------------------------------

* Changes for ECB version 2.25

** More flexible sorting of the Sources- and the History-buffer

*** `ecb-sort-history-items' has been renamed to `ecb-history-sort-method'
    and offers now the same choices as the already existing option
    `ecb-sources-sort-method'.

*** Two new options `ecb-sources-sort-ignore-case' and
    `ecb-history-sort-ignore-case' which allow to ignore case when sorting the
    Sources- and/or the History-buffer. Thanks for suggestion to Markus
    Gritsch <gritsch <at> iue.tuwien.ac.at>. Per default case is now ignored.

** New icons for parent-display in the Methods-buffer.
   Thanks to Markus Gritsch <gritsch <at> iue.tuwien.ac.at> for contributing the
   icon-images.

** Fixed Bugs

*** Fixed an annoying bug which results sometimes in an error "stack-overflow
    error in equal" when using `senator-try-expand-semantic' which is called
    when you use hippie-expand for example. Maybe the bug occured also in
    other situation but now this bug has been extirpated!

*** Fixed a bug in the mechanism which prescanes directories for emptiness.
(Continue reading)

Rick | 18 Jun 2004 01:11

using local Wikipedia

I have a bit of a writeup on accessing a local Wikipedia
from emacs. See meta.wikipedia.org/wiki/User:MwZurp

Wikipedia (see wikipedia.org) is a user-created wiki-based
encyclopedia.

Here are some basic functions:

(defun wkp-get-article (title)
  (interactive "sArticle title:")
  (let ((id (string-to-int
             (wkp-select "cur_id"
                         (format "cur_namespace=0 AND cur_title='%s'"
                                 title)))))
    (wkp-select "cur_text" (format "cur_id=%d" id))))

(defun wkp-select (field condition)
  (shell-command-to-string
   (format "echo \"use wikidb;SELECT %s FROM cur WHERE %s;\" | %s | tail -1"
           field condition
           "mysql --user=wikiuser --password=wikipass")))

You have to have a local Wikipedia installed
in mySQL as "wikiuser" and with a password "wikipass".

Gmane