Update of /cvsroot/fink/dists/10.4-transitional/unstable/main/finkinfo/editors
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13774

Added Files:
        session-el.info session-el.patch 
Log Message:
New package from tracker #1293403


--- NEW FILE: session-el.patch ---
diff -Naur --exclude='*~' session/fink/README.fink session.fink/fink/README.fink
--- session/fink/README.fink    1969-12-31 16:00:00.000000000 -0800
+++ session.fink/fink/README.fink       2005-12-14 17:11:46.000000000 -0800
@@ -0,0 +1,19 @@
+To begin using session-el, add the forms
+
+(require 'session)
+(add-hook 'after-init-hook 'session-initialize)
+
+to your emacs initialization file.  Thus, after emacs starts up, you
+will see in the `File' menu two new items: `Open...recently changed'
+and `Open...recently visited'.  When selected, each produces a new
+menu of files, one corresponding to recently changed, the other for
+recently "visited" (which in emacs-speak means recently opened).  It
+will take a few sessions with emacs before these submenus get
+populated with useful items.  But once populated, these menus provide
+a feature for emacs that you may be familiar with from other programs:
+opening "recent" files.
+
+The customization group for session is called simply `session.  Thus,
+to begin customizing session, execute the key sequence
+
+M-x customize-group RET session RET
diff -Naur --exclude='*~' session/fink/emacsen-install 
session.fink/fink/emacsen-install
--- session/fink/emacsen-install        1969-12-31 16:00:00.000000000 -0800
+++ session.fink/fink/emacsen-install   2005-12-14 17:14:16.000000000 -0800
@@ -0,0 +1,43 @@
+#!/bin/bash -e
+#
+# install file for the fink session emacs package.
+
+set -o posix
+
+FLAVOR=${1}
+
+echo >&2 "install/session-el: Handling install for flavor ${FLAVOR}"
+
+if [ ${FLAVOR} == emacs ]
+then
+    echo >&2 "install/session-el: Done."
+    exit 0
+fi
+
+if [ ${FLAVOR} == emacs20 ]
+    then
+    echo >&2 "install/session-el: Skipping unsupported flavor ${FLAVOR}."
+    exit 0
+fi
+
+if [ ${FLAVOR} == xemacs ]
+    then
+       EFLAGS="--no-site-file --no-init-file -batch -f batch-byte-compile"
+    else
+       EFLAGS="-no-site-file -no-init-file -batch -f batch-byte-compile"
+fi
+
+echo >&2 -n "install/session-el: Byte-compiling for ${FLAVOR}..."
+
+mkdir -p @PREFIX@/share/${1}/site-lisp/session
+cp @PREFIX@/share/emacs/site-lisp/session/session.el 
@PREFIX@/share/${1}/site-lisp/session/session.el
+
+cd @PREFIX@/share/${FLAVOR}/site-lisp/session
+(${FLAVOR} ${EFLAGS} session.el 2>&1) | gzip -9qf > 
@PREFIX@/share/doc/session-el/CompilationLog-${FLAVOR}.gz
+
+rm @PREFIX@/share/${FLAVOR}/site-lisp/session/*.el
+   
+echo >&2 "done."
+echo >&2 "install/session-el: Compilation log saved in 
@PREFIX@/share/doc/session-el/CompilationLog-${FLAVOR}.gz"
+
+exit 0
diff -Naur --exclude='*~' session/fink/emacsen-remove 
session.fink/fink/emacsen-remove
--- session/fink/emacsen-remove 1969-12-31 16:00:00.000000000 -0800
+++ session.fink/fink/emacsen-remove    2005-12-14 14:54:41.000000000 -0800
@@ -0,0 +1,28 @@
+#!/bin/bash -e
+#
+# This is the Fink version of the session-el emacs package.
+set -o posix
+
+FLAVOR=${1}
+
+echo >&2 "remove/session-el: Removing for ${FLAVOR}"
+
+if [ ${FLAVOR} == emacs ]
+then
+    echo "remove/session-el: Done"
+    exit 0
+fi
+
+if [ ${FLAVOR} == emacs20 ]
+    then
+    echo "remove/session-el: Skipping unsupported flavor ${FLAVOR}."
+    exit 0
+fi
+
+echo >&2 -n "remove/session-el: Purging byte-compiled files and compilation 
log for ${FLAVOR}... "
+rm -Rf @PREFIX@/share/${FLAVOR}/site-lisp/session
+rm -f @PREFIX@/share/doc/session-el/CompilationLog-${FLAVOR}.gz
+
+echo >&2 "done."
+
+exit 0

--- NEW FILE: session-el.info ---
Package: session-el
Version: 2.2a
Revision: 1
Description: Session management for emacs
Homepage: http://emacs-session.sourceforge.net
Source: mirror:sourceforge:emacs-session/session-%v.tar.gz
SourceDirectory: session
Source-MD5: eaef18c9cf11e31bd5b94c7aceda37c1
PatchScript: sed 's|@PREFIX@|%p|g' < %a/%n.patch | patch -p1
License: GPL
Maintainer: Jesse Alama <[EMAIL PROTECTED]>
DocFiles: INSTALL README lisp/ChangeLog fink/README.fink
PostInstScript: %p/lib/emacsen-common/emacs-package-install %n
PreRmScript: %p/lib/emacsen-common/emacs-package-remove %n
CompileScript: <<

<<
InstallScript: <<
  mkdir -p %i/share/emacs/site-lisp/session
  install -m 644 lisp/session.el %i/share/emacs/site-lisp/session
  mkdir -p %i/lib/emacsen-common/packages/install
  mkdir -p %i/lib/emacsen-common/packages/remove
  install -m 755 fink/emacsen-install %i/lib/emacsen-common/packages/install/%n
  install -m 755 fink/emacsen-remove %i/lib/emacsen-common/packages/remove/%n
<<
DescDetail: <<
When you start Emacs, package Session restores various variables
(e.g., input histories) from your last session. It also provides a
menu containing recently changed/visited files and restores the places
(e.g., point) of such a file when you revisit it.

To restore the variables, this package writes a session file
(~/.session) when you exit Emacs. The file includes the values of
variables which are automatically updated by Emacs during some editing
operations:

* Histories of user input. For example, strings used in a find/replace
  command, names of files you have visited, etc.

* Contents of registers, whether they are texts or buffer/file
  positions. Buffer positions are automatically converted to file
  positions.

* List of recently copied/cut text blocks to paste, global markers to
  jump to, and other so-called rings.

* List of recently changed files with their places and some
  buffer-local variables.

To restore the places of a recently changed/visited file when you
revisit it, this packages stores the places of a buffer in a special
variable (the list mentioned above) when you kill that buffer (this
includes exiting Emacs). Places are:

* Point (the cursor position) and mark (e.g., the opposite position
  when a region is highlighted). These places will be restored, but a
  region won't be made active.

* The position of the last change. A new command (bound to C-x C-/)
  can be used to jump to that position.

* The boundaries if only a part of a buffer was visible. Reopening the
  file will again restrict/narrow the editing operations to that
  region.

* Values of buffer-local variables. Useful for variables which control
  some temporary editing behavior, e.g., overwrite-mode.

As opposed to desktop.el and other packages, Session does not
automatically revisits all files from your last session, most of which
are not interesting anymore.
<<
DescUsage: <<
To get started, add the forms

  (require 'session)
  (session-initialize)

to your .emacs file (or whatever emacs initialization file you use).
<<


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to