]> git.pld-linux.org Git - packages/emacs.git/commitdiff
- patch from MDK.
authorkloczek <kloczek@pld-linux.org>
Sun, 4 Feb 2001 10:49:22 +0000 (10:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    emacs-expand.patch -> 1.1

emacs-expand.patch [new file with mode: 0644]

diff --git a/emacs-expand.patch b/emacs-expand.patch
new file mode 100644 (file)
index 0000000..8fdb7ac
--- /dev/null
@@ -0,0 +1,34 @@
+--- ./lisp/expand.el.fred      Fri Jan 29 15:12:00 1999
++++ ./lisp/expand.el   Mon Dec 20 07:32:00 1999
+@@ -364,8 +364,9 @@
+                         expand-pos (expand-list-to-markers expand-list)
+                         expand-list nil)))
+             (run-hooks 'expand-expand-hook)
+-            t))))
+-  )
++            t)
++        nil))
++    nil))
+ (defun expand-do-expansion ()
+   (delete-backward-char (length last-abbrev-text))
+--- ./src/abbrev.c.fred        Tue May 18 06:38:03 1999
++++ ./src/abbrev.c     Mon Dec 20 07:30:44 1999
+@@ -365,8 +365,15 @@
+   hook = XSYMBOL (sym)->function;
+   if (!NILP (hook))
+-    call0 (hook);
+-
++    {
++      /* If the expansion is a special one, use the return value from the hook
++       to know if the expansion happened. */
++      if (!NILP(call0 (hook)) || STRINGP(expansion))
++      return value;
++      else
++      return Qnil;
++    }
++  
+   return value;
+ }
This page took 0.065335 seconds and 4 git commands to generate.