Don't quote lambda expressions with `quote'.
This commit is contained in:
parent
782fc81943
commit
4f91a8160f
77 changed files with 466 additions and 493 deletions
|
@ -1,5 +1,7 @@
|
||||||
2011-05-23 Stefan Monnier <monnier@iro.umontreal.ca>
|
2011-05-23 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||||
|
|
||||||
|
* <lots-of-files>.el: Don't quote lambda expressions with `quote'.
|
||||||
|
|
||||||
* vc/smerge-mode.el (smerge-refine-subst): Don't deactivate the mark
|
* vc/smerge-mode.el (smerge-refine-subst): Don't deactivate the mark
|
||||||
(bug#8710).
|
(bug#8710).
|
||||||
|
|
||||||
|
|
|
@ -302,7 +302,7 @@ buffers where this is set to enable and disable widget
|
||||||
enhancements, directly.")
|
enhancements, directly.")
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(put 'allout-widgets-mode-inhibit 'safe-local-variable
|
(put 'allout-widgets-mode-inhibit 'safe-local-variable
|
||||||
(if (fboundp 'booleanp) 'booleanp '(lambda (x) (member x '(t nil)))))
|
(if (fboundp 'booleanp) 'booleanp (lambda (x) (member x '(t nil)))))
|
||||||
(make-variable-buffer-local 'allout-widgets-mode-inhibit)
|
(make-variable-buffer-local 'allout-widgets-mode-inhibit)
|
||||||
;;;_ = allout-inhibit-body-modification-hook
|
;;;_ = allout-inhibit-body-modification-hook
|
||||||
(defvar allout-inhibit-body-modification-hook nil
|
(defvar allout-inhibit-body-modification-hook nil
|
||||||
|
|
|
@ -416,7 +416,7 @@ where auto-fill occurs."
|
||||||
(make-variable-buffer-local 'allout-use-hanging-indents)
|
(make-variable-buffer-local 'allout-use-hanging-indents)
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(put 'allout-use-hanging-indents 'safe-local-variable
|
(put 'allout-use-hanging-indents 'safe-local-variable
|
||||||
(if (fboundp 'booleanp) 'booleanp '(lambda (x) (member x '(t nil)))))
|
(if (fboundp 'booleanp) 'booleanp (lambda (x) (member x '(t nil)))))
|
||||||
;;;_ = allout-reindent-bodies
|
;;;_ = allout-reindent-bodies
|
||||||
(defcustom allout-reindent-bodies (if allout-use-hanging-indents
|
(defcustom allout-reindent-bodies (if allout-use-hanging-indents
|
||||||
'text)
|
'text)
|
||||||
|
@ -435,7 +435,7 @@ those that do not have the variable `comment-start' set. A value of
|
||||||
(make-variable-buffer-local 'allout-reindent-bodies)
|
(make-variable-buffer-local 'allout-reindent-bodies)
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(put 'allout-reindent-bodies 'safe-local-variable
|
(put 'allout-reindent-bodies 'safe-local-variable
|
||||||
'(lambda (x) (memq x '(nil t text force))))
|
(lambda (x) (memq x '(nil t text force))))
|
||||||
|
|
||||||
;;;_ = allout-show-bodies
|
;;;_ = allout-show-bodies
|
||||||
(defcustom allout-show-bodies nil
|
(defcustom allout-show-bodies nil
|
||||||
|
@ -446,7 +446,7 @@ just the header."
|
||||||
(make-variable-buffer-local 'allout-show-bodies)
|
(make-variable-buffer-local 'allout-show-bodies)
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(put 'allout-show-bodies 'safe-local-variable
|
(put 'allout-show-bodies 'safe-local-variable
|
||||||
(if (fboundp 'booleanp) 'booleanp '(lambda (x) (member x '(t nil)))))
|
(if (fboundp 'booleanp) 'booleanp (lambda (x) (member x '(t nil)))))
|
||||||
|
|
||||||
;;;_ = allout-beginning-of-line-cycles
|
;;;_ = allout-beginning-of-line-cycles
|
||||||
(defcustom allout-beginning-of-line-cycles t
|
(defcustom allout-beginning-of-line-cycles t
|
||||||
|
@ -638,7 +638,7 @@ undesired.]"
|
||||||
:group 'allout)
|
:group 'allout)
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(put 'allout-use-mode-specific-leader 'safe-local-variable
|
(put 'allout-use-mode-specific-leader 'safe-local-variable
|
||||||
'(lambda (x) (or (memq x '(t nil allout-mode-leaders comment-start))
|
(lambda (x) (or (memq x '(t nil allout-mode-leaders comment-start))
|
||||||
(stringp x))))
|
(stringp x))))
|
||||||
;;;_ = allout-mode-leaders
|
;;;_ = allout-mode-leaders
|
||||||
(defvar allout-mode-leaders '()
|
(defvar allout-mode-leaders '()
|
||||||
|
@ -668,7 +668,7 @@ are always respected by the topic maneuvering functions."
|
||||||
(make-variable-buffer-local 'allout-old-style-prefixes)
|
(make-variable-buffer-local 'allout-old-style-prefixes)
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(put 'allout-old-style-prefixes 'safe-local-variable
|
(put 'allout-old-style-prefixes 'safe-local-variable
|
||||||
(if (fboundp 'booleanp) 'booleanp '(lambda (x) (member x '(t nil)))))
|
(if (fboundp 'booleanp) 'booleanp (lambda (x) (member x '(t nil)))))
|
||||||
;;;_ = allout-stylish-prefixes -- alternating bullets
|
;;;_ = allout-stylish-prefixes -- alternating bullets
|
||||||
(defcustom allout-stylish-prefixes t
|
(defcustom allout-stylish-prefixes t
|
||||||
"Do fancy stuff with topic prefix bullets according to level, etc.
|
"Do fancy stuff with topic prefix bullets according to level, etc.
|
||||||
|
@ -717,7 +717,7 @@ is non-nil."
|
||||||
(make-variable-buffer-local 'allout-stylish-prefixes)
|
(make-variable-buffer-local 'allout-stylish-prefixes)
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(put 'allout-stylish-prefixes 'safe-local-variable
|
(put 'allout-stylish-prefixes 'safe-local-variable
|
||||||
(if (fboundp 'booleanp) 'booleanp '(lambda (x) (member x '(t nil)))))
|
(if (fboundp 'booleanp) 'booleanp (lambda (x) (member x '(t nil)))))
|
||||||
|
|
||||||
;;;_ = allout-numbered-bullet
|
;;;_ = allout-numbered-bullet
|
||||||
(defcustom allout-numbered-bullet "#"
|
(defcustom allout-numbered-bullet "#"
|
||||||
|
@ -734,7 +734,7 @@ disables numbering maintenance."
|
||||||
(put 'allout-numbered-bullet 'safe-local-variable
|
(put 'allout-numbered-bullet 'safe-local-variable
|
||||||
(if (fboundp 'string-or-null-p)
|
(if (fboundp 'string-or-null-p)
|
||||||
'string-or-null-p
|
'string-or-null-p
|
||||||
'(lambda (x) (or (stringp x) (null x)))))
|
(lambda (x) (or (stringp x) (null x)))))
|
||||||
;;;_ = allout-file-xref-bullet
|
;;;_ = allout-file-xref-bullet
|
||||||
(defcustom allout-file-xref-bullet "@"
|
(defcustom allout-file-xref-bullet "@"
|
||||||
"Bullet signifying file cross-references, for `allout-resolve-xref'.
|
"Bullet signifying file cross-references, for `allout-resolve-xref'.
|
||||||
|
@ -746,7 +746,7 @@ Set this var to the bullet you want to use for file cross-references."
|
||||||
(put 'allout-file-xref-bullet 'safe-local-variable
|
(put 'allout-file-xref-bullet 'safe-local-variable
|
||||||
(if (fboundp 'string-or-null-p)
|
(if (fboundp 'string-or-null-p)
|
||||||
'string-or-null-p
|
'string-or-null-p
|
||||||
'(lambda (x) (or (stringp x) (null x)))))
|
(lambda (x) (or (stringp x) (null x)))))
|
||||||
;;;_ = allout-presentation-padding
|
;;;_ = allout-presentation-padding
|
||||||
(defcustom allout-presentation-padding 2
|
(defcustom allout-presentation-padding 2
|
||||||
"Presentation-format white-space padding factor, for greater indent."
|
"Presentation-format white-space padding factor, for greater indent."
|
||||||
|
@ -941,7 +941,7 @@ case the value of `allout-default-layout' is used.")
|
||||||
(make-variable-buffer-local 'allout-layout)
|
(make-variable-buffer-local 'allout-layout)
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(put 'allout-layout 'safe-local-variable
|
(put 'allout-layout 'safe-local-variable
|
||||||
'(lambda (x) (or (numberp x) (listp x) (memq x '(: * + -)))))
|
(lambda (x) (or (numberp x) (listp x) (memq x '(: * + -)))))
|
||||||
|
|
||||||
;;;_ : Topic header format
|
;;;_ : Topic header format
|
||||||
;;;_ = allout-regexp
|
;;;_ = allout-regexp
|
||||||
|
|
|
@ -415,16 +415,13 @@
|
||||||
|
|
||||||
|
|
||||||
(defmacro math-defsimplify (funcs &rest code)
|
(defmacro math-defsimplify (funcs &rest code)
|
||||||
(append '(progn)
|
(cons 'progn
|
||||||
(mapcar (function
|
(mapcar #'(lambda (func)
|
||||||
(lambda (func)
|
`(put ',func 'math-simplify
|
||||||
(list 'put (list 'quote func) ''math-simplify
|
(nconc
|
||||||
(list 'nconc
|
(get ',func 'math-simplify)
|
||||||
(list 'get (list 'quote func) ''math-simplify)
|
(list
|
||||||
(list 'list
|
#'(lambda (math-simplify-expr) ,@code)))))
|
||||||
(list 'function
|
|
||||||
(append '(lambda (math-simplify-expr))
|
|
||||||
code)))))))
|
|
||||||
(if (symbolp funcs) (list funcs) funcs))))
|
(if (symbolp funcs) (list funcs) funcs))))
|
||||||
(put 'math-defsimplify 'lisp-indent-hook 1)
|
(put 'math-defsimplify 'lisp-indent-hook 1)
|
||||||
|
|
||||||
|
|
|
@ -2872,32 +2872,24 @@ If X is not an error form, return 1."
|
||||||
|
|
||||||
(defmacro math-defintegral (funcs &rest code)
|
(defmacro math-defintegral (funcs &rest code)
|
||||||
(setq math-integral-cache nil)
|
(setq math-integral-cache nil)
|
||||||
(append '(progn)
|
(cons 'progn
|
||||||
(mapcar (function
|
(mapcar #'(lambda (func)
|
||||||
(lambda (func)
|
`(put ',func 'math-integral
|
||||||
(list 'put (list 'quote func) ''math-integral
|
(nconc
|
||||||
(list 'nconc
|
(get ',func 'math-integral)
|
||||||
(list 'get (list 'quote func) ''math-integral)
|
(list
|
||||||
(list 'list
|
#'(lambda (u) ,@code)))))
|
||||||
(list 'function
|
|
||||||
(append '(lambda (u))
|
|
||||||
code)))))))
|
|
||||||
(if (symbolp funcs) (list funcs) funcs))))
|
(if (symbolp funcs) (list funcs) funcs))))
|
||||||
(put 'math-defintegral 'lisp-indent-hook 1)
|
(put 'math-defintegral 'lisp-indent-hook 1)
|
||||||
|
|
||||||
(defmacro math-defintegral-2 (funcs &rest code)
|
(defmacro math-defintegral-2 (funcs &rest code)
|
||||||
(setq math-integral-cache nil)
|
(setq math-integral-cache nil)
|
||||||
(append '(progn)
|
(cons 'progn
|
||||||
(mapcar (function
|
(mapcar #'(lambda (func)
|
||||||
(lambda (func)
|
`(put ',func 'math-integral-2
|
||||||
(list 'put (list 'quote func) ''math-integral-2
|
`(nconc
|
||||||
(list 'nconc
|
(get ',func 'math-integral-2)
|
||||||
(list 'get (list 'quote func)
|
(list #'(lambda (u v) ,@code)))))
|
||||||
''math-integral-2)
|
|
||||||
(list 'list
|
|
||||||
(list 'function
|
|
||||||
(append '(lambda (u v))
|
|
||||||
code)))))))
|
|
||||||
(if (symbolp funcs) (list funcs) funcs))))
|
(if (symbolp funcs) (list funcs) funcs))))
|
||||||
(put 'math-defintegral-2 'lisp-indent-hook 1)
|
(put 'math-defintegral-2 'lisp-indent-hook 1)
|
||||||
|
|
||||||
|
|
|
@ -198,7 +198,7 @@ For example, use this to define the golden ratio number:
|
||||||
(setq calculator-user-registers '((?g . 1.61803398875)))
|
(setq calculator-user-registers '((?g . 1.61803398875)))
|
||||||
before you load calculator."
|
before you load calculator."
|
||||||
:type '(repeat (cons character number))
|
:type '(repeat (cons character number))
|
||||||
:set '(lambda (_ val)
|
:set (lambda (_ val)
|
||||||
(and (boundp 'calculator-registers)
|
(and (boundp 'calculator-registers)
|
||||||
(setq calculator-registers
|
(setq calculator-registers
|
||||||
(append val calculator-registers)))
|
(append val calculator-registers)))
|
||||||
|
@ -482,7 +482,7 @@ Used for repeating operations in calculator-repR/L.")
|
||||||
["Electric mode"
|
["Electric mode"
|
||||||
(progn (calculator-quit)
|
(progn (calculator-quit)
|
||||||
(setq calculator-restart-other-mode t)
|
(setq calculator-restart-other-mode t)
|
||||||
(run-with-timer 0.1 nil '(lambda () (message nil)))
|
(run-with-timer 0.1 nil (lambda () (message nil)))
|
||||||
;; the message from the menu will be visible,
|
;; the message from the menu will be visible,
|
||||||
;; couldn't make it go away...
|
;; couldn't make it go away...
|
||||||
(calculator))
|
(calculator))
|
||||||
|
@ -706,7 +706,7 @@ See the documentation for `calculator-mode' for more information."
|
||||||
(Electric-command-loop
|
(Electric-command-loop
|
||||||
'calculator-done
|
'calculator-done
|
||||||
;; can't use 'noprompt, bug in electric.el
|
;; can't use 'noprompt, bug in electric.el
|
||||||
'(lambda () 'noprompt)
|
(lambda () 'noprompt)
|
||||||
nil
|
nil
|
||||||
(lambda (x y) (calculator-update-display))))
|
(lambda (x y) (calculator-update-display))))
|
||||||
(and calculator-buffer
|
(and calculator-buffer
|
||||||
|
|
|
@ -228,7 +228,7 @@ dealing with untranslated filesystems."
|
||||||
;; directory separators changed to directory-sep-char.
|
;; directory separators changed to directory-sep-char.
|
||||||
(let ((name nil))
|
(let ((name nil))
|
||||||
(setq name (mapconcat
|
(setq name (mapconcat
|
||||||
'(lambda (char)
|
(lambda (char)
|
||||||
(if (and (<= ?A char) (<= char ?Z))
|
(if (and (<= ?A char) (<= char ?Z))
|
||||||
(char-to-string (+ (- char ?A) ?a))
|
(char-to-string (+ (- char ?A) ?a))
|
||||||
(char-to-string char)))
|
(char-to-string char)))
|
||||||
|
|
|
@ -72,7 +72,7 @@ The return value of this function is not used."
|
||||||
;; "Cause the named functions to be open-coded when called from compiled code.
|
;; "Cause the named functions to be open-coded when called from compiled code.
|
||||||
;; They will only be compiled open-coded when byte-compile-optimize is true."
|
;; They will only be compiled open-coded when byte-compile-optimize is true."
|
||||||
;; (cons 'eval-and-compile
|
;; (cons 'eval-and-compile
|
||||||
;; (mapcar '(lambda (x)
|
;; (mapcar (lambda (x)
|
||||||
;; (or (memq (get x 'byte-optimizer)
|
;; (or (memq (get x 'byte-optimizer)
|
||||||
;; '(nil byte-compile-inline-expand))
|
;; '(nil byte-compile-inline-expand))
|
||||||
;; (error
|
;; (error
|
||||||
|
@ -85,7 +85,7 @@ The return value of this function is not used."
|
||||||
;; (defmacro proclaim-notinline (&rest fns)
|
;; (defmacro proclaim-notinline (&rest fns)
|
||||||
;; "Cause the named functions to no longer be open-coded."
|
;; "Cause the named functions to no longer be open-coded."
|
||||||
;; (cons 'eval-and-compile
|
;; (cons 'eval-and-compile
|
||||||
;; (mapcar '(lambda (x)
|
;; (mapcar (lambda (x)
|
||||||
;; (if (eq (get x 'byte-optimizer) 'byte-compile-inline-expand)
|
;; (if (eq (get x 'byte-optimizer) 'byte-compile-inline-expand)
|
||||||
;; (put x 'byte-optimizer nil))
|
;; (put x 'byte-optimizer nil))
|
||||||
;; (list 'if (list 'eq (list 'get (list 'quote x) ''byte-optimizer)
|
;; (list 'if (list 'eq (list 'get (list 'quote x) ''byte-optimizer)
|
||||||
|
|
|
@ -639,7 +639,7 @@ SORT-PRED if desired."
|
||||||
extlst "File Extensions"
|
extlst "File Extensions"
|
||||||
cntlst "# of occurrences"
|
cntlst "# of occurrences"
|
||||||
10
|
10
|
||||||
'(lambda (a b) (> (cdr a) (cdr b))))
|
(lambda (a b) (> (cdr a) (cdr b))))
|
||||||
))
|
))
|
||||||
|
|
||||||
(defun chart-space-usage (d)
|
(defun chart-space-usage (d)
|
||||||
|
@ -669,7 +669,7 @@ SORT-PRED if desired."
|
||||||
nmlst "File Name"
|
nmlst "File Name"
|
||||||
cntlst "File Size"
|
cntlst "File Size"
|
||||||
10
|
10
|
||||||
'(lambda (a b) (> (cdr a) (cdr b))))
|
(lambda (a b) (> (cdr a) (cdr b))))
|
||||||
))
|
))
|
||||||
|
|
||||||
(defun chart-emacs-storage ()
|
(defun chart-emacs-storage ()
|
||||||
|
@ -737,7 +737,7 @@ SORT-PRED if desired."
|
||||||
nmlst "User Names"
|
nmlst "User Names"
|
||||||
cntlst "# of occurrences"
|
cntlst "# of occurrences"
|
||||||
10
|
10
|
||||||
'(lambda (a b) (> (cdr a) (cdr b))))
|
(lambda (a b) (> (cdr a) (cdr b))))
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -38,8 +38,7 @@
|
||||||
;; or [menu-bar emacs-lisp eval-buffer]. Additional key-bindings
|
;; or [menu-bar emacs-lisp eval-buffer]. Additional key-bindings
|
||||||
;; are also provided under C-c ? KEY
|
;; are also provided under C-c ? KEY
|
||||||
;; (require 'checkdoc)
|
;; (require 'checkdoc)
|
||||||
;; (add-hook 'emacs-lisp-mode-hook
|
;; (add-hook 'emacs-lisp-mode-hook 'checkdoc-minor-mode)
|
||||||
;; '(lambda () (checkdoc-minor-mode 1)))
|
|
||||||
;;
|
;;
|
||||||
;; Using `checkdoc':
|
;; Using `checkdoc':
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -251,7 +251,7 @@ OBJ should be a call to BYTE-CODE generated by the byte compiler."
|
||||||
((eq (car-safe (car-safe arg)) 'byte-code)
|
((eq (car-safe (car-safe arg)) 'byte-code)
|
||||||
(insert "(<byte code>...)\n")
|
(insert "(<byte code>...)\n")
|
||||||
(mapc ;recurse on list of byte-code objects
|
(mapc ;recurse on list of byte-code objects
|
||||||
'(lambda (obj)
|
(lambda (obj)
|
||||||
(disassemble-1
|
(disassemble-1
|
||||||
obj
|
obj
|
||||||
(+ indent disassemble-recursive-indent)))
|
(+ indent disassemble-recursive-indent)))
|
||||||
|
|
|
@ -29,13 +29,13 @@
|
||||||
;;;These forms are all considered safe
|
;;;These forms are all considered safe
|
||||||
(defconst testcover-unsafep-safe
|
(defconst testcover-unsafep-safe
|
||||||
'(((lambda (x) (* x 2)) 14)
|
'(((lambda (x) (* x 2)) 14)
|
||||||
(apply 'cdr (mapcar '(lambda (x) (car x)) y))
|
(apply 'cdr (mapcar (lambda (x) (car x)) y))
|
||||||
(cond ((= x 4) 5) (t 27))
|
(cond ((= x 4) 5) (t 27))
|
||||||
(condition-case x (car y) (error (car x)))
|
(condition-case x (car y) (error (car x)))
|
||||||
(dolist (x y) (message "here: %s" x))
|
(dolist (x y) (message "here: %s" x))
|
||||||
(dotimes (x 14 (* x 2)) (message "here: %d" x))
|
(dotimes (x 14 (* x 2)) (message "here: %d" x))
|
||||||
(let (x) (dolist (y '(1 2 3) (1+ y)) (push y x)))
|
(let (x) (dolist (y '(1 2 3) (1+ y)) (push y x)))
|
||||||
(let (x) (apply '(lambda (x) (* x 2)) 14))
|
(let (x) (apply (lambda (x) (* x 2)) 14))
|
||||||
(let ((x '(2))) (push 1 x) (pop x) (add-to-list 'x 2))
|
(let ((x '(2))) (push 1 x) (pop x) (add-to-list 'x 2))
|
||||||
(let ((x 1) (y 2)) (setq x (+ x y)))
|
(let ((x 1) (y 2)) (setq x (+ x y)))
|
||||||
(let ((x 1)) (let ((y (+ x 3))) (* x y)))
|
(let ((x 1)) (let ((y (+ x 3))) (* x y)))
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
. (function kill-buffer))
|
. (function kill-buffer))
|
||||||
( (mapcar x y)
|
( (mapcar x y)
|
||||||
. (unquoted x))
|
. (unquoted x))
|
||||||
( (mapcar '(lambda (x) (rename-file x "x")) '("unsafep.el"))
|
( (mapcar (lambda (x) (rename-file x "x")) '("unsafep.el"))
|
||||||
. (function rename-file))
|
. (function rename-file))
|
||||||
( (mapconcat x1 x2 " ")
|
( (mapconcat x1 x2 " ")
|
||||||
. (unquoted x1))
|
. (unquoted x1))
|
||||||
|
|
|
@ -609,12 +609,12 @@ If command is repeated at same position, delete the rectangle."
|
||||||
(let ((lines 0))
|
(let ((lines 0))
|
||||||
(if (not (cua--rectangle-virtual-edges))
|
(if (not (cua--rectangle-virtual-edges))
|
||||||
(cua--rectangle-operation nil nil t 2 t
|
(cua--rectangle-operation nil nil t 2 t
|
||||||
'(lambda (s e l r v)
|
(lambda (s e l r v)
|
||||||
(setq lines (1+ lines))
|
(setq lines (1+ lines))
|
||||||
(if (and (> e s) (<= e (point-max)))
|
(if (and (> e s) (<= e (point-max)))
|
||||||
(delete-region s e))))
|
(delete-region s e))))
|
||||||
(cua--rectangle-operation nil 1 t nil t
|
(cua--rectangle-operation nil 1 t nil t
|
||||||
'(lambda (s e l r v)
|
(lambda (s e l r v)
|
||||||
(setq lines (1+ lines))
|
(setq lines (1+ lines))
|
||||||
(when (and (> e s) (<= e (point-max)))
|
(when (and (> e s) (<= e (point-max)))
|
||||||
(delete-region s e)))))
|
(delete-region s e)))))
|
||||||
|
@ -624,10 +624,10 @@ If command is repeated at same position, delete the rectangle."
|
||||||
(let (rect)
|
(let (rect)
|
||||||
(if (not (cua--rectangle-virtual-edges))
|
(if (not (cua--rectangle-virtual-edges))
|
||||||
(cua--rectangle-operation nil nil nil nil nil ; do not tabify
|
(cua--rectangle-operation nil nil nil nil nil ; do not tabify
|
||||||
'(lambda (s e l r)
|
(lambda (s e l r)
|
||||||
(setq rect (cons (cua--filter-buffer-noprops s e) rect))))
|
(setq rect (cons (cua--filter-buffer-noprops s e) rect))))
|
||||||
(cua--rectangle-operation nil 1 nil nil nil ; do not tabify
|
(cua--rectangle-operation nil 1 nil nil nil ; do not tabify
|
||||||
'(lambda (s e l r v)
|
(lambda (s e l r v)
|
||||||
(let ((copy t) (bs 0) (as 0) row)
|
(let ((copy t) (bs 0) (as 0) row)
|
||||||
(if (= s e) (setq e (1+ e)))
|
(if (= s e) (setq e (1+ e)))
|
||||||
(goto-char s)
|
(goto-char s)
|
||||||
|
@ -750,7 +750,7 @@ If command is repeated at same position, delete the rectangle."
|
||||||
(when (/= left right)
|
(when (/= left right)
|
||||||
(sit-for 0) ; make window top/bottom reliable
|
(sit-for 0) ; make window top/bottom reliable
|
||||||
(cua--rectangle-operation nil t nil nil nil ; do not tabify
|
(cua--rectangle-operation nil t nil nil nil ; do not tabify
|
||||||
'(lambda (s e l r v)
|
(lambda (s e l r v)
|
||||||
(let ((rface (if v 'cua-rectangle 'cua-rectangle-noselect))
|
(let ((rface (if v 'cua-rectangle 'cua-rectangle-noselect))
|
||||||
overlay bs ms as)
|
overlay bs ms as)
|
||||||
(when (cua--rectangle-virtual-edges)
|
(when (cua--rectangle-virtual-edges)
|
||||||
|
@ -840,7 +840,7 @@ If command is repeated at same position, delete the rectangle."
|
||||||
(pad (cua--rectangle-virtual-edges))
|
(pad (cua--rectangle-virtual-edges))
|
||||||
indent)
|
indent)
|
||||||
(cua--rectangle-operation (if clear 'clear 'corners) nil t pad nil
|
(cua--rectangle-operation (if clear 'clear 'corners) nil t pad nil
|
||||||
'(lambda (s e l r)
|
(lambda (s e l r)
|
||||||
(move-to-column col pad)
|
(move-to-column col pad)
|
||||||
(if (and (eolp)
|
(if (and (eolp)
|
||||||
(< (current-column) col))
|
(< (current-column) col))
|
||||||
|
@ -852,7 +852,7 @@ If command is repeated at same position, delete the rectangle."
|
||||||
(if (cua--rectangle-right-side t)
|
(if (cua--rectangle-right-side t)
|
||||||
(cua--rectangle-insert-col (current-column))
|
(cua--rectangle-insert-col (current-column))
|
||||||
(setq indent (- (current-column) l))))
|
(setq indent (- (current-column) l))))
|
||||||
'(lambda (l r)
|
(lambda (l r)
|
||||||
(when (and indent (> indent 0))
|
(when (and indent (> indent 0))
|
||||||
(aset cua--rectangle 2 (+ l indent))
|
(aset cua--rectangle 2 (+ l indent))
|
||||||
(aset cua--rectangle 3 (+ r indent -1)))))))
|
(aset cua--rectangle 3 (+ r indent -1)))))))
|
||||||
|
@ -1000,7 +1000,7 @@ The text previously in the region is not overwritten by the blanks,
|
||||||
but instead winds up to the right of the rectangle."
|
but instead winds up to the right of the rectangle."
|
||||||
(interactive)
|
(interactive)
|
||||||
(cua--rectangle-operation 'corners nil t 1 nil
|
(cua--rectangle-operation 'corners nil t 1 nil
|
||||||
'(lambda (s e l r)
|
(lambda (s e l r)
|
||||||
(skip-chars-forward " \t")
|
(skip-chars-forward " \t")
|
||||||
(let ((ws (- (current-column) l))
|
(let ((ws (- (current-column) l))
|
||||||
(p (point)))
|
(p (point)))
|
||||||
|
@ -1015,7 +1015,7 @@ at that column is deleted.
|
||||||
With prefix arg, also delete whitespace to the left of that column."
|
With prefix arg, also delete whitespace to the left of that column."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(cua--rectangle-operation 'clear nil t 1 nil
|
(cua--rectangle-operation 'clear nil t 1 nil
|
||||||
'(lambda (s e l r)
|
(lambda (s e l r)
|
||||||
(when arg
|
(when arg
|
||||||
(skip-syntax-backward " " (line-beginning-position))
|
(skip-syntax-backward " " (line-beginning-position))
|
||||||
(setq s (point)))
|
(setq s (point)))
|
||||||
|
@ -1027,7 +1027,7 @@ With prefix arg, also delete whitespace to the left of that column."
|
||||||
The text previously in the rectangle is overwritten by the blanks."
|
The text previously in the rectangle is overwritten by the blanks."
|
||||||
(interactive)
|
(interactive)
|
||||||
(cua--rectangle-operation 'keep nil nil 1 nil
|
(cua--rectangle-operation 'keep nil nil 1 nil
|
||||||
'(lambda (s e l r)
|
(lambda (s e l r)
|
||||||
(goto-char e)
|
(goto-char e)
|
||||||
(skip-syntax-forward " " (line-end-position))
|
(skip-syntax-forward " " (line-end-position))
|
||||||
(setq e (point))
|
(setq e (point))
|
||||||
|
@ -1042,7 +1042,7 @@ The text previously in the rectangle is overwritten by the blanks."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let (x)
|
(let (x)
|
||||||
(cua--rectangle-operation 'clear nil t t nil
|
(cua--rectangle-operation 'clear nil t t nil
|
||||||
'(lambda (s e l r)
|
(lambda (s e l r)
|
||||||
(let ((b (line-beginning-position)))
|
(let ((b (line-beginning-position)))
|
||||||
(skip-syntax-backward "^ " b)
|
(skip-syntax-backward "^ " b)
|
||||||
(skip-syntax-backward " " b)
|
(skip-syntax-backward " " b)
|
||||||
|
@ -1050,7 +1050,7 @@ The text previously in the rectangle is overwritten by the blanks."
|
||||||
(skip-syntax-forward " " (line-end-position))
|
(skip-syntax-forward " " (line-end-position))
|
||||||
(delete-region s (point))
|
(delete-region s (point))
|
||||||
(indent-to l))
|
(indent-to l))
|
||||||
'(lambda (l r)
|
(lambda (l r)
|
||||||
(move-to-column l)
|
(move-to-column l)
|
||||||
;; (setq cua-save-point (point))
|
;; (setq cua-save-point (point))
|
||||||
))))
|
))))
|
||||||
|
@ -1087,7 +1087,7 @@ The text previously in the rectangle is overwritten by the blanks."
|
||||||
The length of STRING need not be the same as the rectangle width."
|
The length of STRING need not be the same as the rectangle width."
|
||||||
(interactive "sString rectangle: ")
|
(interactive "sString rectangle: ")
|
||||||
(cua--rectangle-operation 'keep nil t t nil
|
(cua--rectangle-operation 'keep nil t t nil
|
||||||
'(lambda (s e l r)
|
(lambda (s e l r)
|
||||||
(delete-region s e)
|
(delete-region s e)
|
||||||
(skip-chars-forward " \t")
|
(skip-chars-forward " \t")
|
||||||
(let ((ws (- (current-column) l)))
|
(let ((ws (- (current-column) l)))
|
||||||
|
@ -1095,14 +1095,14 @@ The length of STRING need not be the same as the rectangle width."
|
||||||
(insert string)
|
(insert string)
|
||||||
(indent-to (+ (current-column) ws))))
|
(indent-to (+ (current-column) ws))))
|
||||||
(unless (cua--rectangle-restriction)
|
(unless (cua--rectangle-restriction)
|
||||||
'(lambda (l r)
|
(lambda (l r)
|
||||||
(cua--rectangle-right (max l (+ l (length string) -1)))))))
|
(cua--rectangle-right (max l (+ l (length string) -1)))))))
|
||||||
|
|
||||||
(defun cua-fill-char-rectangle (character)
|
(defun cua-fill-char-rectangle (character)
|
||||||
"Replace CUA rectangle contents with CHARACTER."
|
"Replace CUA rectangle contents with CHARACTER."
|
||||||
(interactive "cFill rectangle with character: ")
|
(interactive "cFill rectangle with character: ")
|
||||||
(cua--rectangle-operation 'clear nil t 1 nil
|
(cua--rectangle-operation 'clear nil t 1 nil
|
||||||
'(lambda (s e l r)
|
(lambda (s e l r)
|
||||||
(delete-region s e)
|
(delete-region s e)
|
||||||
(move-to-column l t)
|
(move-to-column l t)
|
||||||
(insert-char character (- r l)))))
|
(insert-char character (- r l)))))
|
||||||
|
@ -1113,7 +1113,7 @@ The length of STRING need not be the same as the rectangle width."
|
||||||
(if buffer-read-only
|
(if buffer-read-only
|
||||||
(message "Cannot replace in read-only buffer")
|
(message "Cannot replace in read-only buffer")
|
||||||
(cua--rectangle-operation 'keep nil t 1 nil
|
(cua--rectangle-operation 'keep nil t 1 nil
|
||||||
'(lambda (s e l r)
|
(lambda (s e l r)
|
||||||
(if (re-search-forward regexp e t)
|
(if (re-search-forward regexp e t)
|
||||||
(replace-match newtext nil nil))))))
|
(replace-match newtext nil nil))))))
|
||||||
|
|
||||||
|
@ -1121,7 +1121,7 @@ The length of STRING need not be the same as the rectangle width."
|
||||||
"Increment each line of CUA rectangle by prefix amount."
|
"Increment each line of CUA rectangle by prefix amount."
|
||||||
(interactive "p")
|
(interactive "p")
|
||||||
(cua--rectangle-operation 'keep nil t 1 nil
|
(cua--rectangle-operation 'keep nil t 1 nil
|
||||||
'(lambda (s e l r)
|
(lambda (s e l r)
|
||||||
(cond
|
(cond
|
||||||
((re-search-forward "0x\\([0-9a-fA-F]+\\)" e t)
|
((re-search-forward "0x\\([0-9a-fA-F]+\\)" e t)
|
||||||
(let* ((txt (cua--filter-buffer-noprops (match-beginning 1) (match-end 1)))
|
(let* ((txt (cua--filter-buffer-noprops (match-beginning 1) (match-end 1)))
|
||||||
|
@ -1154,14 +1154,14 @@ The numbers are formatted according to the FORMAT string."
|
||||||
(setq format cua--rectangle-seq-format)
|
(setq format cua--rectangle-seq-format)
|
||||||
(setq cua--rectangle-seq-format format))
|
(setq cua--rectangle-seq-format format))
|
||||||
(cua--rectangle-operation 'clear nil t 1 nil
|
(cua--rectangle-operation 'clear nil t 1 nil
|
||||||
'(lambda (s e l r)
|
(lambda (s e l r)
|
||||||
(delete-region s e)
|
(delete-region s e)
|
||||||
(insert (format format first))
|
(insert (format format first))
|
||||||
(setq first (+ first incr)))))
|
(setq first (+ first incr)))))
|
||||||
|
|
||||||
(defmacro cua--convert-rectangle-as (command tabify)
|
(defmacro cua--convert-rectangle-as (command tabify)
|
||||||
`(cua--rectangle-operation 'clear nil nil nil ,tabify
|
`(cua--rectangle-operation 'clear nil nil nil ,tabify
|
||||||
'(lambda (s e l r)
|
(lambda (s e l r)
|
||||||
(,command s e))))
|
(,command s e))))
|
||||||
|
|
||||||
(defun cua-upcase-rectangle ()
|
(defun cua-upcase-rectangle ()
|
||||||
|
@ -1218,7 +1218,7 @@ The numbers are formatted according to the FORMAT string."
|
||||||
(if cua--debug
|
(if cua--debug
|
||||||
(print z auxbuf))
|
(print z auxbuf))
|
||||||
(cua--rectangle-operation nil nil t pad nil
|
(cua--rectangle-operation nil nil t pad nil
|
||||||
'(lambda (s e l r)
|
(lambda (s e l r)
|
||||||
(let (cc)
|
(let (cc)
|
||||||
(goto-char e)
|
(goto-char e)
|
||||||
(skip-chars-forward " \t")
|
(skip-chars-forward " \t")
|
||||||
|
@ -1266,7 +1266,7 @@ A numeric prefix argument is used a new width for the filled rectangle."
|
||||||
nil nil nil nil)))
|
nil nil nil nil)))
|
||||||
(cua--rectangle-aux-replace width t t t 1
|
(cua--rectangle-aux-replace width t t t 1
|
||||||
'cua--left-fill-rectangle
|
'cua--left-fill-rectangle
|
||||||
'(lambda () (insert text))))
|
(lambda () (insert text))))
|
||||||
|
|
||||||
(defun cua-refill-rectangle (width)
|
(defun cua-refill-rectangle (width)
|
||||||
"Fill contents of current rectagle.
|
"Fill contents of current rectagle.
|
||||||
|
@ -1285,7 +1285,7 @@ With prefix arg, replace rectangle with output from command."
|
||||||
nil nil nil
|
nil nil nil
|
||||||
'shell-command-history)))
|
'shell-command-history)))
|
||||||
(cua--rectangle-aux-replace -1 t t replace 1
|
(cua--rectangle-aux-replace -1 t t replace 1
|
||||||
'(lambda (s e)
|
(lambda (s e)
|
||||||
(shell-command-on-region s e command
|
(shell-command-on-region s e command
|
||||||
replace replace nil))))
|
replace replace nil))))
|
||||||
|
|
||||||
|
@ -1298,7 +1298,7 @@ With prefix arg, replace rectangle with output from command."
|
||||||
"Remove the first line of the rectangle and scroll remaining lines up."
|
"Remove the first line of the rectangle and scroll remaining lines up."
|
||||||
(interactive)
|
(interactive)
|
||||||
(cua--rectangle-aux-replace 0 t t t t
|
(cua--rectangle-aux-replace 0 t t t t
|
||||||
'(lambda (s e)
|
(lambda (s e)
|
||||||
(if (= (forward-line 1) 0)
|
(if (= (forward-line 1) 0)
|
||||||
(delete-region s (point))))))
|
(delete-region s (point))))))
|
||||||
|
|
||||||
|
@ -1307,7 +1307,7 @@ With prefix arg, replace rectangle with output from command."
|
||||||
The remaining lines are scrolled down, losing the last line."
|
The remaining lines are scrolled down, losing the last line."
|
||||||
(interactive)
|
(interactive)
|
||||||
(cua--rectangle-aux-replace 0 t t t t
|
(cua--rectangle-aux-replace 0 t t t t
|
||||||
'(lambda (s e)
|
(lambda (s e)
|
||||||
(goto-char s)
|
(goto-char s)
|
||||||
(insert "\n"))))
|
(insert "\n"))))
|
||||||
|
|
||||||
|
@ -1337,7 +1337,7 @@ With prefix arg, indent to that column."
|
||||||
(pad (cua--rectangle-virtual-edges))
|
(pad (cua--rectangle-virtual-edges))
|
||||||
indent)
|
indent)
|
||||||
(cua--rectangle-operation 'corners nil t pad nil
|
(cua--rectangle-operation 'corners nil t pad nil
|
||||||
'(lambda (s e l r)
|
(lambda (s e l r)
|
||||||
(move-to-column
|
(move-to-column
|
||||||
(if (cua--rectangle-right-side t)
|
(if (cua--rectangle-right-side t)
|
||||||
(max (1+ r) col) l)
|
(max (1+ r) col) l)
|
||||||
|
@ -1348,7 +1348,7 @@ With prefix arg, indent to that column."
|
||||||
(if (cua--rectangle-right-side t)
|
(if (cua--rectangle-right-side t)
|
||||||
(cua--rectangle-insert-col (current-column))
|
(cua--rectangle-insert-col (current-column))
|
||||||
(setq indent (- l (current-column))))))
|
(setq indent (- l (current-column))))))
|
||||||
'(lambda (l r)
|
(lambda (l r)
|
||||||
(when (and indent (> indent 0))
|
(when (and indent (> indent 0))
|
||||||
(aset cua--rectangle 2 (- l indent))
|
(aset cua--rectangle 2 (- l indent))
|
||||||
(aset cua--rectangle 3 (- r indent 1)))))))
|
(aset cua--rectangle 3 (- r indent 1)))))))
|
||||||
|
|
|
@ -1278,8 +1278,8 @@ kill modified buffers without asking."
|
||||||
|
|
||||||
(defun tpu-make-file-buffer-list (buffer-list)
|
(defun tpu-make-file-buffer-list (buffer-list)
|
||||||
"Return names from BUFFER-LIST excluding those beginning with a space or star."
|
"Return names from BUFFER-LIST excluding those beginning with a space or star."
|
||||||
(delq nil (mapcar '(lambda (b)
|
(delq nil (mapcar (lambda (b)
|
||||||
(if (or (= (aref (buffer-name b) 0) ? )
|
(if (or (= (aref (buffer-name b) 0) ?\s)
|
||||||
(= (aref (buffer-name b) 0) ?*)) nil b))
|
(= (aref (buffer-name b) 0) ?*)) nil b))
|
||||||
buffer-list)))
|
buffer-list)))
|
||||||
|
|
||||||
|
|
|
@ -1084,7 +1084,7 @@ as a Meta key and any number of multiple escapes are allowed."
|
||||||
"Function that implements ESC key in Viper emulation of Vi."
|
"Function that implements ESC key in Viper emulation of Vi."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((cmd (or (key-binding (viper-envelop-ESC-key))
|
(let ((cmd (or (key-binding (viper-envelop-ESC-key))
|
||||||
'(lambda () (interactive) (error "Viper bell")))))
|
(lambda () (interactive) (error "Viper bell")))))
|
||||||
|
|
||||||
;; call the actual function to execute ESC (if no other symbols followed)
|
;; call the actual function to execute ESC (if no other symbols followed)
|
||||||
;; or the key bound to the ESC sequence (if the sequence was issued
|
;; or the key bound to the ESC sequence (if the sequence was issued
|
||||||
|
|
|
@ -1080,7 +1080,7 @@ Otherwise return the normal value."
|
||||||
char-p (= (length base-key-name) 1))
|
char-p (= (length base-key-name) 1))
|
||||||
(setq mod-char-list
|
(setq mod-char-list
|
||||||
(mapcar
|
(mapcar
|
||||||
'(lambda (elt) (upcase (substring (symbol-name elt) 0 1)))
|
(lambda (elt) (upcase (substring (symbol-name elt) 0 1)))
|
||||||
modifiers))
|
modifiers))
|
||||||
(if char-p
|
(if char-p
|
||||||
(setq key-name
|
(setq key-name
|
||||||
|
@ -1153,7 +1153,7 @@ Otherwise return the normal value."
|
||||||
;; XEmacs only
|
;; XEmacs only
|
||||||
(defun viper-event-vector-p (vec)
|
(defun viper-event-vector-p (vec)
|
||||||
(and (vectorp vec)
|
(and (vectorp vec)
|
||||||
(eval (cons 'and (mapcar '(lambda (elt) (if (eventp elt) t)) vec)))))
|
(eval (cons 'and (mapcar (lambda (elt) (if (eventp elt) t)) vec)))))
|
||||||
|
|
||||||
|
|
||||||
;; check if vec is a vector of character symbols
|
;; check if vec is a vector of character symbols
|
||||||
|
@ -1239,7 +1239,7 @@ Arguments become related buffers. This function should normally be used in
|
||||||
the `Local variables' section of a file."
|
the `Local variables' section of a file."
|
||||||
(setq viper-related-files-and-buffers-ring
|
(setq viper-related-files-and-buffers-ring
|
||||||
(make-ring (1+ (length other-files-or-buffers))))
|
(make-ring (1+ (length other-files-or-buffers))))
|
||||||
(mapc '(lambda (elt)
|
(mapc (lambda (elt)
|
||||||
(viper-ring-insert viper-related-files-and-buffers-ring elt))
|
(viper-ring-insert viper-related-files-and-buffers-ring elt))
|
||||||
other-files-or-buffers)
|
other-files-or-buffers)
|
||||||
(viper-ring-insert viper-related-files-and-buffers-ring (buffer-name))
|
(viper-ring-insert viper-related-files-and-buffers-ring (buffer-name))
|
||||||
|
|
|
@ -851,13 +851,13 @@ It also can't undo some Viper settings."
|
||||||
;; over misspelled words (due to the overlay keymaps)
|
;; over misspelled words (due to the overlay keymaps)
|
||||||
(defvar flyspell-mode-hook)
|
(defvar flyspell-mode-hook)
|
||||||
(add-hook 'flyspell-mode-hook
|
(add-hook 'flyspell-mode-hook
|
||||||
'(lambda ()
|
(lambda ()
|
||||||
(define-key flyspell-mouse-map viper-ESC-key nil)))
|
(define-key flyspell-mouse-map viper-ESC-key nil)))
|
||||||
;; if viper is started from .emacs, it might be impossible to get certain
|
;; if viper is started from .emacs, it might be impossible to get certain
|
||||||
;; info about the display and windows until emacs initialization is complete
|
;; info about the display and windows until emacs initialization is complete
|
||||||
;; So do it via the window-setup-hook
|
;; So do it via the window-setup-hook
|
||||||
(add-hook 'window-setup-hook
|
(add-hook 'window-setup-hook
|
||||||
'(lambda ()
|
(lambda ()
|
||||||
(modify-frame-parameters
|
(modify-frame-parameters
|
||||||
(selected-frame)
|
(selected-frame)
|
||||||
(list (cons 'viper-vi-state-cursor-color
|
(list (cons 'viper-vi-state-cursor-color
|
||||||
|
|
|
@ -148,7 +148,7 @@ This option slows down recursive glob processing by quite a bit."
|
||||||
;; if this is a glob pattern than needs to be expanded, then it
|
;; if this is a glob pattern than needs to be expanded, then it
|
||||||
;; will need to expand each member of the resulting glob list
|
;; will need to expand each member of the resulting glob list
|
||||||
(add-to-list 'eshell-current-modifiers
|
(add-to-list 'eshell-current-modifiers
|
||||||
'(lambda (list)
|
(lambda (list)
|
||||||
(if (listp list)
|
(if (listp list)
|
||||||
(mapcar 'expand-file-name list)
|
(mapcar 'expand-file-name list)
|
||||||
(expand-file-name list)))))
|
(expand-file-name list)))))
|
||||||
|
|
|
@ -84,13 +84,13 @@ ordinary strings."
|
||||||
(?s . (eshell-pred-file-mode 4000)) ; setuid
|
(?s . (eshell-pred-file-mode 4000)) ; setuid
|
||||||
(?S . (eshell-pred-file-mode 2000)) ; setgid
|
(?S . (eshell-pred-file-mode 2000)) ; setgid
|
||||||
(?t . (eshell-pred-file-mode 1000)) ; sticky bit
|
(?t . (eshell-pred-file-mode 1000)) ; sticky bit
|
||||||
(?U . '(lambda (file) ; owned by effective uid
|
(?U . #'(lambda (file) ; owned by effective uid
|
||||||
(if (file-exists-p file)
|
(if (file-exists-p file)
|
||||||
(= (nth 2 (file-attributes file)) (user-uid)))))
|
(= (nth 2 (file-attributes file)) (user-uid)))))
|
||||||
;;; (?G . '(lambda (file) ; owned by effective gid
|
;; (?G . #'(lambda (file) ; owned by effective gid
|
||||||
;;; (if (file-exists-p file)
|
;; (if (file-exists-p file)
|
||||||
;;; (= (nth 2 (file-attributes file)) (user-uid)))))
|
;; (= (nth 2 (file-attributes file)) (user-uid)))))
|
||||||
(?* . '(lambda (file)
|
(?* . #'(lambda (file)
|
||||||
(and (file-regular-p file)
|
(and (file-regular-p file)
|
||||||
(not (file-symlink-p file))
|
(not (file-symlink-p file))
|
||||||
(file-executable-p file))))
|
(file-executable-p file))))
|
||||||
|
@ -111,36 +111,25 @@ The format of each entry is
|
||||||
(put 'eshell-predicate-alist 'risky-local-variable t)
|
(put 'eshell-predicate-alist 'risky-local-variable t)
|
||||||
|
|
||||||
(defcustom eshell-modifier-alist
|
(defcustom eshell-modifier-alist
|
||||||
'((?E . '(lambda (lst)
|
'((?E . #'(lambda (lst)
|
||||||
(mapcar
|
(mapcar
|
||||||
(function
|
(function
|
||||||
(lambda (str)
|
(lambda (str)
|
||||||
(eshell-stringify
|
(eshell-stringify
|
||||||
(car (eshell-parse-argument str))))) lst)))
|
(car (eshell-parse-argument str))))) lst)))
|
||||||
(?L . '(lambda (lst)
|
(?L . #'(lambda (lst) (mapcar 'downcase lst)))
|
||||||
(mapcar 'downcase lst)))
|
(?U . #'(lambda (lst) (mapcar 'upcase lst)))
|
||||||
(?U . '(lambda (lst)
|
(?C . #'(lambda (lst) (mapcar 'capitalize lst)))
|
||||||
(mapcar 'upcase lst)))
|
(?h . #'(lambda (lst) (mapcar 'file-name-directory lst)))
|
||||||
(?C . '(lambda (lst)
|
|
||||||
(mapcar 'capitalize lst)))
|
|
||||||
(?h . '(lambda (lst)
|
|
||||||
(mapcar 'file-name-directory lst)))
|
|
||||||
(?i . (eshell-include-members))
|
(?i . (eshell-include-members))
|
||||||
(?x . (eshell-include-members t))
|
(?x . (eshell-include-members t))
|
||||||
(?r . '(lambda (lst)
|
(?r . #'(lambda (lst) (mapcar 'file-name-sans-extension lst)))
|
||||||
(mapcar 'file-name-sans-extension lst)))
|
(?e . #'(lambda (lst) (mapcar 'file-name-extension lst)))
|
||||||
(?e . '(lambda (lst)
|
(?t . #'(lambda (lst) (mapcar 'file-name-nondirectory lst)))
|
||||||
(mapcar 'file-name-extension lst)))
|
(?q . #'(lambda (lst) (mapcar 'eshell-escape-arg lst)))
|
||||||
(?t . '(lambda (lst)
|
(?u . #'(lambda (lst) (eshell-uniqify-list lst)))
|
||||||
(mapcar 'file-name-nondirectory lst)))
|
(?o . #'(lambda (lst) (sort lst 'string-lessp)))
|
||||||
(?q . '(lambda (lst)
|
(?O . #'(lambda (lst) (nreverse (sort lst 'string-lessp))))
|
||||||
(mapcar 'eshell-escape-arg lst)))
|
|
||||||
(?u . '(lambda (lst)
|
|
||||||
(eshell-uniqify-list lst)))
|
|
||||||
(?o . '(lambda (lst)
|
|
||||||
(sort lst 'string-lessp)))
|
|
||||||
(?O . '(lambda (lst)
|
|
||||||
(nreverse (sort lst 'string-lessp))))
|
|
||||||
(?j . (eshell-join-members))
|
(?j . (eshell-join-members))
|
||||||
(?S . (eshell-split-members))
|
(?S . (eshell-split-members))
|
||||||
(?R . 'reverse)
|
(?R . 'reverse)
|
||||||
|
|
|
@ -278,7 +278,7 @@ The value `never' means do not make them."
|
||||||
:group 'backup
|
:group 'backup
|
||||||
:group 'vc)
|
:group 'vc)
|
||||||
(put 'version-control 'safe-local-variable
|
(put 'version-control 'safe-local-variable
|
||||||
'(lambda (x) (or (booleanp x) (equal x 'never))))
|
(lambda (x) (or (booleanp x) (equal x 'never))))
|
||||||
|
|
||||||
(defcustom dired-kept-versions 2
|
(defcustom dired-kept-versions 2
|
||||||
"When cleaning directory, number of versions to keep."
|
"When cleaning directory, number of versions to keep."
|
||||||
|
|
|
@ -1034,7 +1034,7 @@ articles in the thread.
|
||||||
(widget-create
|
(widget-create
|
||||||
'push-button
|
'push-button
|
||||||
:notify
|
:notify
|
||||||
'(lambda (&rest ignore)
|
(lambda (&rest ignore)
|
||||||
(let* ((info (assq gnus-agent-cat-name gnus-category-alist))
|
(let* ((info (assq gnus-agent-cat-name gnus-category-alist))
|
||||||
(widgets category-fields))
|
(widgets category-fields))
|
||||||
(while widgets
|
(while widgets
|
||||||
|
|
|
@ -151,8 +151,7 @@ DELAY is a string, giving the length of the time. Possible values are:
|
||||||
(when (gnus-group-entry group)
|
(when (gnus-group-entry group)
|
||||||
(gnus-activate-group group)
|
(gnus-activate-group group)
|
||||||
(add-hook 'message-send-hook
|
(add-hook 'message-send-hook
|
||||||
'(lambda ()
|
(lambda () (message-remove-header gnus-delay-header)))
|
||||||
(message-remove-header gnus-delay-header)))
|
|
||||||
(setq articles (nndraft-articles))
|
(setq articles (nndraft-articles))
|
||||||
(while (setq article (pop articles))
|
(while (setq article (pop articles))
|
||||||
(gnus-request-head article group)
|
(gnus-request-head article group)
|
||||||
|
|
|
@ -4357,7 +4357,7 @@ current display is used."
|
||||||
(switch-to-buffer gnus-group-buffer)
|
(switch-to-buffer gnus-group-buffer)
|
||||||
(funcall gnus-other-frame-function arg)
|
(funcall gnus-other-frame-function arg)
|
||||||
(add-hook 'gnus-exit-gnus-hook
|
(add-hook 'gnus-exit-gnus-hook
|
||||||
'(lambda nil
|
(lambda nil
|
||||||
(when (and (frame-live-p gnus-other-frame-object)
|
(when (and (frame-live-p gnus-other-frame-object)
|
||||||
(cdr (frame-list)))
|
(cdr (frame-list)))
|
||||||
(delete-frame gnus-other-frame-object))
|
(delete-frame gnus-other-frame-object))
|
||||||
|
|
|
@ -1025,9 +1025,8 @@ This is called when `global-highlight-changes-mode' is turned on."
|
||||||
;; (defun hilit-chg-debug-show (&optional beg end)
|
;; (defun hilit-chg-debug-show (&optional beg end)
|
||||||
;; (interactive)
|
;; (interactive)
|
||||||
;; (message "--- hilit-chg-debug-show ---")
|
;; (message "--- hilit-chg-debug-show ---")
|
||||||
;; (hilit-chg-map-changes '(lambda (prop start end)
|
;; (hilit-chg-map-changes (lambda (prop start end)
|
||||||
;; (message "%d-%d: %s" start end prop)
|
;; (message "%d-%d: %s" start end prop))
|
||||||
;; )
|
|
||||||
;; beg end
|
;; beg end
|
||||||
;; ))
|
;; ))
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -3903,7 +3903,7 @@ This is to make them appear as if they were \"virtual buffers\"."
|
||||||
(funcall f completion-list
|
(funcall f completion-list
|
||||||
:help-string "ido "
|
:help-string "ido "
|
||||||
:activate-callback
|
:activate-callback
|
||||||
'(lambda (x y z) (message "Doesn't work yet, sorry!"))))
|
(lambda (x y z) (message "Doesn't work yet, sorry!"))))
|
||||||
;; else running Emacs
|
;; else running Emacs
|
||||||
;;(add-hook 'completion-setup-hook 'completion-setup-function)
|
;;(add-hook 'completion-setup-hook 'completion-setup-function)
|
||||||
(display-completion-list completion-list)))))))
|
(display-completion-list completion-list)))))))
|
||||||
|
|
|
@ -62,7 +62,7 @@ the remaining prompts will be accidentally messed up. You may
|
||||||
wish to put something like the following in your `.emacs' file:
|
wish to put something like the following in your `.emacs' file:
|
||||||
|
|
||||||
\(add-hook 'ielm-mode-hook
|
\(add-hook 'ielm-mode-hook
|
||||||
'(lambda ()
|
(lambda ()
|
||||||
(define-key ielm-map \"\\C-w\" 'comint-kill-region)
|
(define-key ielm-map \"\\C-w\" 'comint-kill-region)
|
||||||
(define-key ielm-map [C-S-backspace]
|
(define-key ielm-map [C-S-backspace]
|
||||||
'comint-kill-whole-line)))
|
'comint-kill-whole-line)))
|
||||||
|
|
|
@ -2590,7 +2590,7 @@ tags to their respective image file. Internal function used by
|
||||||
;; `(,(nth 4 fattribs) ,(nth 7 fattribs) ,f)))
|
;; `(,(nth 4 fattribs) ,(nth 7 fattribs) ,f)))
|
||||||
;; (directory-files (image-dired-dir) t ".+\.thumb\..+$"))
|
;; (directory-files (image-dired-dir) t ".+\.thumb\..+$"))
|
||||||
;; ;; Sort function. Compare time between two files.
|
;; ;; Sort function. Compare time between two files.
|
||||||
;; '(lambda (l1 l2)
|
;; (lambda (l1 l2)
|
||||||
;; (time-less-p (car l1) (car l2)))))
|
;; (time-less-p (car l1) (car l2)))))
|
||||||
;; (dirsize (apply '+ (mapcar (lambda (x) (cadr x)) files))))
|
;; (dirsize (apply '+ (mapcar (lambda (x) (cadr x)) files))))
|
||||||
;; (while (> dirsize image-dired-dir-max-size)
|
;; (while (> dirsize image-dired-dir-max-size)
|
||||||
|
|
|
@ -2458,7 +2458,7 @@ should be made by `quail-build-decode-map' (which see)."
|
||||||
|
|
||||||
(define-button-type 'quail-keyboard-layout-button
|
(define-button-type 'quail-keyboard-layout-button
|
||||||
:supertype 'help-xref
|
:supertype 'help-xref
|
||||||
'help-function '(lambda (layout)
|
'help-function (lambda (layout)
|
||||||
(help-setup-xref `(quail-keyboard-layout-button ,layout)
|
(help-setup-xref `(quail-keyboard-layout-button ,layout)
|
||||||
nil)
|
nil)
|
||||||
(quail-show-keyboard-layout layout))
|
(quail-show-keyboard-layout layout))
|
||||||
|
|
|
@ -207,7 +207,7 @@
|
||||||
;; (delete-minibuffer-contents))
|
;; (delete-minibuffer-contents))
|
||||||
;;
|
;;
|
||||||
;; (add-hook 'iswitchb-define-mode-map-hook
|
;; (add-hook 'iswitchb-define-mode-map-hook
|
||||||
;; '(lambda () (define-key
|
;; (lambda () (define-key
|
||||||
;; iswitchb-mode-map "\C-o"
|
;; iswitchb-mode-map "\C-o"
|
||||||
;; 'iswitchb-exclude-nonmatching)))
|
;; 'iswitchb-exclude-nonmatching)))
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
|
|
||||||
;; Do it after subr, since both after-load-functions and add-hook are
|
;; Do it after subr, since both after-load-functions and add-hook are
|
||||||
;; implemented in subr.el.
|
;; implemented in subr.el.
|
||||||
(add-hook 'after-load-functions '(lambda (f) (garbage-collect)))
|
(add-hook 'after-load-functions (lambda (f) (garbage-collect)))
|
||||||
|
|
||||||
;; We specify .el in case someone compiled version.el by mistake.
|
;; We specify .el in case someone compiled version.el by mistake.
|
||||||
(load "version.el")
|
(load "version.el")
|
||||||
|
@ -304,7 +304,7 @@
|
||||||
(equal (nth 4 command-line-args) "bootstrap"))
|
(equal (nth 4 command-line-args) "bootstrap"))
|
||||||
(setcdr load-path nil))
|
(setcdr load-path nil))
|
||||||
|
|
||||||
(remove-hook 'after-load-functions '(lambda (f) (garbage-collect)))
|
(remove-hook 'after-load-functions (lambda (f) (garbage-collect)))
|
||||||
|
|
||||||
(setq inhibit-load-charset-map nil)
|
(setq inhibit-load-charset-map nil)
|
||||||
(clear-charset-maps)
|
(clear-charset-maps)
|
||||||
|
|
|
@ -227,7 +227,7 @@ usually do not have translators to read other languages for them.\n\n")
|
||||||
system-configuration-options "'\n\n"))
|
system-configuration-options "'\n\n"))
|
||||||
(insert "Important settings:\n")
|
(insert "Important settings:\n")
|
||||||
(mapc
|
(mapc
|
||||||
'(lambda (var)
|
(lambda (var)
|
||||||
(insert (format " value of $%s: %s\n" var (getenv var))))
|
(insert (format " value of $%s: %s\n" var (getenv var))))
|
||||||
'("LC_ALL" "LC_COLLATE" "LC_CTYPE" "LC_MESSAGES"
|
'("LC_ALL" "LC_COLLATE" "LC_CTYPE" "LC_MESSAGES"
|
||||||
"LC_MONETARY" "LC_NUMERIC" "LC_TIME" "LANG" "XMODIFIERS"))
|
"LC_MONETARY" "LC_NUMERIC" "LC_TIME" "LANG" "XMODIFIERS"))
|
||||||
|
|
|
@ -1437,7 +1437,7 @@ internal buffers will be reused and things will get confused."
|
||||||
)
|
)
|
||||||
|
|
||||||
(defcustom feedmail-queue-runner-mode-setter
|
(defcustom feedmail-queue-runner-mode-setter
|
||||||
'(lambda (&optional arg) (mail-mode))
|
(lambda (&optional arg) (mail-mode))
|
||||||
"A function to set the proper mode of a message file.
|
"A function to set the proper mode of a message file.
|
||||||
Called when the message is read back out of the queue directory with a single
|
Called when the message is read back out of the queue directory with a single
|
||||||
argument, the optional argument used in the call to
|
argument, the optional argument used in the call to
|
||||||
|
@ -1473,7 +1473,7 @@ set `mail-header-separator' to the value of
|
||||||
|
|
||||||
|
|
||||||
(defcustom feedmail-queue-runner-message-sender
|
(defcustom feedmail-queue-runner-message-sender
|
||||||
'(lambda (&optional arg) (mail-send))
|
(lambda (&optional arg) (mail-send))
|
||||||
"Function to initiate sending a message file.
|
"Function to initiate sending a message file.
|
||||||
Called for each message read back out of the queue directory with a
|
Called for each message read back out of the queue directory with a
|
||||||
single argument, the optional argument used in the call to
|
single argument, the optional argument used in the call to
|
||||||
|
@ -1491,7 +1491,7 @@ you really don't need that. Called with funcall, not call-interactively."
|
||||||
|
|
||||||
|
|
||||||
(defcustom feedmail-queue-runner-cleaner-upper
|
(defcustom feedmail-queue-runner-cleaner-upper
|
||||||
'(lambda (fqm-file &optional arg)
|
(lambda (fqm-file &optional arg)
|
||||||
(delete-file fqm-file)
|
(delete-file fqm-file)
|
||||||
(if arg (feedmail-say-chatter "Nuked %s" fqm-file)))
|
(if arg (feedmail-say-chatter "Nuked %s" fqm-file)))
|
||||||
"Function that will be called after a message has been sent.
|
"Function that will be called after a message has been sent.
|
||||||
|
@ -1642,7 +1642,7 @@ local gurus."
|
||||||
;; don't be overconfident about the name of the trace buffer
|
;; don't be overconfident about the name of the trace buffer
|
||||||
(tracer (concat "trace.*smtp.*" (regexp-quote smtpmail-smtp-server))))
|
(tracer (concat "trace.*smtp.*" (regexp-quote smtpmail-smtp-server))))
|
||||||
(mapcar
|
(mapcar
|
||||||
'(lambda (buffy)
|
(lambda (buffy)
|
||||||
(if (string-match tracer (buffer-name buffy))
|
(if (string-match tracer (buffer-name buffy))
|
||||||
(progn
|
(progn
|
||||||
(insert "SMTP Trace from " (buffer-name buffy) "\n---------------")
|
(insert "SMTP Trace from " (buffer-name buffy) "\n---------------")
|
||||||
|
@ -1667,7 +1667,7 @@ local gurus."
|
||||||
;; don't be overconfident about the name of the trace buffer
|
;; don't be overconfident about the name of the trace buffer
|
||||||
(tracer (concat "trace.*smtp.*" (regexp-quote smtp-server))))
|
(tracer (concat "trace.*smtp.*" (regexp-quote smtp-server))))
|
||||||
(mapcar
|
(mapcar
|
||||||
'(lambda (buffy)
|
(lambda (buffy)
|
||||||
(if (string-match tracer (buffer-name buffy))
|
(if (string-match tracer (buffer-name buffy))
|
||||||
(progn
|
(progn
|
||||||
(insert "SMTP Trace from " (buffer-name buffy) "\n---------------")
|
(insert "SMTP Trace from " (buffer-name buffy) "\n---------------")
|
||||||
|
@ -1996,7 +1996,7 @@ backup file names and the like)."
|
||||||
(if feedmail-queue-run-orderer
|
(if feedmail-queue-run-orderer
|
||||||
(setq list-of-possible-fqms (funcall feedmail-queue-run-orderer list-of-possible-fqms)))
|
(setq list-of-possible-fqms (funcall feedmail-queue-run-orderer list-of-possible-fqms)))
|
||||||
(mapc
|
(mapc
|
||||||
'(lambda (blobby)
|
(lambda (blobby)
|
||||||
(setq maybe-file (expand-file-name blobby feedmail-queue-directory))
|
(setq maybe-file (expand-file-name blobby feedmail-queue-directory))
|
||||||
(cond
|
(cond
|
||||||
((file-directory-p maybe-file) nil) ; don't care about subdirs
|
((file-directory-p maybe-file) nil) ; don't care about subdirs
|
||||||
|
@ -2238,7 +2238,7 @@ the counts."
|
||||||
;; iterate, counting things we find along the way in the directory
|
;; iterate, counting things we find along the way in the directory
|
||||||
(if (file-directory-p queue-directory)
|
(if (file-directory-p queue-directory)
|
||||||
(mapc
|
(mapc
|
||||||
'(lambda (blobby)
|
(lambda (blobby)
|
||||||
(cond
|
(cond
|
||||||
((file-directory-p blobby) nil) ; don't care about subdirs
|
((file-directory-p blobby) nil) ; don't care about subdirs
|
||||||
((feedmail-fqm-p blobby)
|
((feedmail-fqm-p blobby)
|
||||||
|
@ -2665,7 +2665,7 @@ fiddle-plex, as described in the documentation for the variable
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(if feedmail-enable-spray
|
(if feedmail-enable-spray
|
||||||
(mapcar
|
(mapcar
|
||||||
'(lambda (feedmail-spray-this-address)
|
(lambda (feedmail-spray-this-address)
|
||||||
(let ((spray-buffer (get-buffer-create " *FQM Outgoing Email Spray*")))
|
(let ((spray-buffer (get-buffer-create " *FQM Outgoing Email Spray*")))
|
||||||
(with-current-buffer spray-buffer
|
(with-current-buffer spray-buffer
|
||||||
(erase-buffer)
|
(erase-buffer)
|
||||||
|
|
|
@ -215,7 +215,7 @@ your primary spool is. If this fails, set it to something like
|
||||||
|
|
||||||
;; Mailing list inboxes
|
;; Mailing list inboxes
|
||||||
;; must have VM already loaded to get vm-folder-directory.
|
;; must have VM already loaded to get vm-folder-directory.
|
||||||
(mapcar '(lambda (s)
|
(mapcar (lambda (s)
|
||||||
"make the appropriate entry for vm-spool-files"
|
"make the appropriate entry for vm-spool-files"
|
||||||
(list
|
(list
|
||||||
(concat mspools-folder-directory s)
|
(concat mspools-folder-directory s)
|
||||||
|
|
|
@ -864,7 +864,7 @@ the user from the mailer."
|
||||||
(let ((l))
|
(let ((l))
|
||||||
(mapc
|
(mapc
|
||||||
;; remove duplicates
|
;; remove duplicates
|
||||||
'(lambda (e)
|
(lambda (e)
|
||||||
(unless (member e l)
|
(unless (member e l)
|
||||||
(push e l)))
|
(push e l)))
|
||||||
(split-string new-header-values
|
(split-string new-header-values
|
||||||
|
|
|
@ -638,7 +638,7 @@ filing messages."
|
||||||
(message "Making passwd aliases...")
|
(message "Making passwd aliases...")
|
||||||
(setq passwd-matches
|
(setq passwd-matches
|
||||||
(mapconcat
|
(mapconcat
|
||||||
'(lambda (elem)
|
(lambda (elem)
|
||||||
(if (or (string-match regexp (car elem))
|
(if (or (string-match regexp (car elem))
|
||||||
(string-match regexp (cadr elem)))
|
(string-match regexp (cadr elem)))
|
||||||
(format "%s: %s\n" (car elem) (cadr elem))))
|
(format "%s: %s\n" (car elem) (cadr elem))))
|
||||||
|
|
|
@ -933,7 +933,7 @@ finally GNU mailutils MH."
|
||||||
(t
|
(t
|
||||||
(message "Unknown variant %s; use %s"
|
(message "Unknown variant %s; use %s"
|
||||||
variant
|
variant
|
||||||
(mapconcat '(lambda (x) (format "%s" (car x)))
|
(mapconcat (lambda (x) (format "%s" (car x)))
|
||||||
(mh-variants) " or "))))))
|
(mh-variants) " or "))))))
|
||||||
|
|
||||||
(defcustom-mh mh-variant 'autodetect
|
(defcustom-mh mh-variant 'autodetect
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
"Help text for `mh-inc-spool-map'.")
|
"Help text for `mh-inc-spool-map'.")
|
||||||
|
|
||||||
(define-key mh-inc-spool-map "?"
|
(define-key mh-inc-spool-map "?"
|
||||||
'(lambda ()
|
(lambda ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(if mh-inc-spool-map-help
|
(if mh-inc-spool-map-help
|
||||||
(mh-help mh-inc-spool-map-help)
|
(mh-help mh-inc-spool-map-help)
|
||||||
|
|
|
@ -312,7 +312,7 @@ information can be used so that you can replace multiple
|
||||||
(delete-other-windows)
|
(delete-other-windows)
|
||||||
(pop-to-buffer (get-buffer-create "*MH-E Spammer Frequencies*"))
|
(pop-to-buffer (get-buffer-create "*MH-E Spammer Frequencies*"))
|
||||||
(erase-buffer)
|
(erase-buffer)
|
||||||
(maphash '(lambda (key value) ""
|
(maphash (lambda (key value) ""
|
||||||
(if (> value 2)
|
(if (> value 2)
|
||||||
(insert (format "%s %s\n" key value))))
|
(insert (format "%s %s\n" key value))))
|
||||||
domains)
|
domains)
|
||||||
|
|
|
@ -1637,7 +1637,7 @@ This action can be undone by running \\[undo]."
|
||||||
;; Do an alias lookup on recipients
|
;; Do an alias lookup on recipients
|
||||||
(message-options-set 'message-recipients
|
(message-options-set 'message-recipients
|
||||||
(mapconcat
|
(mapconcat
|
||||||
'(lambda (ali)
|
(lambda (ali)
|
||||||
(mail-strip-quoted-names (mh-alias-expand ali)))
|
(mail-strip-quoted-names (mh-alias-expand ali)))
|
||||||
(split-string (message-options-get 'message-recipients) "[, ]+")
|
(split-string (message-options-get 'message-recipients) "[, ]+")
|
||||||
", ")))
|
", ")))
|
||||||
|
|
|
@ -315,7 +315,7 @@ No buffers at all if less than 1 or nil (or any non-number)."
|
||||||
:set 'msb-custom-set
|
:set 'msb-custom-set
|
||||||
:group 'msb)
|
:group 'msb)
|
||||||
|
|
||||||
(defvar msb-horizontal-shift-function '(lambda () 0)
|
(defvar msb-horizontal-shift-function (lambda () 0)
|
||||||
"*Function that specifies how many pixels to shift the top menu leftwards.")
|
"*Function that specifies how many pixels to shift the top menu leftwards.")
|
||||||
|
|
||||||
(defcustom msb-display-invisible-buffers-p nil
|
(defcustom msb-display-invisible-buffers-p nil
|
||||||
|
|
|
@ -5448,7 +5448,7 @@ Other orders of $ and _ seem to all work just fine.")
|
||||||
;; base-versions
|
;; base-versions
|
||||||
;; (file-name-directory fn)))
|
;; (file-name-directory fn)))
|
||||||
;; (versions (mapcar
|
;; (versions (mapcar
|
||||||
;; '(lambda (arg)
|
;; (lambda (arg)
|
||||||
;; (if (and (string-match
|
;; (if (and (string-match
|
||||||
;; "[0-9]+$" arg bv-length)
|
;; "[0-9]+$" arg bv-length)
|
||||||
;; (= (match-beginning 0) bv-length))
|
;; (= (match-beginning 0) bv-length))
|
||||||
|
|
|
@ -121,7 +121,7 @@ See `dbus-registered-objects-table' for a description of the
|
||||||
hash table."
|
hash table."
|
||||||
(let (result)
|
(let (result)
|
||||||
(maphash
|
(maphash
|
||||||
'(lambda (key value) (add-to-list 'result (cons key value) 'append))
|
(lambda (key value) (add-to-list 'result (cons key value) 'append))
|
||||||
dbus-registered-objects-table)
|
dbus-registered-objects-table)
|
||||||
result))
|
result))
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@ usage: (dbus-name-owner-changed-handler service old-owner new-owner)"
|
||||||
;; Check whether SERVICE is a known name.
|
;; Check whether SERVICE is a known name.
|
||||||
(when (not (string-match "^:" service))
|
(when (not (string-match "^:" service))
|
||||||
(maphash
|
(maphash
|
||||||
'(lambda (key value)
|
(lambda (key value)
|
||||||
(dolist (elt value)
|
(dolist (elt value)
|
||||||
;; key has the structure (BUS INTERFACE MEMBER).
|
;; key has the structure (BUS INTERFACE MEMBER).
|
||||||
;; elt has the structure (UNAME SERVICE PATH HANDLER).
|
;; elt has the structure (UNAME SERVICE PATH HANDLER).
|
||||||
|
@ -825,7 +825,7 @@ be \"out\"."
|
||||||
(setq direction nil))
|
(setq direction nil))
|
||||||
;; Collect the signatures.
|
;; Collect the signatures.
|
||||||
(mapconcat
|
(mapconcat
|
||||||
'(lambda (x)
|
(lambda (x)
|
||||||
(let ((arg (dbus-introspect-get-argument
|
(let ((arg (dbus-introspect-get-argument
|
||||||
bus service path interface name x)))
|
bus service path interface name x)))
|
||||||
(if (or (not (stringp direction))
|
(if (or (not (stringp direction))
|
||||||
|
|
|
@ -44,7 +44,7 @@ If SILENT is non-nil then the created BBDB record is not displayed."
|
||||||
;; This function runs in a special context where lisp symbols corresponding
|
;; This function runs in a special context where lisp symbols corresponding
|
||||||
;; to field names in record are bound to the corresponding values
|
;; to field names in record are bound to the corresponding values
|
||||||
(eval
|
(eval
|
||||||
`(let* (,@(mapcar '(lambda (c)
|
`(let* (,@(mapcar (lambda (c)
|
||||||
(list (car c) (if (listp (cdr c))
|
(list (car c) (if (listp (cdr c))
|
||||||
(list 'quote (cdr c))
|
(list 'quote (cdr c))
|
||||||
(cdr c))))
|
(cdr c))))
|
||||||
|
@ -108,7 +108,7 @@ If RECURSE is non-nil then SPEC may be a list of atomic specs."
|
||||||
(void-variable nil)))
|
(void-variable nil)))
|
||||||
((and recurse
|
((and recurse
|
||||||
(listp spec))
|
(listp spec))
|
||||||
(mapcar '(lambda (spec-elem)
|
(mapcar (lambda (spec-elem)
|
||||||
(eudc-parse-spec spec-elem record nil))
|
(eudc-parse-spec spec-elem record nil))
|
||||||
spec))
|
spec))
|
||||||
(t
|
(t
|
||||||
|
|
|
@ -89,7 +89,7 @@ These are the special commands of this mode:
|
||||||
"------" gap "--------\n"
|
"------" gap "--------\n"
|
||||||
"\n")
|
"\n")
|
||||||
(setq eudc-hotlist-list-beginning (point))
|
(setq eudc-hotlist-list-beginning (point))
|
||||||
(mapc '(lambda (entry)
|
(mapc (lambda (entry)
|
||||||
(insert (car entry))
|
(insert (car entry))
|
||||||
(indent-to proto-col)
|
(indent-to proto-col)
|
||||||
(insert (symbol-name (cdr entry)) "\n"))
|
(insert (symbol-name (cdr entry)) "\n"))
|
||||||
|
@ -103,7 +103,7 @@ These are the special commands of this mode:
|
||||||
(error "Not in a EUDC hotlist edit buffer"))
|
(error "Not in a EUDC hotlist edit buffer"))
|
||||||
(let ((server (read-from-minibuffer "Server: "))
|
(let ((server (read-from-minibuffer "Server: "))
|
||||||
(protocol (completing-read "Protocol: "
|
(protocol (completing-read "Protocol: "
|
||||||
(mapcar '(lambda (elt)
|
(mapcar (lambda (elt)
|
||||||
(cons (symbol-name elt)
|
(cons (symbol-name elt)
|
||||||
elt))
|
elt))
|
||||||
eudc-known-protocols)))
|
eudc-known-protocols)))
|
||||||
|
|
|
@ -351,7 +351,7 @@ accordingly. Otherwise it is set to its EUDC default binding"
|
||||||
The translation is done according to
|
The translation is done according to
|
||||||
`eudc-protocol-attributes-translation-alist'."
|
`eudc-protocol-attributes-translation-alist'."
|
||||||
(if eudc-protocol-attributes-translation-alist
|
(if eudc-protocol-attributes-translation-alist
|
||||||
(mapcar '(lambda (attribute)
|
(mapcar (lambda (attribute)
|
||||||
(let ((trans (assq (car attribute)
|
(let ((trans (assq (car attribute)
|
||||||
(symbol-value eudc-protocol-attributes-translation-alist))))
|
(symbol-value eudc-protocol-attributes-translation-alist))))
|
||||||
(if trans
|
(if trans
|
||||||
|
@ -366,7 +366,7 @@ The translation is done according to
|
||||||
`eudc-protocol-attributes-translation-alist'."
|
`eudc-protocol-attributes-translation-alist'."
|
||||||
(if eudc-protocol-attributes-translation-alist
|
(if eudc-protocol-attributes-translation-alist
|
||||||
(let (trans)
|
(let (trans)
|
||||||
(mapcar '(lambda (attribute)
|
(mapcar (lambda (attribute)
|
||||||
(setq trans (assq attribute
|
(setq trans (assq attribute
|
||||||
(symbol-value eudc-protocol-attributes-translation-alist)))
|
(symbol-value eudc-protocol-attributes-translation-alist)))
|
||||||
(if trans
|
(if trans
|
||||||
|
@ -692,7 +692,7 @@ server for future sessions."
|
||||||
(interactive (list
|
(interactive (list
|
||||||
(read-from-minibuffer "Directory Server: ")
|
(read-from-minibuffer "Directory Server: ")
|
||||||
(intern (completing-read "Protocol: "
|
(intern (completing-read "Protocol: "
|
||||||
(mapcar '(lambda (elt)
|
(mapcar (lambda (elt)
|
||||||
(cons (symbol-name elt)
|
(cons (symbol-name elt)
|
||||||
elt))
|
elt))
|
||||||
eudc-known-protocols)))))
|
eudc-known-protocols)))))
|
||||||
|
@ -796,7 +796,7 @@ If none try N - 1 and so forth."
|
||||||
(> n 0))
|
(> n 0))
|
||||||
(setq formats
|
(setq formats
|
||||||
(delq nil
|
(delq nil
|
||||||
(mapcar '(lambda (format)
|
(mapcar (lambda (format)
|
||||||
(if (= n
|
(if (= n
|
||||||
(length format))
|
(length format))
|
||||||
format
|
format
|
||||||
|
|
|
@ -73,14 +73,13 @@
|
||||||
"Return RECORD if it matches `eudc-bbdb-current-query', nil otherwise."
|
"Return RECORD if it matches `eudc-bbdb-current-query', nil otherwise."
|
||||||
(catch 'unmatch
|
(catch 'unmatch
|
||||||
(progn
|
(progn
|
||||||
(mapc
|
(dolist (condition eudc-bbdb-current-query)
|
||||||
(function
|
|
||||||
(lambda (condition)
|
|
||||||
(let ((attr (car condition))
|
(let ((attr (car condition))
|
||||||
(val (cdr condition))
|
(val (cdr condition))
|
||||||
(case-fold-search t)
|
(case-fold-search t)
|
||||||
bbdb-val)
|
bbdb-val)
|
||||||
(or (and (memq attr '(firstname lastname aka company phones addresses net))
|
(or (and (memq attr '(firstname lastname aka company phones
|
||||||
|
addresses net))
|
||||||
(progn
|
(progn
|
||||||
(setq bbdb-val
|
(setq bbdb-val
|
||||||
(eval (list (intern (concat "bbdb-record-"
|
(eval (list (intern (concat "bbdb-record-"
|
||||||
|
@ -88,17 +87,15 @@
|
||||||
'record)))
|
'record)))
|
||||||
(if (listp bbdb-val)
|
(if (listp bbdb-val)
|
||||||
(if eudc-bbdb-enable-substring-matches
|
(if eudc-bbdb-enable-substring-matches
|
||||||
(eval `(or ,@(mapcar '(lambda (subval)
|
(eval `(or ,@(mapcar (lambda (subval)
|
||||||
(string-match val
|
(string-match val subval))
|
||||||
subval))
|
|
||||||
bbdb-val)))
|
bbdb-val)))
|
||||||
(member (downcase val)
|
(member (downcase val)
|
||||||
(mapcar 'downcase bbdb-val)))
|
(mapcar 'downcase bbdb-val)))
|
||||||
(if eudc-bbdb-enable-substring-matches
|
(if eudc-bbdb-enable-substring-matches
|
||||||
(string-match val bbdb-val)
|
(string-match val bbdb-val)
|
||||||
(string-equal (downcase val) (downcase bbdb-val))))))
|
(string-equal (downcase val) (downcase bbdb-val))))))
|
||||||
(throw 'unmatch nil)))))
|
(throw 'unmatch nil))))
|
||||||
eudc-bbdb-current-query)
|
|
||||||
record)))
|
record)))
|
||||||
|
|
||||||
;; External.
|
;; External.
|
||||||
|
|
|
@ -172,7 +172,7 @@ attribute names are returned. Default to `person'"
|
||||||
"Format the EUDC QUERY list as a RFC1558 LDAP search filter."
|
"Format the EUDC QUERY list as a RFC1558 LDAP search filter."
|
||||||
(format "(&%s)"
|
(format "(&%s)"
|
||||||
(apply 'concat
|
(apply 'concat
|
||||||
(mapcar '(lambda (item)
|
(mapcar (lambda (item)
|
||||||
(format "(%s=%s)"
|
(format "(%s=%s)"
|
||||||
(car item)
|
(car item)
|
||||||
(eudc-ldap-escape-query-special-chars (cdr item))))
|
(eudc-ldap-escape-query-special-chars (cdr item))))
|
||||||
|
|
|
@ -176,7 +176,7 @@ Remove also properties of all files in subdirectories."
|
||||||
'directory-file-name (list directory))))
|
'directory-file-name (list directory))))
|
||||||
(tramp-message vec 8 "%s" directory)
|
(tramp-message vec 8 "%s" directory)
|
||||||
(maphash
|
(maphash
|
||||||
'(lambda (key value)
|
(lambda (key value)
|
||||||
(when (and (stringp (tramp-file-name-localname key))
|
(when (and (stringp (tramp-file-name-localname key))
|
||||||
(string-match directory (tramp-file-name-localname key)))
|
(string-match directory (tramp-file-name-localname key)))
|
||||||
(remhash key tramp-cache-data)))
|
(remhash key tramp-cache-data)))
|
||||||
|
@ -199,7 +199,7 @@ Remove also properties of all files in subdirectories."
|
||||||
(add-hook 'eshell-pre-command-hook 'tramp-flush-file-function)
|
(add-hook 'eshell-pre-command-hook 'tramp-flush-file-function)
|
||||||
(add-hook 'kill-buffer-hook 'tramp-flush-file-function)
|
(add-hook 'kill-buffer-hook 'tramp-flush-file-function)
|
||||||
(add-hook 'tramp-cache-unload-hook
|
(add-hook 'tramp-cache-unload-hook
|
||||||
'(lambda ()
|
(lambda ()
|
||||||
(remove-hook 'before-revert-hook
|
(remove-hook 'before-revert-hook
|
||||||
'tramp-flush-file-function)
|
'tramp-flush-file-function)
|
||||||
(remove-hook 'eshell-pre-command-hook
|
(remove-hook 'eshell-pre-command-hook
|
||||||
|
@ -289,7 +289,7 @@ KEY identifies the connection, it is either a process or a vector."
|
||||||
(when (hash-table-p table)
|
(when (hash-table-p table)
|
||||||
(let (result)
|
(let (result)
|
||||||
(maphash
|
(maphash
|
||||||
'(lambda (key value)
|
(lambda (key value)
|
||||||
(let ((tmp (format
|
(let ((tmp (format
|
||||||
"(%s %s)"
|
"(%s %s)"
|
||||||
(if (processp key)
|
(if (processp key)
|
||||||
|
@ -309,7 +309,7 @@ KEY identifies the connection, it is either a process or a vector."
|
||||||
"Return a list of all known connection vectors according to `tramp-cache'."
|
"Return a list of all known connection vectors according to `tramp-cache'."
|
||||||
(let (result)
|
(let (result)
|
||||||
(maphash
|
(maphash
|
||||||
'(lambda (key value)
|
(lambda (key value)
|
||||||
(when (and (vectorp key) (null (aref key 3)))
|
(when (and (vectorp key) (null (aref key 3)))
|
||||||
(add-to-list 'result key)))
|
(add-to-list 'result key)))
|
||||||
tramp-cache-data)
|
tramp-cache-data)
|
||||||
|
@ -326,7 +326,7 @@ KEY identifies the connection, it is either a process or a vector."
|
||||||
(let ((cache (copy-hash-table tramp-cache-data)))
|
(let ((cache (copy-hash-table tramp-cache-data)))
|
||||||
;; Remove temporary data.
|
;; Remove temporary data.
|
||||||
(maphash
|
(maphash
|
||||||
'(lambda (key value)
|
(lambda (key value)
|
||||||
(if (and (vectorp key) (not (tramp-file-name-localname key)))
|
(if (and (vectorp key) (not (tramp-file-name-localname key)))
|
||||||
(progn
|
(progn
|
||||||
(remhash "process-name" value)
|
(remhash "process-name" value)
|
||||||
|
@ -356,7 +356,7 @@ KEY identifies the connection, it is either a process or a vector."
|
||||||
(unless noninteractive
|
(unless noninteractive
|
||||||
(add-hook 'kill-emacs-hook 'tramp-dump-connection-properties))
|
(add-hook 'kill-emacs-hook 'tramp-dump-connection-properties))
|
||||||
(add-hook 'tramp-cache-unload-hook
|
(add-hook 'tramp-cache-unload-hook
|
||||||
'(lambda ()
|
(lambda ()
|
||||||
(remove-hook 'kill-emacs-hook
|
(remove-hook 'kill-emacs-hook
|
||||||
'tramp-dump-connection-properties)))
|
'tramp-dump-connection-properties)))
|
||||||
|
|
||||||
|
@ -367,7 +367,7 @@ This function is added always in `tramp-get-completion-function'
|
||||||
for all methods. Resulting data are derived from connection history."
|
for all methods. Resulting data are derived from connection history."
|
||||||
(let (res)
|
(let (res)
|
||||||
(maphash
|
(maphash
|
||||||
'(lambda (key value)
|
(lambda (key value)
|
||||||
(if (and (vectorp key)
|
(if (and (vectorp key)
|
||||||
(string-equal method (tramp-file-name-method key))
|
(string-equal method (tramp-file-name-method key))
|
||||||
(not (tramp-file-name-localname key)))
|
(not (tramp-file-name-localname key)))
|
||||||
|
|
|
@ -258,7 +258,7 @@ buffer in your bug report.
|
||||||
(dolist (buffer
|
(dolist (buffer
|
||||||
(delq nil
|
(delq nil
|
||||||
(mapcar
|
(mapcar
|
||||||
'(lambda (b)
|
(lambda (b)
|
||||||
(when (string-match "\\*tramp/" (buffer-name b)) b))
|
(when (string-match "\\*tramp/" (buffer-name b)) b))
|
||||||
(buffer-list))))
|
(buffer-list))))
|
||||||
(let ((reporter-eval-buffer buffer)
|
(let ((reporter-eval-buffer buffer)
|
||||||
|
|
|
@ -121,7 +121,7 @@ present for backward compatibility."
|
||||||
;; handling.
|
;; handling.
|
||||||
(put 'substitute-in-file-name 'ange-ftp 'tramp-handle-substitute-in-file-name)
|
(put 'substitute-in-file-name 'ange-ftp 'tramp-handle-substitute-in-file-name)
|
||||||
(add-hook 'tramp-ftp-unload-hook
|
(add-hook 'tramp-ftp-unload-hook
|
||||||
'(lambda ()
|
(lambda ()
|
||||||
(setplist 'substitute-in-file-name
|
(setplist 'substitute-in-file-name
|
||||||
(delete 'ange-ftp
|
(delete 'ange-ftp
|
||||||
(delete 'tramp-handle-substitute-in-file-name
|
(delete 'tramp-handle-substitute-in-file-name
|
||||||
|
|
|
@ -447,7 +447,7 @@ Please submit bug reports and other feedback to the author, Neil W. Van Dyke
|
||||||
(or (null str) (string-match "^[ \t]*$" str)))
|
(or (null str) (string-match "^[ \t]*$" str)))
|
||||||
|
|
||||||
(defun webjump-url-encode (str)
|
(defun webjump-url-encode (str)
|
||||||
(mapconcat '(lambda (c)
|
(mapconcat (lambda (c)
|
||||||
(let ((s (char-to-string c)))
|
(let ((s (char-to-string c)))
|
||||||
(cond ((string= s " ") "+")
|
(cond ((string= s " ") "+")
|
||||||
((string-match "[a-zA-Z_.-/]" s) s)
|
((string-match "[a-zA-Z_.-/]" s) s)
|
||||||
|
|
|
@ -369,7 +369,7 @@ publishing directory."
|
||||||
(push (concat (nth 3 lang-words) "\n") thetoc)
|
(push (concat (nth 3 lang-words) "\n") thetoc)
|
||||||
(push (concat (make-string (string-width (nth 3 lang-words)) ?=)
|
(push (concat (make-string (string-width (nth 3 lang-words)) ?=)
|
||||||
"\n") thetoc)
|
"\n") thetoc)
|
||||||
(mapc '(lambda (line)
|
(mapc (lambda (line)
|
||||||
(if (string-match org-todo-line-regexp
|
(if (string-match org-todo-line-regexp
|
||||||
line)
|
line)
|
||||||
;; This is a headline
|
;; This is a headline
|
||||||
|
|
|
@ -246,7 +246,7 @@ This checks for the existence of a \".git\" directory in that directory."
|
||||||
(cd dir)
|
(cd dir)
|
||||||
(shell-command "git add .")
|
(shell-command "git add .")
|
||||||
(shell-command "git ls-files --deleted" t)
|
(shell-command "git ls-files --deleted" t)
|
||||||
(mapc '(lambda (file)
|
(mapc (lambda (file)
|
||||||
(unless (string= file "")
|
(unless (string= file "")
|
||||||
(shell-command
|
(shell-command
|
||||||
(concat "git rm \"" file "\""))))
|
(concat "git rm \"" file "\""))))
|
||||||
|
|
|
@ -2136,7 +2136,7 @@ TYPE must be a string, any of:
|
||||||
markup (org-symname-or-string (pop params))
|
markup (org-symname-or-string (pop params))
|
||||||
lang (and (member markup '("src" "SRC"))
|
lang (and (member markup '("src" "SRC"))
|
||||||
(org-symname-or-string (pop params)))
|
(org-symname-or-string (pop params)))
|
||||||
switches (mapconcat '(lambda (x) (format "%s" x)) params " ")
|
switches (mapconcat (lambda (x) (format "%s" x)) params " ")
|
||||||
start nil end nil)
|
start nil end nil)
|
||||||
(delete-region (match-beginning 0) (match-end 0))
|
(delete-region (match-beginning 0) (match-end 0))
|
||||||
(if (or (not file)
|
(if (or (not file)
|
||||||
|
|
|
@ -1090,7 +1090,7 @@ lang=\"%s\" xml:lang=\"%s\">
|
||||||
(push "<div id=\"text-table-of-contents\">\n" thetoc)
|
(push "<div id=\"text-table-of-contents\">\n" thetoc)
|
||||||
(push "<ul>\n<li>" thetoc)
|
(push "<ul>\n<li>" thetoc)
|
||||||
(setq lines
|
(setq lines
|
||||||
(mapcar '(lambda (line)
|
(mapcar (lambda (line)
|
||||||
(if (and (string-match org-todo-line-regexp line)
|
(if (and (string-match org-todo-line-regexp line)
|
||||||
(not (get-text-property 0 'org-protected line)))
|
(not (get-text-property 0 'org-protected line)))
|
||||||
;; This is a headline
|
;; This is a headline
|
||||||
|
|
|
@ -526,7 +526,7 @@ SCHEDULED: or DEADLINE: or ANYTHINGLIKETHIS:"
|
||||||
("Check Tags"
|
("Check Tags"
|
||||||
,@(org-mouse-keyword-menu
|
,@(org-mouse-keyword-menu
|
||||||
(sort (mapcar 'car (org-get-buffer-tags)) 'string-lessp)
|
(sort (mapcar 'car (org-get-buffer-tags)) 'string-lessp)
|
||||||
'(lambda (tag) (org-tags-sparse-tree nil tag)))
|
(lambda (tag) (org-tags-sparse-tree nil tag)))
|
||||||
"--"
|
"--"
|
||||||
["Custom Tag ..." org-tags-sparse-tree t])
|
["Custom Tag ..." org-tags-sparse-tree t])
|
||||||
["Check Phrase ..." org-occur]
|
["Check Phrase ..." org-occur]
|
||||||
|
@ -537,18 +537,18 @@ SCHEDULED: or DEADLINE: or ANYTHINGLIKETHIS:"
|
||||||
("Display Tags"
|
("Display Tags"
|
||||||
,@(org-mouse-keyword-menu
|
,@(org-mouse-keyword-menu
|
||||||
(sort (mapcar 'car (org-get-buffer-tags)) 'string-lessp)
|
(sort (mapcar 'car (org-get-buffer-tags)) 'string-lessp)
|
||||||
'(lambda (tag) (org-tags-view nil tag)))
|
(lambda (tag) (org-tags-view nil tag)))
|
||||||
"--"
|
"--"
|
||||||
["Custom Tag ..." org-tags-view t])
|
["Custom Tag ..." org-tags-view t])
|
||||||
["Display Calendar" org-goto-calendar t]
|
["Display Calendar" org-goto-calendar t]
|
||||||
"--"
|
"--"
|
||||||
,@(org-mouse-keyword-menu
|
,@(org-mouse-keyword-menu
|
||||||
(mapcar 'car org-agenda-custom-commands)
|
(mapcar 'car org-agenda-custom-commands)
|
||||||
'(lambda (key)
|
(lambda (key)
|
||||||
(eval `(flet ((read-char-exclusive () (string-to-char ,key)))
|
(eval `(flet ((read-char-exclusive () (string-to-char ,key)))
|
||||||
(org-agenda nil))))
|
(org-agenda nil))))
|
||||||
nil
|
nil
|
||||||
'(lambda (key)
|
(lambda (key)
|
||||||
(let ((entry (assoc key org-agenda-custom-commands)))
|
(let ((entry (assoc key org-agenda-custom-commands)))
|
||||||
(org-mouse-clip-text
|
(org-mouse-clip-text
|
||||||
(cond
|
(cond
|
||||||
|
@ -832,7 +832,7 @@ This means, between the beginning of line and the point."
|
||||||
("Tags and Priorities"
|
("Tags and Priorities"
|
||||||
,@(org-mouse-keyword-menu
|
,@(org-mouse-keyword-menu
|
||||||
(org-mouse-priority-list)
|
(org-mouse-priority-list)
|
||||||
'(lambda (keyword)
|
(lambda (keyword)
|
||||||
(org-mouse-set-priority (string-to-char keyword)))
|
(org-mouse-set-priority (string-to-char keyword)))
|
||||||
priority "Priority %s")
|
priority "Priority %s")
|
||||||
"--"
|
"--"
|
||||||
|
@ -905,7 +905,7 @@ This means, between the beginning of line and the point."
|
||||||
(mouse-drag-region event)))
|
(mouse-drag-region event)))
|
||||||
|
|
||||||
(add-hook 'org-mode-hook
|
(add-hook 'org-mode-hook
|
||||||
'(lambda ()
|
(lambda ()
|
||||||
(setq org-mouse-context-menu-function 'org-mouse-context-menu)
|
(setq org-mouse-context-menu-function 'org-mouse-context-menu)
|
||||||
|
|
||||||
(when (memq 'context-menu org-mouse-features)
|
(when (memq 'context-menu org-mouse-features)
|
||||||
|
@ -1129,14 +1129,14 @@ This means, between the beginning of line and the point."
|
||||||
|
|
||||||
; (setq org-agenda-mode-hook nil)
|
; (setq org-agenda-mode-hook nil)
|
||||||
(add-hook 'org-agenda-mode-hook
|
(add-hook 'org-agenda-mode-hook
|
||||||
'(lambda ()
|
(lambda ()
|
||||||
(setq org-mouse-context-menu-function 'org-mouse-agenda-context-menu)
|
(setq org-mouse-context-menu-function 'org-mouse-agenda-context-menu)
|
||||||
(org-defkey org-agenda-mode-map [mouse-3] 'org-mouse-show-context-menu)
|
(org-defkey org-agenda-mode-map [mouse-3] 'org-mouse-show-context-menu)
|
||||||
(org-defkey org-agenda-mode-map [down-mouse-3] 'org-mouse-move-tree-start)
|
(org-defkey org-agenda-mode-map [down-mouse-3] 'org-mouse-move-tree-start)
|
||||||
(org-defkey org-agenda-mode-map [C-mouse-4] 'org-agenda-earlier)
|
(org-defkey org-agenda-mode-map [C-mouse-4] 'org-agenda-earlier)
|
||||||
(org-defkey org-agenda-mode-map [C-mouse-5] 'org-agenda-later)
|
(org-defkey org-agenda-mode-map [C-mouse-5] 'org-agenda-later)
|
||||||
(org-defkey org-agenda-mode-map [drag-mouse-3]
|
(org-defkey org-agenda-mode-map [drag-mouse-3]
|
||||||
'(lambda (event) (interactive "e")
|
(lambda (event) (interactive "e")
|
||||||
(case (org-mouse-get-gesture event)
|
(case (org-mouse-get-gesture event)
|
||||||
(:left (org-agenda-earlier 1))
|
(:left (org-agenda-earlier 1))
|
||||||
(:right (org-agenda-later 1)))))))
|
(:right (org-agenda-later 1)))))))
|
||||||
|
|
|
@ -674,7 +674,7 @@ the language, a switch telling if the content should be in a single line."
|
||||||
(defun org-src-mode-configure-edit-buffer ()
|
(defun org-src-mode-configure-edit-buffer ()
|
||||||
(when (org-bound-and-true-p org-edit-src-from-org-mode)
|
(when (org-bound-and-true-p org-edit-src-from-org-mode)
|
||||||
(org-add-hook 'kill-buffer-hook
|
(org-add-hook 'kill-buffer-hook
|
||||||
'(lambda () (delete-overlay org-edit-src-overlay)) nil 'local)
|
(lambda () (delete-overlay org-edit-src-overlay)) nil 'local)
|
||||||
(if (org-bound-and-true-p org-edit-src-allow-write-back-p)
|
(if (org-bound-and-true-p org-edit-src-allow-write-back-p)
|
||||||
(progn
|
(progn
|
||||||
(setq buffer-offer-save t)
|
(setq buffer-offer-save t)
|
||||||
|
|
|
@ -1576,7 +1576,7 @@ single keystroke rather than having to type \"yes\"."
|
||||||
(const :tag "no confirmation (dangerous)" nil)))
|
(const :tag "no confirmation (dangerous)" nil)))
|
||||||
(put 'org-confirm-shell-link-function
|
(put 'org-confirm-shell-link-function
|
||||||
'safe-local-variable
|
'safe-local-variable
|
||||||
'(lambda (x) (member x '(yes-or-no-p y-or-n-p))))
|
(lambda (x) (member x '(yes-or-no-p y-or-n-p))))
|
||||||
|
|
||||||
(defcustom org-confirm-elisp-link-function 'yes-or-no-p
|
(defcustom org-confirm-elisp-link-function 'yes-or-no-p
|
||||||
"Non-nil means ask for confirmation before executing Emacs Lisp links.
|
"Non-nil means ask for confirmation before executing Emacs Lisp links.
|
||||||
|
@ -1596,7 +1596,7 @@ single keystroke rather than having to type \"yes\"."
|
||||||
(const :tag "no confirmation (dangerous)" nil)))
|
(const :tag "no confirmation (dangerous)" nil)))
|
||||||
(put 'org-confirm-shell-link-function
|
(put 'org-confirm-shell-link-function
|
||||||
'safe-local-variable
|
'safe-local-variable
|
||||||
'(lambda (x) (member x '(yes-or-no-p y-or-n-p))))
|
(lambda (x) (member x '(yes-or-no-p y-or-n-p))))
|
||||||
|
|
||||||
(defconst org-file-apps-defaults-gnu
|
(defconst org-file-apps-defaults-gnu
|
||||||
'((remote . emacs)
|
'((remote . emacs)
|
||||||
|
@ -2519,7 +2519,7 @@ a double prefix argument to a time stamp command like `C-c .' or `C-c !',
|
||||||
and by using a prefix arg to `S-up/down' to specify the exact number
|
and by using a prefix arg to `S-up/down' to specify the exact number
|
||||||
of minutes to shift."
|
of minutes to shift."
|
||||||
:group 'org-time
|
:group 'org-time
|
||||||
:get '(lambda (var) ; Make sure both elements are there
|
:get (lambda (var) ; Make sure both elements are there
|
||||||
(if (integerp (default-value var))
|
(if (integerp (default-value var))
|
||||||
(list (default-value var) 5)
|
(list (default-value var) 5)
|
||||||
(default-value var)))
|
(default-value var)))
|
||||||
|
@ -3021,7 +3021,7 @@ or contain a special line
|
||||||
If the file does not specify a category, then file's base name
|
If the file does not specify a category, then file's base name
|
||||||
is used instead.")
|
is used instead.")
|
||||||
(make-variable-buffer-local 'org-category)
|
(make-variable-buffer-local 'org-category)
|
||||||
(put 'org-category 'safe-local-variable '(lambda (x) (or (symbolp x) (stringp x))))
|
(put 'org-category 'safe-local-variable (lambda (x) (or (symbolp x) (stringp x))))
|
||||||
|
|
||||||
(defcustom org-agenda-files nil
|
(defcustom org-agenda-files nil
|
||||||
"The files to be used for agenda display.
|
"The files to be used for agenda display.
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
|
|
||||||
;; I have also this in my .gnus:
|
;; I have also this in my .gnus:
|
||||||
;;(add-hook 'gnus-article-mode-hook
|
;;(add-hook 'gnus-article-mode-hook
|
||||||
;; '(lambda ()
|
;; (lambda ()
|
||||||
;; (define-key gnus-article-mode-map "i" 'fortune-from-region)))
|
;; (define-key gnus-article-mode-map "i" 'fortune-from-region)))
|
||||||
;; which allows marking a region and then pressing "i" so that the marked
|
;; which allows marking a region and then pressing "i" so that the marked
|
||||||
;; region will be automatically added to my favourite fortune-file.
|
;; region will be automatically added to my favourite fortune-file.
|
||||||
|
|
|
@ -8594,7 +8594,7 @@ the appropriate statement modifier."
|
||||||
(pargs (cdr (car flist))))
|
(pargs (cdr (car flist))))
|
||||||
(setq command
|
(setq command
|
||||||
(concat command " | " pcom " "
|
(concat command " | " pcom " "
|
||||||
(mapconcat '(lambda (phrase)
|
(mapconcat (lambda (phrase)
|
||||||
(if (not (stringp phrase))
|
(if (not (stringp phrase))
|
||||||
(error "Malformed Man-filter-list"))
|
(error "Malformed Man-filter-list"))
|
||||||
phrase)
|
phrase)
|
||||||
|
|
|
@ -78,9 +78,9 @@
|
||||||
;; To customize f90-mode for your taste, use, for example:
|
;; To customize f90-mode for your taste, use, for example:
|
||||||
;; (you don't have to specify values for all the parameters below)
|
;; (you don't have to specify values for all the parameters below)
|
||||||
;;
|
;;
|
||||||
;;(add-hook 'f90-mode-hook
|
;; (add-hook 'f90-mode-hook
|
||||||
;; ;; These are the default values.
|
;; ;; These are the default values.
|
||||||
;; '(lambda () (setq f90-do-indent 3
|
;; (lambda () (setq f90-do-indent 3
|
||||||
;; f90-if-indent 3
|
;; f90-if-indent 3
|
||||||
;; f90-type-indent 3
|
;; f90-type-indent 3
|
||||||
;; f90-program-indent 2
|
;; f90-program-indent 2
|
||||||
|
|
|
@ -2539,7 +2539,7 @@ If not in a source or disassembly buffer just set point."
|
||||||
;; Don't bind "q" to kill-this-buffer as we need it for breakpoint icons.
|
;; Don't bind "q" to kill-this-buffer as we need it for breakpoint icons.
|
||||||
(define-key map "q" 'gdb-delete-frame-or-window)
|
(define-key map "q" 'gdb-delete-frame-or-window)
|
||||||
(define-key map "\r" 'gdb-goto-breakpoint)
|
(define-key map "\r" 'gdb-goto-breakpoint)
|
||||||
(define-key map "\t" '(lambda ()
|
(define-key map "\t" (lambda ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(gdb-set-window-buffer
|
(gdb-set-window-buffer
|
||||||
(gdb-get-buffer-create 'gdb-threads-buffer) t)))
|
(gdb-get-buffer-create 'gdb-threads-buffer) t)))
|
||||||
|
@ -2626,7 +2626,7 @@ corresponding to the mode line clicked."
|
||||||
(define-key map "i" 'gdb-interrupt-thread)
|
(define-key map "i" 'gdb-interrupt-thread)
|
||||||
(define-key map "c" 'gdb-continue-thread)
|
(define-key map "c" 'gdb-continue-thread)
|
||||||
(define-key map "s" 'gdb-step-thread)
|
(define-key map "s" 'gdb-step-thread)
|
||||||
(define-key map "\t" '(lambda ()
|
(define-key map "\t" (lambda ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(gdb-set-window-buffer
|
(gdb-set-window-buffer
|
||||||
(gdb-get-buffer-create 'gdb-breakpoints-buffer) t)))
|
(gdb-get-buffer-create 'gdb-breakpoints-buffer) t)))
|
||||||
|
@ -3582,7 +3582,7 @@ member."
|
||||||
(let ((map (make-sparse-keymap)))
|
(let ((map (make-sparse-keymap)))
|
||||||
(suppress-keymap map)
|
(suppress-keymap map)
|
||||||
(define-key map "q" 'kill-this-buffer)
|
(define-key map "q" 'kill-this-buffer)
|
||||||
(define-key map "\t" '(lambda ()
|
(define-key map "\t" (lambda ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(gdb-set-window-buffer
|
(gdb-set-window-buffer
|
||||||
(gdb-get-buffer-create
|
(gdb-get-buffer-create
|
||||||
|
@ -3670,7 +3670,7 @@ member."
|
||||||
(define-key map "\r" 'gdb-edit-register-value)
|
(define-key map "\r" 'gdb-edit-register-value)
|
||||||
(define-key map [mouse-2] 'gdb-edit-register-value)
|
(define-key map [mouse-2] 'gdb-edit-register-value)
|
||||||
(define-key map "q" 'kill-this-buffer)
|
(define-key map "q" 'kill-this-buffer)
|
||||||
(define-key map "\t" '(lambda ()
|
(define-key map "\t" (lambda ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(gdb-set-window-buffer
|
(gdb-set-window-buffer
|
||||||
(gdb-get-buffer-create
|
(gdb-get-buffer-create
|
||||||
|
|
|
@ -116,7 +116,7 @@ Used to grey out relevant toolbar icons.")
|
||||||
(display-buffer-reuse-frames t))
|
(display-buffer-reuse-frames t))
|
||||||
(catch 'info-found
|
(catch 'info-found
|
||||||
(walk-windows
|
(walk-windows
|
||||||
'(lambda (window)
|
(lambda (window)
|
||||||
(if (eq (window-buffer window) (get-buffer "*info*"))
|
(if (eq (window-buffer window) (get-buffer "*info*"))
|
||||||
(progn
|
(progn
|
||||||
(setq same-window-regexps nil)
|
(setq same-window-regexps nil)
|
||||||
|
|
|
@ -835,7 +835,7 @@ see if a link is set for it. Try extra help functions if necessary."
|
||||||
|
|
||||||
((or idlwave-help-browser-is-local
|
((or idlwave-help-browser-is-local
|
||||||
(string-match "w3" (symbol-name idlwave-help-browser-function)))
|
(string-match "w3" (symbol-name idlwave-help-browser-function)))
|
||||||
(idlwave-help-display-help-window '(lambda () (browse-url full-link))))
|
(idlwave-help-display-help-window (lambda () (browse-url full-link))))
|
||||||
|
|
||||||
(t (browse-url full-link)))))
|
(t (browse-url full-link)))))
|
||||||
|
|
||||||
|
|
|
@ -4243,14 +4243,14 @@ Otherwise, just expand the file name."
|
||||||
(define-key idlwave-shell-electric-debug-mode-map "_"
|
(define-key idlwave-shell-electric-debug-mode-map "_"
|
||||||
'idlwave-shell-stack-down)
|
'idlwave-shell-stack-down)
|
||||||
(define-key idlwave-shell-electric-debug-mode-map "e"
|
(define-key idlwave-shell-electric-debug-mode-map "e"
|
||||||
'(lambda () (interactive) (idlwave-shell-print '(16))))
|
(lambda () (interactive) (idlwave-shell-print '(16))))
|
||||||
(define-key idlwave-shell-electric-debug-mode-map "q" 'idlwave-shell-retall)
|
(define-key idlwave-shell-electric-debug-mode-map "q" 'idlwave-shell-retall)
|
||||||
(define-key idlwave-shell-electric-debug-mode-map "t"
|
(define-key idlwave-shell-electric-debug-mode-map "t"
|
||||||
'(lambda () (interactive) (idlwave-shell-send-command "help,/TRACE")))
|
(lambda () (interactive) (idlwave-shell-send-command "help,/TRACE")))
|
||||||
(define-key idlwave-shell-electric-debug-mode-map [(control ??)]
|
(define-key idlwave-shell-electric-debug-mode-map [(control ??)]
|
||||||
'idlwave-shell-electric-debug-help)
|
'idlwave-shell-electric-debug-help)
|
||||||
(define-key idlwave-shell-electric-debug-mode-map "x"
|
(define-key idlwave-shell-electric-debug-mode-map "x"
|
||||||
'(lambda (arg) (interactive "P")
|
(lambda (arg) (interactive "P")
|
||||||
(idlwave-shell-print arg nil nil t)))
|
(idlwave-shell-print arg nil nil t)))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1059,8 +1059,7 @@ EXECUTION-TIME holds info about the time it takes, number or string.")
|
||||||
(let* ((completion-ignore-case t)
|
(let* ((completion-ignore-case t)
|
||||||
;; we already have a list, but it is not in the right format
|
;; we already have a list, but it is not in the right format
|
||||||
;; transform it to a valid table so completition can use it
|
;; transform it to a valid table so completition can use it
|
||||||
(table (mapcar '(lambda (elm)
|
(table (mapcar (lambda (elm) (cons (symbol-name (car elm)) nil))
|
||||||
(cons (symbol-name (car elm)) nil))
|
|
||||||
mixal-operation-codes-alist))
|
mixal-operation-codes-alist))
|
||||||
;; prompt is different depending on we are close to a valid op-code
|
;; prompt is different depending on we are close to a valid op-code
|
||||||
(have-default (assq (intern-soft (current-word))
|
(have-default (assq (intern-soft (current-word))
|
||||||
|
|
|
@ -2380,7 +2380,7 @@ without confirmation."
|
||||||
(features (cons 'python-mode features))) ; and requires this
|
(features (cons 'python-mode features))) ; and requires this
|
||||||
(brm-init) ; second line of normal recipe
|
(brm-init) ; second line of normal recipe
|
||||||
(remove-hook 'python-mode-hook ; undo this from `brm-init'
|
(remove-hook 'python-mode-hook ; undo this from `brm-init'
|
||||||
'(lambda () (easy-menu-add brm-menu)))
|
(lambda () (easy-menu-add brm-menu)))
|
||||||
(easy-menu-define
|
(easy-menu-define
|
||||||
python-brm-menu python-mode-map
|
python-brm-menu python-mode-map
|
||||||
"Bicycle Repair Man"
|
"Bicycle Repair Man"
|
||||||
|
|
|
@ -1207,7 +1207,7 @@ Based on `comint-mode-map'.")
|
||||||
|
|
||||||
(mapc
|
(mapc
|
||||||
;; In Emacs 22+, provide SYSTEM-FLAG to define-abbrev.
|
;; In Emacs 22+, provide SYSTEM-FLAG to define-abbrev.
|
||||||
'(lambda (abbrev)
|
(lambda (abbrev)
|
||||||
(let ((name (car abbrev))
|
(let ((name (car abbrev))
|
||||||
(expansion (cdr abbrev)))
|
(expansion (cdr abbrev)))
|
||||||
(condition-case nil
|
(condition-case nil
|
||||||
|
|
|
@ -4586,7 +4586,7 @@ This lets programs calling batch mode to easily extract error messages."
|
||||||
(verilog-mode))))
|
(verilog-mode))))
|
||||||
(buffer-list))
|
(buffer-list))
|
||||||
;; Process the files
|
;; Process the files
|
||||||
(mapcar '(lambda (buf)
|
(mapcar (lambda (buf)
|
||||||
(when (buffer-file-name buf)
|
(when (buffer-file-name buf)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(if (not (file-exists-p (buffer-file-name buf)))
|
(if (not (file-exists-p (buffer-file-name buf)))
|
||||||
|
@ -6373,7 +6373,7 @@ for matches of `str' and adding the occurrence tp `all' through point END."
|
||||||
|
|
||||||
(defun verilog-keyword-completion (keyword-list)
|
(defun verilog-keyword-completion (keyword-list)
|
||||||
"Give list of all possible completions of keywords in KEYWORD-LIST."
|
"Give list of all possible completions of keywords in KEYWORD-LIST."
|
||||||
(mapcar '(lambda (s)
|
(mapcar (lambda (s)
|
||||||
(if (string-match (concat "\\<" verilog-str) s)
|
(if (string-match (concat "\\<" verilog-str) s)
|
||||||
(if (or (null verilog-pred)
|
(if (or (null verilog-pred)
|
||||||
(funcall verilog-pred s))
|
(funcall verilog-pred s))
|
||||||
|
@ -6493,7 +6493,7 @@ and `verilog-separator-keywords'.)"
|
||||||
(all-completions verilog-str 'verilog-completion)))
|
(all-completions verilog-str 'verilog-completion)))
|
||||||
(match (if verilog-toggle-completions
|
(match (if verilog-toggle-completions
|
||||||
"" (try-completion
|
"" (try-completion
|
||||||
verilog-str (mapcar '(lambda (elm)
|
verilog-str (mapcar (lambda (elm)
|
||||||
(cons elm 0)) allcomp)))))
|
(cons elm 0)) allcomp)))))
|
||||||
;; Delete old string
|
;; Delete old string
|
||||||
(delete-region b e)
|
(delete-region b e)
|
||||||
|
@ -11447,13 +11447,13 @@ Wilson Snyder (wsnyder@wsnyder.org)."
|
||||||
(verilog-auto-re-search-do "/\\*AUTOINOUTCOMP([^)]*)\\*/" 'verilog-auto-inout-comp)
|
(verilog-auto-re-search-do "/\\*AUTOINOUTCOMP([^)]*)\\*/" 'verilog-auto-inout-comp)
|
||||||
;; next in/outs which need previous sucked inputs first
|
;; next in/outs which need previous sucked inputs first
|
||||||
(verilog-auto-re-search-do "/\\*AUTOOUTPUT\\((\"[^\"]*\")\\)\\*/"
|
(verilog-auto-re-search-do "/\\*AUTOOUTPUT\\((\"[^\"]*\")\\)\\*/"
|
||||||
'(lambda () (verilog-auto-output t)))
|
(lambda () (verilog-auto-output t)))
|
||||||
(verilog-auto-re-search-do "/\\*AUTOOUTPUT\\*/" 'verilog-auto-output)
|
(verilog-auto-re-search-do "/\\*AUTOOUTPUT\\*/" 'verilog-auto-output)
|
||||||
(verilog-auto-re-search-do "/\\*AUTOINPUT\\((\"[^\"]*\")\\)\\*/"
|
(verilog-auto-re-search-do "/\\*AUTOINPUT\\((\"[^\"]*\")\\)\\*/"
|
||||||
'(lambda () (verilog-auto-input t)))
|
(lambda () (verilog-auto-input t)))
|
||||||
(verilog-auto-re-search-do "/\\*AUTOINPUT\\*/" 'verilog-auto-input)
|
(verilog-auto-re-search-do "/\\*AUTOINPUT\\*/" 'verilog-auto-input)
|
||||||
(verilog-auto-re-search-do "/\\*AUTOINOUT\\((\"[^\"]*\")\\)\\*/"
|
(verilog-auto-re-search-do "/\\*AUTOINOUT\\((\"[^\"]*\")\\)\\*/"
|
||||||
'(lambda () (verilog-auto-inout t)))
|
(lambda () (verilog-auto-inout t)))
|
||||||
(verilog-auto-re-search-do "/\\*AUTOINOUT\\*/" 'verilog-auto-inout)
|
(verilog-auto-re-search-do "/\\*AUTOINOUT\\*/" 'verilog-auto-inout)
|
||||||
;; Then tie off those in/outs
|
;; Then tie off those in/outs
|
||||||
(verilog-auto-re-search-do "/\\*AUTOTIEOFF\\*/" 'verilog-auto-tieoff)
|
(verilog-auto-re-search-do "/\\*AUTOTIEOFF\\*/" 'verilog-auto-tieoff)
|
||||||
|
|
|
@ -975,7 +975,7 @@ Please send all bug fixes and enhancements to
|
||||||
;; (setq ps-font-info-database '(<your stuff> <the standard stuff>))
|
;; (setq ps-font-info-database '(<your stuff> <the standard stuff>))
|
||||||
;; or, use `ps-print-hook' (see section Hooks):
|
;; or, use `ps-print-hook' (see section Hooks):
|
||||||
;; (add-hook 'ps-print-hook
|
;; (add-hook 'ps-print-hook
|
||||||
;; '(lambda ()
|
;; (lambda ()
|
||||||
;; (or (assq 'Helvetica ps-font-info-database)
|
;; (or (assq 'Helvetica ps-font-info-database)
|
||||||
;; (setq ps-font-info-database (append ...)))))
|
;; (setq ps-font-info-database (append ...)))))
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -4254,7 +4254,7 @@ special identifiers such as COM1."
|
||||||
(setq x
|
(setq x
|
||||||
(sort
|
(sort
|
||||||
(copy-sequence serial-speed-history)
|
(copy-sequence serial-speed-history)
|
||||||
'(lambda (a b) (when (and (stringp a) (stringp b))
|
(lambda (a b) (when (and (stringp a) (stringp b))
|
||||||
(> (string-to-number a) (string-to-number b))))))
|
(> (string-to-number a) (string-to-number b))))))
|
||||||
(dolist (i x) (when (not (equal i (car y))) (push i y)))
|
(dolist (i x) (when (not (equal i (car y))) (push i y)))
|
||||||
y))
|
y))
|
||||||
|
|
|
@ -105,8 +105,8 @@ performance."
|
||||||
(define-key map [t] 'te-pass-through)
|
(define-key map [t] 'te-pass-through)
|
||||||
(define-key map [switch-frame] 'handle-switch-frame)
|
(define-key map [switch-frame] 'handle-switch-frame)
|
||||||
(define-key map "\e" terminal-meta-map)
|
(define-key map "\e" terminal-meta-map)
|
||||||
;(define-key map "\C-l"
|
;;(define-key map "\C-l"
|
||||||
; '(lambda () (interactive) (te-pass-through) (redraw-display)))
|
;; (lambda () (interactive) (te-pass-through) (redraw-display)))
|
||||||
(setq terminal-map map)))
|
(setq terminal-map map)))
|
||||||
|
|
||||||
(defvar terminal-escape-map nil)
|
(defvar terminal-escape-map nil)
|
||||||
|
|
|
@ -296,7 +296,7 @@ If this variable is nil, all regions are treated as small."
|
||||||
;;* using flyspell with mail-mode add the following expression */
|
;;* using flyspell with mail-mode add the following expression */
|
||||||
;;* in your .emacs file: */
|
;;* in your .emacs file: */
|
||||||
;;* (add-hook 'mail-mode */
|
;;* (add-hook 'mail-mode */
|
||||||
;;* '(lambda () (setq flyspell-generic-check-word-predicate */
|
;;* (lambda () (setq flyspell-generic-check-word-predicate */
|
||||||
;;* 'mail-mode-flyspell-verify))) */
|
;;* 'mail-mode-flyspell-verify))) */
|
||||||
;;*---------------------------------------------------------------------*/
|
;;*---------------------------------------------------------------------*/
|
||||||
(defvar flyspell-generic-check-word-predicate nil
|
(defvar flyspell-generic-check-word-predicate nil
|
||||||
|
|
|
@ -226,7 +226,7 @@ reached."
|
||||||
(let ((fattribs-list (file-attributes f)))
|
(let ((fattribs-list (file-attributes f)))
|
||||||
`(,(nth 4 fattribs-list) ,(nth 7 fattribs-list) ,f)))
|
`(,(nth 4 fattribs-list) ,(nth 7 fattribs-list) ,f)))
|
||||||
(directory-files (thumbs-thumbsdir) t (image-file-name-regexp)))
|
(directory-files (thumbs-thumbsdir) t (image-file-name-regexp)))
|
||||||
'(lambda (l1 l2) (time-less-p (car l1) (car l2)))))
|
(lambda (l1 l2) (time-less-p (car l1) (car l2)))))
|
||||||
(dirsize (apply '+ (mapcar (lambda (x) (cadr x)) files-list))))
|
(dirsize (apply '+ (mapcar (lambda (x) (cadr x)) files-list))))
|
||||||
(while (> dirsize thumbs-thumbsdir-max-size)
|
(while (> dirsize thumbs-thumbsdir-max-size)
|
||||||
(progn
|
(progn
|
||||||
|
|
|
@ -578,7 +578,7 @@ It takes the same format as the TZ argument of `set-time-zone-rule'.
|
||||||
If nil, use local time.
|
If nil, use local time.
|
||||||
If t, use universal time.")
|
If t, use universal time.")
|
||||||
(put 'add-log-time-zone-rule 'safe-local-variable
|
(put 'add-log-time-zone-rule 'safe-local-variable
|
||||||
'(lambda (x) (or (booleanp x) (stringp x))))
|
(lambda (x) (or (booleanp x) (stringp x))))
|
||||||
|
|
||||||
(defun add-log-iso8601-time-zone (&optional time)
|
(defun add-log-iso8601-time-zone (&optional time)
|
||||||
(let* ((utc-offset (or (car (current-time-zone time)) 0))
|
(let* ((utc-offset (or (car (current-time-zone time)) 0))
|
||||||
|
@ -1051,7 +1051,7 @@ Runs `change-log-mode-hook'.
|
||||||
(set (make-local-variable 'fill-indent-according-to-mode) t)
|
(set (make-local-variable 'fill-indent-according-to-mode) t)
|
||||||
;; Avoid that filling leaves behind a single "*" on a line.
|
;; Avoid that filling leaves behind a single "*" on a line.
|
||||||
(add-hook 'fill-nobreak-predicate
|
(add-hook 'fill-nobreak-predicate
|
||||||
'(lambda ()
|
(lambda ()
|
||||||
(looking-back "^\\s *\\*\\s *" (line-beginning-position)))
|
(looking-back "^\\s *\\*\\s *" (line-beginning-position)))
|
||||||
nil t)
|
nil t)
|
||||||
(set (make-local-variable 'indent-line-function) 'change-log-indent)
|
(set (make-local-variable 'indent-line-function) 'change-log-indent)
|
||||||
|
|
|
@ -50,7 +50,7 @@ Must produce output compatible with Unix's diff3 program."
|
||||||
|
|
||||||
;; The following functions must precede all defcustom-defined variables.
|
;; The following functions must precede all defcustom-defined variables.
|
||||||
|
|
||||||
(fset 'ediff-set-actual-diff-options '(lambda () nil))
|
(fset 'ediff-set-actual-diff-options (lambda () nil))
|
||||||
|
|
||||||
(defcustom ediff-shell
|
(defcustom ediff-shell
|
||||||
(cond ((memq system-type '(ms-dos windows-nt))
|
(cond ((memq system-type '(ms-dos windows-nt))
|
||||||
|
|
|
@ -1682,7 +1682,7 @@ the width of the A/B/C windows."
|
||||||
'ediff-get-lines-to-region-start)
|
'ediff-get-lines-to-region-start)
|
||||||
((eq op 'scroll-up)
|
((eq op 'scroll-up)
|
||||||
'ediff-get-lines-to-region-end)
|
'ediff-get-lines-to-region-end)
|
||||||
(t '(lambda (a b c) 0))))
|
(t (lambda (a b c) 0))))
|
||||||
(max-lines (max (funcall func 'A n ctl-buf)
|
(max-lines (max (funcall func 'A n ctl-buf)
|
||||||
(funcall func 'B n ctl-buf)
|
(funcall func 'B n ctl-buf)
|
||||||
(if (ediff-buffer-live-p ediff-buffer-C)
|
(if (ediff-buffer-live-p ediff-buffer-C)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue