Kevin Rodgers | 4 Jun 00:52 2005
Picon

apply-mode-line-format.el 1.4

Changes since version 1.2:
* Implement the Emacs 21 (:eval FORM) and (:KEYWORD ...) constructs;
   handle unbound symbols in SYMBOL and (SYMBOL THEN [ELSE]) constructs;
   use (cadr ...) instead of (car (cdr ...)).

;;; Commentary:

;; Emacs 22 provides the format-mode-line function, which obsoletes
;; this package.

;; But Emacs 21 doesn't provide distinct functions for (1) generating
;; a string from `mode-line-format' and (2) displaying it in the mode
;; line.  In src/xdisp.c, display_mode_element() does both, and it
;; doesn't have a Lisp binding.  apply-mode-line-format.el defines an
;; eponymous Lisp function that returns any `mode-line-format' template
;; as a string.

This is also available at
http://www.emacswiki.org/elisp/apply-mode-line-format.el

--

-- 
Kevin Rodgers
Attachment (apply-mode-line-format.el): application/emacs-lisp, 11 KiB
_______________________________________________
Gnu-emacs-sources mailing list
Gnu-emacs-sources <at> gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources
(Continue reading)

Thien-Thi Nguyen | 4 Jun 16:16 2005

fcookie.el 1.0 available

a little exercise to get to know bindat.el.

  http://www.glug.org/people/ttn/software/personal-elisp/standalone/

(cackle cackle!)

thi

________________________________________________________________
Always the dullness of the fool is the whetstone of the wits.
		-- William Shakespeare, "As You Like It"

Noise proves nothing.  Often a hen who has merely laid an egg cackles
as if she laid an asteroid.
		-- Mark Twain
Mathias Dahl | 5 Jun 18:13 2005
Picon

tumme.el 0.4.8 - no code


Please find the latest version here:

http://www.emacswiki.org/cgi-bin/wiki/Tumme

For contacting me, use the e-mail address found in the
source code.

Changes:

  Version 0.4.8, 2005-06-05

  * Changed `tumme-display-dired-image' and
  `tumme-display-thumbnail-original-image' so that when called with a
  prefix argument, the image is not resized in the display
  buffer. This will be useful for later additions of image
  manipulation commands.

  * Added `tumme-kill-buffer-and-window' to make it easy to kill the
  tumme buffers.

  * Renamed `tumme-mode' to `tumme-thumbnail-mode'.

  * `tumme-tag-thumbnail' and `tumme-tag-thumbnail-remove' now
  updates the tags property for the thumbnail.

  * Added `tumme-dired-display-external' to display images in
  external viewer from dired buffer.

  * Added support for multiple files in `tumme-remove-tag' to
(Continue reading)

Vinicius Jose Latorre | 5 Jun 18:53 2005
Picon

version.el v1.0

;;; version.el --- version string comparison

;; Copyright (C) 2005 Vinicius Jose Latorre

;; Author:    Vinicius Jose Latorre <vinicius <at> cpqd.com.br>
;; Maintainer:    Vinicius Jose Latorre <vinicius <at> cpqd.com.br>
;; Keywords:    help, internal, maintenance, debug
;; Time-stamp:    <2005/06/05 13:49:36 vinicius>
;; Version:    1.0
;; X-URL:    http://www.cpqd.com.br/~vinicius/emacs/

;; This file is *NOT* (yet?) part of GNU Emacs.

;; 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
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.

;; This program 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)

Vinicius Jose Latorre | 5 Jun 19:24 2005
Picon

version.el v1.0 (fix)

With some minor error fix.

;;; version.el --- version string comparison

;; Copyright (C) 2005 Vinicius Jose Latorre

;; Author: Vinicius Jose Latorre <viniciusjl <at> ig.com.br>
;; Maintainer: Vinicius Jose Latorre <viniciusjl <at> ig.com.br>
;; Keywords: help, internal, maintenance, debug
;; Time-stamp: <2005/06/05 14:22:33 vinicius>
;; Version: 1.0
;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/

;; This file is *NOT* (yet?) part of GNU Emacs.

;; 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
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.

;; This program 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,
(Continue reading)

Vinicius Jose Latorre | 5 Jun 20:27 2005
Picon

versions.el v1.1

Well, I've just noted that there is already a version.el file in 
emacs/lisp dir.

So, I changed the file name to versions.el.  The function prefix is 
still "version-".

Also, in v1.1, version "1" is equal to version "1.0", "1.0.0", 
"1.0.0.0", etc.
And version "1" is greater than "1pre" which is greater than "1beta" 
which is greater than "1alpha".

;;; versions.el --- version string comparison

;; Copyright (C) 2005 Vinicius Jose Latorre

;; Author: Vinicius Jose Latorre <viniciusjl <at> ig.com.br>
;; Maintainer: Vinicius Jose Latorre <viniciusjl <at> ig.com.br>
;; Keywords: help, internal, maintenance, debug
;; Time-stamp: <2005/06/05 15:19:25 vinicius>
;; Version: 1.1
;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/

;; This file is *NOT* (yet?) part of GNU Emacs.

;; 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
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
(Continue reading)

Benjamin Rutt | 7 Jun 21:47 2005
Picon
Picon

msf-abbrev.el 0.9a

This package helps me maintain many, many abbrevs that are active in a
specific mode.  Abbrevs are defined in normal files, not in elisp.
There is also some magic to fill out forms when programming.  The best
way to see it in action is to look at the demo (animated gif).  This
and the code is available at:

http://www.bloomington.in.us/~brutt/msf-abbrev.html

This is an alpha release and requires a relatively recent (late 2004
is OK) CVS version of Emacs, AFAIK; I think this is because it uses
some text properties only in CVS version, but haven't bothered to
verify this.  Enjoy.
--

-- 
Benjamin Rutt
Vinicius Jose Latorre | 8 Jun 04:55 2005
Picon

versions.el v1.2

Some improvements.
;;; versions.el --- version string comparison

;; Copyright (C) 2005 Vinicius Jose Latorre

;; Author: Vinicius Jose Latorre <viniciusjl <at> ig.com.br>
;; Maintainer: Vinicius Jose Latorre <viniciusjl <at> ig.com.br>
;; Keywords: help, internal, maintenance, debug
;; Time-stamp: <2005/06/07 23:53:25 vinicius>
;; Version: 1.2
;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/

;; This file is *NOT* (yet?) part of GNU Emacs.

;; 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
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.

;; This program 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.
(Continue reading)

Patrick | 8 Jun 22:15 2005
Picon

Point to Pixel

On windows gnu emacs (~21.3) this code will return the pixel-position
of the current point! (or at least, within a few pixels) Returns values
in form (x . y).

I wanted this feature and couldn't find it... all I found were posts in
lists also asking for the feature, with people denying it could be done
in elisp. Well, that is not true! ;)

I believe this should work in Xemacs and on other operating systems and
recent emacs versions.

I am currently using it to display an "intellisense"-like tooltip.
Which, on windows, gnu emacs has no tooltip, so I am executing a little
python app instead which handles the tooltip for me (via wx libraries).
Works very nice.

; helper func
(defun get-param-safe (s)
  "Sometimes frame-paramater returns values of (+ -4)"
  (let ((left (frame-parameter nil s)))
    (if (listp left) (cadr left) left)))

; this is it
(defun point-to-pixel ()
  "Converts the position of the current point to pixel
   coordinates relative to the screen (i.e. window manager)."
  (let ((left (car (window-edges)))
	(top (cadr (window-edges)))
	(point-left (- (point) (point-at-bol)))
	(point-top  (point)))
(Continue reading)

Benjamin Rutt | 9 Jun 14:31 2005
Picon

msf-abbrev.el 0.91a

Benjamin Rutt <brutt <at> bloomington.in.us> writes:

> This package helps me maintain many, many abbrevs that are active in a
> specific mode.  Abbrevs are defined in normal files, not in elisp.
> There is also some magic to fill out forms when programming.  The best
> way to see it in action is to look at the demo (animated gif).  This
> and the code is available at:
>
> http://www.bloomington.in.us/~brutt/msf-abbrev.html

A new version is available, version 0.91a, which has the following
changes:

-a fix for abbrev files which contain DOS-style line endings

-a new keyword in the abbrev files is parsed to interpret a line of
 elisp, e.g.:

<ELISP "(insert (current-time-string))">

which would insert the current time at that line in the file.
--

-- 
Benjamin Rutt

Gmane