aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2013-04-22 08:30:55 +0200
committerJoakim Verona2013-04-22 08:30:55 +0200
commite55fcd3de4a045e2a525f997f2778a25f86065c8 (patch)
tree134ac830a176b33df06cbe8bbf096bc2a80f61fa
parent3064c99f56a1332cb087455aea502424018640e1 (diff)
parent84fc48e57a1008b4c047ff30f3a6101b84130671 (diff)
downloademacs-e55fcd3de4a045e2a525f997f2778a25f86065c8.tar.gz
emacs-e55fcd3de4a045e2a525f997f2778a25f86065c8.zip
auto upstream
-rw-r--r--ChangeLog9
-rwxr-xr-xbuild-aux/update-subdirs4
-rw-r--r--doc/lispintro/ChangeLog7
-rw-r--r--doc/lispintro/emacs-lisp-intro.texi47
-rw-r--r--doc/lispref/ChangeLog3
-rw-r--r--doc/lispref/internals.texi34
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/epg.el20
-rwxr-xr-xmake-dist3
-rw-r--r--src/ChangeLog5
-rw-r--r--src/Makefile.in2
11 files changed, 102 insertions, 40 deletions
diff --git a/ChangeLog b/ChangeLog
index dc6c0bfc3ec..5f74726a743 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
12013-04-22 Paul Eggert <eggert@cs.ucla.edu>
2
3 * make-dist: Do not distribute admin/unidata/Makefile.
4 It is generated by 'configure'.
5
6 * build-aux/update-subdirs: Don't leave subdirs.el~ behind.
7 It messes up 'make distclean', and contains no useful information
8 because it's a copy of subdirs.el.
9
12013-04-18 John Marino <gnugcc@marino.st> (tiny change) 102013-04-18 John Marino <gnugcc@marino.st> (tiny change)
2 11
3 * configure.ac: Add DragonFly BSD, mostly same as FreeBSD. (Bug#14068) 12 * configure.ac: Add DragonFly BSD, mostly same as FreeBSD. (Bug#14068)
diff --git a/build-aux/update-subdirs b/build-aux/update-subdirs
index 8fdf1609e6f..3c429b8b5e4 100755
--- a/build-aux/update-subdirs
+++ b/build-aux/update-subdirs
@@ -49,8 +49,8 @@ else
49;; no-byte-compile: t 49;; no-byte-compile: t
50;; End:" > subdirs.el~ 50;; End:" > subdirs.el~
51 if cmp "subdirs.el" "subdirs.el~" >/dev/null 2>&1; then 51 if cmp "subdirs.el" "subdirs.el~" >/dev/null 2>&1; then
52 :; # echo "subdirs.el unchanged"; 52 rm subdirs.el~
53 else 53 else
54 mv subdirs.el~ subdirs.el 54 mv subdirs.el~ subdirs.el
55 fi 55 fi
56fi 56fi
diff --git a/doc/lispintro/ChangeLog b/doc/lispintro/ChangeLog
index 93084e76203..1f27775442c 100644
--- a/doc/lispintro/ChangeLog
+++ b/doc/lispintro/ChangeLog
@@ -1,3 +1,10 @@
12013-04-21 Xue Fuqiao <xfq.free@gmail.com>
2
3 * emacs-lisp-intro.texi (defcustom, defun)
4 (simplified-beginning-of-buffer, defvar, Building Robots, Review)
5 (save-excursion): `defun' and `defcustom' are now macros rather
6 than special forms. (Bug#13853)
7
12013-03-16 Glenn Morris <rgm@gnu.org> 82013-03-16 Glenn Morris <rgm@gnu.org>
2 9
3 * emacs-lisp-intro.texi: Add some stuff specific to www.gnu.org. 10 * emacs-lisp-intro.texi: Add some stuff specific to www.gnu.org.
diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi
index c42ed210cbc..3147960fbc3 100644
--- a/doc/lispintro/emacs-lisp-intro.texi
+++ b/doc/lispintro/emacs-lisp-intro.texi
@@ -37,6 +37,7 @@
37 37
38@set edition-number 3.10 38@set edition-number 3.10
39@set update-date 28 October 2009 39@set update-date 28 October 2009
40@c FIXME can this be updated? -- xfq
40 41
41@ignore 42@ignore
42 ## Summary of shell commands to create various output formats: 43 ## Summary of shell commands to create various output formats:
@@ -3094,18 +3095,15 @@ unless you investigate, you won't know whether an already-written
3094function is written in Emacs Lisp or C. 3095function is written in Emacs Lisp or C.
3095 3096
3096@node defun 3097@node defun
3097@section The @code{defun} Special Form 3098@section The @code{defun} Macro
3098@findex defun 3099@findex defun
3099@cindex Special form of @code{defun}
3100 3100
3101@cindex @samp{function definition} defined 3101@cindex @samp{function definition} defined
3102In Lisp, a symbol such as @code{mark-whole-buffer} has code attached to 3102In Lisp, a symbol such as @code{mark-whole-buffer} has code attached to
3103it that tells the computer what to do when the function is called. 3103it that tells the computer what to do when the function is called.
3104This code is called the @dfn{function definition} and is created by 3104This code is called the @dfn{function definition} and is created by
3105evaluating a Lisp expression that starts with the symbol @code{defun} 3105evaluating a Lisp expression that starts with the symbol @code{defun}
3106(which is an abbreviation for @emph{define function}). Because 3106(which is an abbreviation for @emph{define function}).
3107@code{defun} does not evaluate its arguments in the usual way, it is
3108called a @dfn{special form}.
3109 3107
3110In subsequent sections, we will look at function definitions from the 3108In subsequent sections, we will look at function definitions from the
3111Emacs source code, such as @code{mark-whole-buffer}. In this section, 3109Emacs source code, such as @code{mark-whole-buffer}. In this section,
@@ -4254,7 +4252,7 @@ On the other hand, this function returns @code{nil} if the test is false.
4254@findex point 4252@findex point
4255@findex mark 4253@findex mark
4256 4254
4257The @code{save-excursion} function is the fourth and final special form 4255The @code{save-excursion} function is the third and final special form
4258that we will discuss in this chapter. 4256that we will discuss in this chapter.
4259 4257
4260In Emacs Lisp programs used for editing, the @code{save-excursion} 4258In Emacs Lisp programs used for editing, the @code{save-excursion}
@@ -4381,9 +4379,9 @@ within the body of a @code{let} expression. It looks like this:
4381@node Review 4379@node Review
4382@section Review 4380@section Review
4383 4381
4384In the last few chapters we have introduced a fair number of functions 4382In the last few chapters we have introduced a macro and a fair number
4385and special forms. Here they are described in brief, along with a few 4383of functions and special forms. Here they are described in brief,
4386similar functions that have not been mentioned yet. 4384along with a few similar functions that have not been mentioned yet.
4387 4385
4388@table @code 4386@table @code
4389@item eval-last-sexp 4387@item eval-last-sexp
@@ -4393,10 +4391,10 @@ invoked with an argument; in that case, the output is printed in the
4393current buffer. This command is normally bound to @kbd{C-x C-e}. 4391current buffer. This command is normally bound to @kbd{C-x C-e}.
4394 4392
4395@item defun 4393@item defun
4396Define function. This special form has up to five parts: the name, 4394Define function. This macro has up to five parts: the name, a
4397a template for the arguments that will be passed to the function, 4395template for the arguments that will be passed to the function,
4398documentation, an optional interactive declaration, and the body of the 4396documentation, an optional interactive declaration, and the body of
4399definition. 4397the definition.
4400 4398
4401@need 1250 4399@need 1250
4402For example, in an early version of Emacs, the function definition was 4400For example, in an early version of Emacs, the function definition was
@@ -4803,7 +4801,7 @@ leave mark at previous position."
4803@end smallexample 4801@end smallexample
4804 4802
4805Like all function definitions, this definition has five parts following 4803Like all function definitions, this definition has five parts following
4806the special form @code{defun}: 4804the macro @code{defun}:
4807 4805
4808@enumerate 4806@enumerate
4809@item 4807@item
@@ -9293,10 +9291,6 @@ have a value. If the variable already has a value, @code{defvar} does
9293not override the existing value. Second, @code{defvar} has a 9291not override the existing value. Second, @code{defvar} has a
9294documentation string. 9292documentation string.
9295 9293
9296(Another special form, @code{defcustom}, is designed for variables
9297that people customize. It has more features than @code{defvar}.
9298(@xref{defcustom, , Setting Variables with @code{defcustom}}.)
9299
9300@menu 9294@menu
9301* See variable current value:: 9295* See variable current value::
9302* defvar and asterisk:: 9296* defvar and asterisk::
@@ -11300,11 +11294,11 @@ Let's expand on the metaphor in which a computer program is a robot.
11300 11294
11301A function definition provides the blueprints for a robot. When you 11295A function definition provides the blueprints for a robot. When you
11302install a function definition, that is, when you evaluate a 11296install a function definition, that is, when you evaluate a
11303@code{defun} special form, you install the necessary equipment to 11297@code{defun} macro, you install the necessary equipment to build
11304build robots. It is as if you were in a factory, setting up an 11298robots. It is as if you were in a factory, setting up an assembly
11305assembly line. Robots with the same name are built according to the 11299line. Robots with the same name are built according to the same
11306same blueprints. So they have, as it were, the same `model number', 11300blueprints. So they have, as it were, the same `model number', but a
11307but a different `serial number'. 11301different `serial number'.
11308 11302
11309We often say that a recursive function `calls itself'. What we mean 11303We often say that a recursive function `calls itself'. What we mean
11310is that the instructions in a recursive function cause the Lisp 11304is that the instructions in a recursive function cause the Lisp
@@ -16971,10 +16965,9 @@ definitions; but you can write @code{defuns} in your @file{.emacs}
16971file. Indeed, you can write any Lisp expression in your @file{.emacs} 16965file. Indeed, you can write any Lisp expression in your @file{.emacs}
16972file.) 16966file.)
16973 16967
16974The @code{customize} feature depends on the @code{defcustom} special 16968The @code{customize} feature depends on the @code{defcustom} macro.
16975form. Although you can use @code{defvar} or @code{setq} for variables 16969Although you can use @code{defvar} or @code{setq} for variables that
16976that users set, the @code{defcustom} special form is designed for the 16970users set, the @code{defcustom} macro is designed for the job.
16977job.
16978 16971
16979You can use your knowledge of @code{defvar} for writing the 16972You can use your knowledge of @code{defvar} for writing the
16980first three arguments for @code{defcustom}. The first argument to 16973first three arguments for @code{defcustom}. The first argument to
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 36c8b8dbea7..f770fb3cada 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,5 +1,8 @@
12013-04-21 Xue Fuqiao <xfq.free@gmail.com> 12013-04-21 Xue Fuqiao <xfq.free@gmail.com>
2 2
3 * internals.texi (Writing Emacs Primitives): Remove unnecessary
4 references to the sources. (Bug#13800)
5
3 * searching.texi (Regexp Backslash): Doc fix for backslash 6 * searching.texi (Regexp Backslash): Doc fix for backslash
4 constructs in regular expressions. 7 constructs in regular expressions.
5 8
diff --git a/doc/lispref/internals.texi b/doc/lispref/internals.texi
index 3269776b626..24440858b7e 100644
--- a/doc/lispref/internals.texi
+++ b/doc/lispref/internals.texi
@@ -661,15 +661,33 @@ equivalent of @code{&rest}). Both @code{UNEVALLED} and @code{MANY} are
661macros. If @var{max} is a number, it must be more than @var{min} but 661macros. If @var{max} is a number, it must be more than @var{min} but
662less than 8. 662less than 8.
663 663
664@cindex interactive specification in primitives
664@item interactive 665@item interactive
665This is an interactive specification, a string such as might be used as 666This is an interactive specification, a string such as might be used
666the argument of @code{interactive} in a Lisp function. In the case of 667as the argument of @code{interactive} in a Lisp function. In the case
667@code{or}, it is 0 (a null pointer), indicating that @code{or} cannot be 668of @code{or}, it is 0 (a null pointer), indicating that @code{or}
668called interactively. A value of @code{""} indicates a function that 669cannot be called interactively. A value of @code{""} indicates a function that should receive no
669should receive no arguments when called interactively. If the value 670arguments when called interactively. For example:
670begins with a @samp{(}, the string is evaluated as a Lisp form. 671
671For examples of the last two forms, see @code{widen} and 672@smallexample
672@code{narrow-to-region} in @file{editfns.c}. 673@group
674DEFUN ("baz", Fbaz, Sbaz, 0, 0, "",
675 doc: /* @dots{} */)
676@end group
677@end smallexample
678
679If the value begins with a @samp{"(}, the string is evaluated as a
680Lisp form. For example:
681
682@smallexample
683@group
684DEFUN ("foo", Ffoo, Sfoo, 0, UNEVALLED, "(list
685 (read-char-by-name \"Insert character (Unicode name or hex): \")\
686 (prefix-numeric-value current-prefix-arg)\
687 t))",
688 doc: /* @dots{} /*)
689@end group
690@end smallexample
673 691
674@item doc 692@item doc
675This is the documentation string. It uses C comment syntax rather 693This is the documentation string. It uses C comment syntax rather
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index afb1ffd06fe..9c3be36984b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12013-04-22 Daiki Ueno <ueno@gnu.org>
2
3 * epg.el (epg-context-pinentry-mode): New function.
4 (epg-context-set-pinentry-mode): New function.
5 (epg--start): Pass --pinentry-mode option to gpg command.
6
12013-04-21 Xue Fuqiao <xfq.free@gmail.com> 72013-04-21 Xue Fuqiao <xfq.free@gmail.com>
2 8
3 * comint.el: (comint-dynamic-complete-functions, comint-mode-map): 9 * comint.el: (comint-dynamic-complete-functions, comint-mode-map):
@@ -53,7 +59,7 @@
532013-04-19 Masatake YAMATO <yamato@redhat.com> 592013-04-19 Masatake YAMATO <yamato@redhat.com>
54 60
55 * progmodes/sh-script.el (sh-imenu-generic-expression): 61 * progmodes/sh-script.el (sh-imenu-generic-expression):
56 Handle function names with a single character. (Bug#11182) 62 Handle function names with a single character. (Bug#14111)
57 63
582013-04-19 Dima Kogan <dima@secretsauce.net> (tiny change) 642013-04-19 Dima Kogan <dima@secretsauce.net> (tiny change)
59 65
diff --git a/lisp/epg.el b/lisp/epg.el
index 3f04aa2e07a..c36de7e4624 100644
--- a/lisp/epg.el
+++ b/lisp/epg.el
@@ -195,7 +195,7 @@
195 cipher-algorithm digest-algorithm compress-algorithm 195 cipher-algorithm digest-algorithm compress-algorithm
196 (list #'epg-passphrase-callback-function) 196 (list #'epg-passphrase-callback-function)
197 nil 197 nil
198 nil nil nil nil nil nil))) 198 nil nil nil nil nil nil nil)))
199 199
200(defun epg-context-protocol (context) 200(defun epg-context-protocol (context)
201 "Return the protocol used within CONTEXT." 201 "Return the protocol used within CONTEXT."
@@ -289,6 +289,12 @@ This function is for internal use only."
289 (signal 'wrong-type-argument (list 'epg-context-p context))) 289 (signal 'wrong-type-argument (list 'epg-context-p context)))
290 (aref (cdr context) 14)) 290 (aref (cdr context) 14))
291 291
292(defun epg-context-pinentry-mode (context)
293 "Return the mode of pinentry invocation."
294 (unless (eq (car-safe context) 'epg-context)
295 (signal 'wrong-type-argument (list 'epg-context-p context)))
296 (aref (cdr context) 15))
297
292(defun epg-context-set-protocol (context protocol) 298(defun epg-context-set-protocol (context protocol)
293 "Set the protocol used within CONTEXT." 299 "Set the protocol used within CONTEXT."
294 (unless (eq (car-safe context) 'epg-context) 300 (unless (eq (car-safe context) 'epg-context)
@@ -407,6 +413,14 @@ This function is for internal use only."
407 (signal 'wrong-type-argument (list 'epg-context-p context))) 413 (signal 'wrong-type-argument (list 'epg-context-p context)))
408 (aset (cdr context) 14 operation)) 414 (aset (cdr context) 14 operation))
409 415
416(defun epg-context-set-pinentry-mode (context mode)
417 "Set the mode of pinentry invocation."
418 (unless (eq (car-safe context) 'epg-context)
419 (signal 'wrong-type-argument (list 'epg-context-p context)))
420 (unless (memq mode '(nil ask cancel error loopback))
421 (signal 'epg-error (list "Unknown pinentry mode" mode)))
422 (aset (cdr context) 15 mode))
423
410(defun epg-make-signature (status &optional key-id) 424(defun epg-make-signature (status &optional key-id)
411 "Return a signature object." 425 "Return a signature object."
412 (cons 'epg-signature (vector status key-id nil nil nil nil nil nil nil nil 426 (cons 'epg-signature (vector status key-id nil nil nil nil nil nil nil nil
@@ -1152,6 +1166,10 @@ This function is for internal use only."
1152 (if (epg-context-textmode context) '("--textmode")) 1166 (if (epg-context-textmode context) '("--textmode"))
1153 (if (epg-context-output-file context) 1167 (if (epg-context-output-file context)
1154 (list "--output" (epg-context-output-file context))) 1168 (list "--output" (epg-context-output-file context)))
1169 (if (epg-context-pinentry-mode context)
1170 (list "--pinentry-mode"
1171 (symbol-name (epg-context-pinentry-mode
1172 context))))
1155 args)) 1173 args))
1156 (coding-system-for-write 'binary) 1174 (coding-system-for-write 'binary)
1157 (coding-system-for-read 'binary) 1175 (coding-system-for-read 'binary)
diff --git a/make-dist b/make-dist
index 283defe8a7d..e1e62c895c7 100755
--- a/make-dist
+++ b/make-dist
@@ -439,6 +439,9 @@ echo "Making links to \`lwlib'"
439 439
440echo "Making links to \`admin' and its subdirectories" 440echo "Making links to \`admin' and its subdirectories"
441for f in `find admin -type f`; do 441for f in `find admin -type f`; do
442 case $f in
443 admin/unidata/Makefile) continue ;;
444 esac
442 ln $f $tempdir/$f 445 ln $f $tempdir/$f
443done 446done
444 447
diff --git a/src/ChangeLog b/src/ChangeLog
index 5164dc8ff8d..31764cad485 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12013-04-22 Paul Eggert <eggert@cs.ucla.edu>
2
3 * Makefile.in (bootstrap-clean): Remove stamp-h1 too.
4 Without this fix, "make distclean" leaves stamp-h1 behind.
5
12013-04-20 Erik Charlebois <erikcharlebois@gmail.com> 62013-04-20 Erik Charlebois <erikcharlebois@gmail.com>
2 7
3 * w32fns.c (w32_fullscreen_rect): New function to compute the 8 * w32fns.c (w32_fullscreen_rect): New function to compute the
diff --git a/src/Makefile.in b/src/Makefile.in
index ac09d41858d..d6516e812dd 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -545,7 +545,7 @@ clean: mostlyclean
545## It should remove all files generated during a compilation/bootstrap, 545## It should remove all files generated during a compilation/bootstrap,
546## but not things like config.status or TAGS. 546## but not things like config.status or TAGS.
547bootstrap-clean: clean 547bootstrap-clean: clean
548 rm -f epaths.h config.h config.stamp stamp-oldxmenu ../etc/DOC-* 548 rm -f epaths.h config.h config.stamp stamp-h1 stamp-oldxmenu ../etc/DOC-*
549 if test -f ./.gdbinit; then \ 549 if test -f ./.gdbinit; then \
550 mv ./.gdbinit ./.gdbinit.save; \ 550 mv ./.gdbinit ./.gdbinit.save; \
551 if test -f "$(srcdir)/.gdbinit"; then rm -f ./.gdbinit.save; \ 551 if test -f "$(srcdir)/.gdbinit"; then rm -f ./.gdbinit.save; \