aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2013-02-11 00:03:42 +0100
committerJoakim Verona2013-02-11 00:03:42 +0100
commit77f4834db1299b571b1fb3dfb120e5e50eec7cb1 (patch)
treeafe4035739ce5bd25799ed469f67939431ae91a3
parent33cc2cd4d53f845b7d1e681dbbe8166acdb652c3 (diff)
parenta4ba3963957c289a913b32bca9531aadcc3f377f (diff)
downloademacs-77f4834db1299b571b1fb3dfb120e5e50eec7cb1.tar.gz
emacs-77f4834db1299b571b1fb3dfb120e5e50eec7cb1.zip
auto upstream
-rw-r--r--ChangeLog5
-rwxr-xr-xautogen/configure2
-rw-r--r--configure.ac2
-rw-r--r--doc/emacs/ChangeLog4
-rw-r--r--doc/emacs/trouble.texi2
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/keymaps.texi4
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/calc.texi36
-rw-r--r--etc/NEWS12
-rw-r--r--etc/TODO20
-rw-r--r--lisp/ChangeLog33
-rw-r--r--lisp/calc/calc-units.el10
-rw-r--r--lisp/calc/calc.el8
-rw-r--r--lisp/files.el4
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/nnir.el2
-rw-r--r--lisp/international/mule.el21
-rw-r--r--lisp/mail/emacsbug.el2
-rw-r--r--lisp/minibuf-eldef.el1
-rw-r--r--src/ChangeLog16
-rw-r--r--src/fileio.c4
-rw-r--r--src/syntax.c1
-rw-r--r--src/xdisp.c19
24 files changed, 160 insertions, 62 deletions
diff --git a/ChangeLog b/ChangeLog
index 93c3c333725..f1b134aa8f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12013-02-10 Glenn Morris <rgm@gnu.org>
2
3 * configure.ac (emacs_config_options): Strip out the (internal)
4 arguments --no-create and --no-recursion.
5
12013-02-08 Paul Eggert <eggert@cs.ucla.edu> 62013-02-08 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 Merge from gnulib, incorporating: 8 Merge from gnulib, incorporating:
diff --git a/autogen/configure b/autogen/configure
index 4b27e99acf1..1251680b942 100755
--- a/autogen/configure
+++ b/autogen/configure
@@ -16239,7 +16239,7 @@ cat >>confdefs.h <<_ACEOF
16239#define EMACS_CONFIGURATION "${canonical}" 16239#define EMACS_CONFIGURATION "${canonical}"
16240_ACEOF 16240_ACEOF
16241 16241
16242emacs_config_options=`echo "$emacs_config_options" | sed -e "s/\"/'/g"` 16242emacs_config_options=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
16243 16243
16244cat >>confdefs.h <<_ACEOF 16244cat >>confdefs.h <<_ACEOF
16245#define EMACS_CONFIG_OPTIONS "${emacs_config_options}" 16245#define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
diff --git a/configure.ac b/configure.ac
index c88c6b9577b..7d79db32568 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4148,7 +4148,7 @@ fi
4148AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "${canonical}", 4148AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "${canonical}",
4149 [Define to the canonical Emacs configuration name.]) 4149 [Define to the canonical Emacs configuration name.])
4150dnl Replace any embedded " characters (bug#13274). 4150dnl Replace any embedded " characters (bug#13274).
4151emacs_config_options=`echo "$emacs_config_options" | sed -e "s/\"/'/g"` 4151emacs_config_options=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
4152AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "${emacs_config_options}", 4152AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "${emacs_config_options}",
4153 [Define to the options passed to configure.]) 4153 [Define to the options passed to configure.])
4154AH_TEMPLATE(config_opsysfile, [Some platforms that do not use configure 4154AH_TEMPLATE(config_opsysfile, [Some platforms that do not use configure
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index d2f44eabb0e..bcd9c0c0693 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,7 @@
12013-02-10 Glenn Morris <rgm@gnu.org>
2
3 * trouble.texi (Checklist): Update bug keybinding.
4
12013-02-09 Eli Zaretskii <eliz@gnu.org> 52013-02-09 Eli Zaretskii <eliz@gnu.org>
2 6
3 * msdog.texi (Text and Binary): Delete the description of 7 * msdog.texi (Text and Binary): Delete the description of
diff --git a/doc/emacs/trouble.texi b/doc/emacs/trouble.texi
index 97c0ff97530..1c667bc56cb 100644
--- a/doc/emacs/trouble.texi
+++ b/doc/emacs/trouble.texi
@@ -662,7 +662,7 @@ will be sent to the Emacs maintainers at @email{bug-gnu-emacs@@gnu.org}.
662(If you want to suggest an improvement or new feature, use the same 662(If you want to suggest an improvement or new feature, use the same
663address.) If you cannot send mail from inside Emacs, you can copy the 663address.) If you cannot send mail from inside Emacs, you can copy the
664text of your report to your normal mail client (if your system 664text of your report to your normal mail client (if your system
665supports it, you can type @kbd{C-c m} to have Emacs do this for you) 665supports it, you can type @kbd{C-c M-i} to have Emacs do this for you)
666and send it to that address. Or you can simply send an email to that 666and send it to that address. Or you can simply send an email to that
667address describing the problem. 667address describing the problem.
668 668
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 90b2349387f..a61d84a77b1 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12013-02-10 Glenn Morris <rgm@gnu.org>
2
3 * keymaps.texi (Creating Keymaps): Update make-keymap result.
4
12013-02-09 Eli Zaretskii <eliz@gnu.org> 52013-02-09 Eli Zaretskii <eliz@gnu.org>
2 6
3 * modes.texi (%-Constructs): Remove the description of %t. 7 * modes.texi (%-Constructs): Remove the description of %t.
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi
index 7c66bbec801..54211d1aa0b 100644
--- a/doc/lispref/keymaps.texi
+++ b/doc/lispref/keymaps.texi
@@ -327,10 +327,12 @@ these characters to @code{nil}, and does not bind any other kind of
327event. The argument @var{prompt} specifies a 327event. The argument @var{prompt} specifies a
328prompt string, as in @code{make-sparse-keymap}. 328prompt string, as in @code{make-sparse-keymap}.
329 329
330@c This example seems kind of pointless, but I guess it serves
331@c to contrast the result with make-sparse-keymap above.
330@example 332@example
331@group 333@group
332(make-keymap) 334(make-keymap)
333 @result{} (keymap #^[t nil nil nil @dots{} nil nil keymap]) 335 @result{} (keymap #^[nil nil keymap nil nil nil @dots{}])
334@end group 336@end group
335@end example 337@end example
336 338
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index c0a454d31b5..11ff3700da4 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,8 @@
12013-02-09 Jay Belanger <jay.p.belanger@gmail.com>
2
3 * calc.texi (Basic Operations on Units):
4 (Customizing Calc): Mention the variable `calc-allow-units-as-numbers'.
5
12013-02-08 Aidan Gauland <aidalgol@no8wireless.co.nz> 62013-02-08 Aidan Gauland <aidalgol@no8wireless.co.nz>
2 7
3 * eshell.texi: Fill most of the missing sections. 8 * eshell.texi: Fill most of the missing sections.
diff --git a/doc/misc/calc.texi b/doc/misc/calc.texi
index a5514867a99..da018acffe9 100644
--- a/doc/misc/calc.texi
+++ b/doc/misc/calc.texi
@@ -27866,11 +27866,6 @@ acres per meter-second.) Remainder units are expressed in terms of
27866``fundamental'' units like @samp{m} and @samp{s}, regardless of the 27866``fundamental'' units like @samp{m} and @samp{s}, regardless of the
27867input units. 27867input units.
27868 27868
27869If you want to disallow using inconsistent units, you can set the customizable variable
27870@code{calc-ensure-consistent-units} to @code{t} (@pxref{Customizing Calc}). In this case,
27871if you request units which are inconsistent with the original units, you will be warned about
27872it and no conversion will occur.
27873
27874One special exception is that if you specify a single unit name, and 27869One special exception is that if you specify a single unit name, and
27875a compatible unit appears somewhere in the units expression, then 27870a compatible unit appears somewhere in the units expression, then
27876that compatible unit will be converted to the new unit and the 27871that compatible unit will be converted to the new unit and the
@@ -27880,6 +27875,12 @@ change the @samp{s} to @samp{ms} to get @samp{9.8e-4 cm/ms^2}.
27880The ``remainder unit'' @samp{cm} is left alone rather than being 27875The ``remainder unit'' @samp{cm} is left alone rather than being
27881changed to the base unit @samp{m}. 27876changed to the base unit @samp{m}.
27882 27877
27878If you want to disallow using inconsistent units, you can set the
27879customizable variable @code{calc-ensure-consistent-units} to @code{t}
27880(@pxref{Customizing Calc}). In this case, if you request units which
27881are inconsistent with the original units, you will be warned about it
27882and no conversion will occur.
27883
27883You can use explicit unit conversion instead of the @kbd{u s} command 27884You can use explicit unit conversion instead of the @kbd{u s} command
27884to gain more control over the units of the result of an expression. 27885to gain more control over the units of the result of an expression.
27885For example, given @samp{5 m + 23 mm}, you can type @kbd{u c m} or 27886For example, given @samp{5 m + 23 mm}, you can type @kbd{u c m} or
@@ -27912,10 +27913,16 @@ Composite units are expanded as if by @kbd{a x}, so that
27912 27913
27913If the value on the stack does not contain any units, @kbd{u c} will 27914If the value on the stack does not contain any units, @kbd{u c} will
27914prompt first for the old units which this value should be considered 27915prompt first for the old units which this value should be considered
27915to have, then for the new units. Assuming the old and new units you 27916to have, then for the new units. (If the value on the stack can be
27916give are consistent with each other, the result also will not contain 27917simplified so that it doesn't contain any units, like @samp{ft/in} can
27917any units. For example, @kbd{@w{u c} cm @key{RET} in @key{RET}} 27918be simplified to 12, then @kbd{u c} will still prompt for both old
27918converts the number 2 on the stack to 5.08. 27919units and new units. You can ignore the prompt for old units with
27920@key{RET}, or turn off the prompt by setting the customizable variable
27921@code{calc-allow-units-as-numbers} to @code{nil}.
27922@pxref{Customizing Calc}) Assuming the old and new units you give are
27923consistent with each other, the result also will not contain any
27924units. For example, @kbd{@w{u c} cm @key{RET} in @key{RET}} converts
27925the number 2 on the stack to 5.08.
27919 27926
27920@kindex u b 27927@kindex u b
27921@pindex calc-base-units 27928@pindex calc-base-units
@@ -35694,6 +35701,17 @@ have different dimensions. The default value of @code{calc-ensure-consistent-uni
35694is @code{nil}. 35701is @code{nil}.
35695@end defvar 35702@end defvar
35696 35703
35704@defvar calc-allow-units-as-numbers
35705When converting units, the variable @code{calc-allow-units-as-numbers}
35706determines whether or not values which can be simplified so that
35707they don't contain units (such as @samp{ft/in} can be simplified to 12)
35708can be regarded as not containing units. If
35709@code{calc-allow-units-as-numbers} is non-@code{nil}, then @kbd{u c}
35710will prompt for both old units and new units when converting an expression
35711like @samp{ft/in}, otherwise @kbd{u c} will only prompt for the new units.
35712The default value of @code{calc-allow-units-as-numbers} is @code{t}.
35713@end defvar
35714
35697@defvar calc-undo-length 35715@defvar calc-undo-length
35698The variable @code{calc-undo-length} determines the number of undo 35716The variable @code{calc-undo-length} determines the number of undo
35699steps that Calc will keep track of when @code{calc-quit} is called. 35717steps that Calc will keep track of when @code{calc-quit} is called.
diff --git a/etc/NEWS b/etc/NEWS
index d1723166b6e..91ebe803904 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -436,6 +436,11 @@ The PCL-CVS commands are still available via the keyboard.
436** Using "unibyte: t" in Lisp source files is obsolete. 436** Using "unibyte: t" in Lisp source files is obsolete.
437Use "coding: raw-text" instead. 437Use "coding: raw-text" instead.
438 438
439** In the buffer made by `M-x report-emacs-bug', the `C-c m' binding
440has been changed to `C-c M-i' (`report-emacs-bug-insert-to-mailer').
441The previous binding, introduced in Emacs 24.1, was a mistake, because
442`C-c LETTER' bindings are reserved for user customizations.
443
439** Internationalization 444** Internationalization
440 445
441*** New language environment: Persian. 446*** New language environment: Persian.
@@ -1262,9 +1267,10 @@ to use the old defaults relying on external mail facilities
1262(`sendmail-send-it' on GNU/Linux and other Unix-like systems, and 1267(`sendmail-send-it' on GNU/Linux and other Unix-like systems, and
1263`mailclient-send-it' on Windows). 1268`mailclient-send-it' on Windows).
1264 1269
1265*** Typing C-c m in the buffer made by M-x report-emacs-bug transfers 1270*** Typing `C-c m' in the buffer made by `M-x report-emacs-bug'
1266the report to your desktop's preferred mail client, if there is one. 1271transfers the report to your desktop's preferred mail client, if there
1267This uses either the "xdg-email" utility, or Mac OS's "open" command. 1272is one. This uses either the "xdg-email" utility, or Mac OS's "open"
1273command.
1268 1274
1269*** See Changes in Specialized Modes and Packages for SMTPmail changes 1275*** See Changes in Specialized Modes and Packages for SMTPmail changes
1270and Mail mode changes 1276and Mail mode changes
diff --git a/etc/TODO b/etc/TODO
index 4f7b8dc5f0c..912d0746849 100644
--- a/etc/TODO
+++ b/etc/TODO
@@ -399,14 +399,6 @@ rather than interactively. This a trivial one-liner in easy-mode.el.
399 Check the assignments file for other packages which might go in and 399 Check the assignments file for other packages which might go in and
400 have been missed. 400 have been missed.
401 401
402** Possibly install python-mode in place of python.el, or combine the two.
403Someone needs to do the work of figuring out who all the non-trivial
404python-mode.el contributors are and getting assignments.
405http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg02156.html
406http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg02201.html
407http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg02489.html
408http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg02234.html
409
410** Make keymaps a first-class Lisp object (this means a rewrite of 402** Make keymaps a first-class Lisp object (this means a rewrite of
411 keymap.c). What should it do apart from being opaque ? 403 keymap.c). What should it do apart from being opaque ?
412 multiple inheritance ? faster where-is ? no more fix_submap_inheritance ? 404 multiple inheritance ? faster where-is ? no more fix_submap_inheritance ?
@@ -416,7 +408,7 @@ http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg02234.html
416 an example how to do part of this; see the XMenu* functions on msdos.c. 408 an example how to do part of this; see the XMenu* functions on msdos.c.
417 409
418** Implement popular parts of the rest of the CL functions as compiler 410** Implement popular parts of the rest of the CL functions as compiler
419 macros in cl-macs. 411 macros in cl-macs. [Is this still relevant now that cl-lib exists?]
420 412
421** Make compiler warnings about functions that might be undefined at run time 413** Make compiler warnings about functions that might be undefined at run time
422 smarter, so that they know which files are required by the file being 414 smarter, so that they know which files are required by the file being
@@ -457,7 +449,8 @@ http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg02234.html
457 449
458** Allow unknown image types to be rendered via an external program 450** Allow unknown image types to be rendered via an external program
459 converting them to, say, PBM (in the same way as PostScript?). [does 451 converting them to, say, PBM (in the same way as PostScript?). [does
460 doc-view.el do this, or could it be extended to do this?] 452 doc-view.el do this, or could it be extended to do this?
453 Does ImageMagick obsolete this idea?]
461 454
462** Allow displaying an X window from an external program in a buffer, 455** Allow displaying an X window from an external program in a buffer,
463 e.g. to render graphics from Java applets. [gerd and/or wmperry 456 e.g. to render graphics from Java applets. [gerd and/or wmperry
@@ -613,6 +606,7 @@ http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg02234.html
613 There was a special trick to detect mouse press in the lower right 606 There was a special trick to detect mouse press in the lower right
614 corner and track mouse movements, but this did not work well, and was 607 corner and track mouse movements, but this did not work well, and was
615 not scalable to the new Lion "resize on every window edge" behavior. 608 not scalable to the new Lion "resize on every window edge" behavior.
609 [As of trunk r109635, 2012-08-15, the event loop no longer polls.]
616 610
617**** (mouse-avoidance-mode 'banish) then minimize Emacs, will pop window back 611**** (mouse-avoidance-mode 'banish) then minimize Emacs, will pop window back
618up on top of all others 612up on top of all others
@@ -719,12 +713,6 @@ images with lower bit depth.
719*** Decide what to do with some uncommitted imagemagick support 713*** Decide what to do with some uncommitted imagemagick support
720functions for image size etc. 714functions for image size etc.
721 715
722*** Test with more systems.
723Tested on Fedora 12, 14, and the libmagick that ships with it.
724I also tried using an ImageMagick compiled from their SVN, in
725parallel with the one packaged by Fedora, it worked well.
726Ubuntu 8.04 was tested, but it seems it ships a broken ImageMagick.
727
728** nxml mode 716** nxml mode
729 717
730*** High priority 718*** High priority
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5a9af8c42a0..2878db6271f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,21 @@
12013-02-10 Christopher Schmidt <christopher@ch.ristopher.com>
2
3 * minibuf-eldef.el (minibuffer-default--in-prompt-regexps): Handle
4 "foo (bar, default: xxx): " prompts.
5
62013-02-10 Chong Yidong <cyd@gnu.org>
7
8 * files.el (basic-save-buffer-1): Do not set
9 buffer-file-coding-system-explicit (Bug#4533).
10
11 * mail/emacsbug.el (report-emacs-bug): Change binding of
12 report-emacs-bug-insert-to-mailer to C-c M-i (Bug#13510).
13
142013-02-09 Jay Belanger <jay.p.belanger@gmail.com>
15
16 * calc/calc.el (calc-allow-units-as-numbers): New variable.
17 * calc/calc-units.el (calc-convert-units): Use new variable.
18
12013-02-09 Eli Zaretskii <eliz@gnu.org> 192013-02-09 Eli Zaretskii <eliz@gnu.org>
2 20
3 * subr.el (buffer-file-type, default-buffer-file-type): Remove. 21 * subr.el (buffer-file-type, default-buffer-file-type): Remove.
@@ -31,20 +49,19 @@
31 (find-file-binary, find-file-text): Bind coding-system-for-read 49 (find-file-binary, find-file-text): Bind coding-system-for-read
32 instead of file-name-buffer-file-type-alist. 50 instead of file-name-buffer-file-type-alist.
33 51
342013-02-09 Tassilo Horn <tsdh@gnu.org> 522013-02-09 Jambunathan K <kjambunathan@gmail.com>
35 53
36 * doc-view.el: Use (and prefer) soffice as default ODF->PDF 54 * doc-view.el: Use (and prefer) soffice as default ODF->PDF
37 converter (Bug#13622). Patch provided by Jambunathan K 55 converter (Bug#13622).
38 <kjambunathan@gmail.com>. 56 (doc-view-unoconv-program): Make obsolete alias.
39 (doc-view-unoconv-program): Make obsolete variable.
40 (doc-view-odf->pdf-converter-program): New variable. 57 (doc-view-odf->pdf-converter-program): New variable.
41 (doc-view-odf->pdf-converter-function): New variable. 58 (doc-view-odf->pdf-converter-function): New variable.
42 (doc-view-mode-p): Use it. 59 (doc-view-mode-p): Use it.
43 (doc-view-odf->pdf-converter-unoconv): Rename from 60 (doc-view-odf->pdf-converter-unoconv):
44 `doc-view-odf->pdf-converter-unoconv'. 61 Rename from `doc-view-odf->pdf-converter-unoconv'.
45 (doc-view-odf->pdf-converter-soffice): New function. 62 (doc-view-odf->pdf-converter-soffice): New function.
46 (doc-view-convert-current-doc): Use 63 (doc-view-convert-current-doc):
47 `doc-view-odf->pdf-converter-function'. 64 Use `doc-view-odf->pdf-converter-function'.
48 65
492013-02-09 Chong Yidong <cyd@gnu.org> 662013-02-09 Chong Yidong <cyd@gnu.org>
50 67
diff --git a/lisp/calc/calc-units.el b/lisp/calc/calc-units.el
index 72d51d9241c..b334d7b3b45 100644
--- a/lisp/calc/calc-units.el
+++ b/lisp/calc/calc-units.el
@@ -437,17 +437,22 @@ If COMP or STD is non-nil, put that in the units table instead."
437 (list new-units (car default-units)) 437 (list new-units (car default-units))
438 math-default-units-table)))))) 438 math-default-units-table))))))
439 439
440(defvar calc-allow-units-as-numbers)
441
440(defun calc-convert-units (&optional old-units new-units) 442(defun calc-convert-units (&optional old-units new-units)
441 (interactive) 443 (interactive)
442 (calc-slow-wrapper 444 (calc-slow-wrapper
443 (let ((expr (calc-top-n 1)) 445 (let ((expr (calc-top-n 1))
444 (uoldname nil) 446 (uoldname nil)
445 (unitscancel nil) 447 (unitscancel nil)
448 (nouold nil)
446 unew 449 unew
447 units 450 units
448 defunits) 451 defunits)
449 (if (or (not (math-units-in-expr-p expr t)) 452 (if (or (not (math-units-in-expr-p expr t))
450 (setq unitscancel (eq (math-get-standard-units expr) 1))) 453 (setq unitscancel (and
454 calc-allow-units-as-numbers
455 (eq (math-get-standard-units expr) 1))))
451 (let ((uold (or old-units 456 (let ((uold (or old-units
452 (progn 457 (progn
453 (setq uoldname 458 (setq uoldname
@@ -457,6 +462,7 @@ If COMP or STD is non-nil, put that in the units table instead."
457 (read-string "Old units: "))) 462 (read-string "Old units: ")))
458 (if (equal uoldname "") 463 (if (equal uoldname "")
459 (progn 464 (progn
465 (setq nouold unitscancel)
460 (setq uoldname "1") 466 (setq uoldname "1")
461 1) 467 1)
462 (if (string-match "\\` */" uoldname) 468 (if (string-match "\\` */" uoldname)
@@ -469,7 +475,7 @@ If COMP or STD is non-nil, put that in the units table instead."
469 (unless new-units 475 (unless new-units
470 (setq new-units 476 (setq new-units
471 (read-string (concat 477 (read-string (concat
472 (if uoldname 478 (if (and uoldname (not nouold))
473 (concat "Old units: " 479 (concat "Old units: "
474 uoldname 480 uoldname
475 ", new units") 481 ", new units")
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index c35e7650254..db30d53d537 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -426,6 +426,14 @@ when converting units."
426 :version "24.3" 426 :version "24.3"
427 :type 'boolean) 427 :type 'boolean)
428 428
429(defcustom calc-allow-units-as-numbers
430 t
431 "If non-nil, allow unit expressions to be treated like numbers
432when converting units, if the expression can be simplified to be unitless."
433 :group 'calc
434 :version "24.4"
435 :type 'boolean)
436
429(defcustom calc-undo-length 437(defcustom calc-undo-length
430 100 438 100
431 "The number of undo steps that will be preserved when Calc is quit." 439 "The number of undo steps that will be preserved when Calc is quit."
diff --git a/lisp/files.el b/lisp/files.el
index 9fca70d36f7..c9e5d2763fe 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -4646,9 +4646,7 @@ Before and after saving the buffer, this function runs
4646 (basic-save-buffer-2)) 4646 (basic-save-buffer-2))
4647 (basic-save-buffer-2)) 4647 (basic-save-buffer-2))
4648 (if buffer-file-coding-system-explicit 4648 (if buffer-file-coding-system-explicit
4649 (setcar buffer-file-coding-system-explicit last-coding-system-used) 4649 (setcar buffer-file-coding-system-explicit last-coding-system-used))))
4650 (setq buffer-file-coding-system-explicit
4651 (cons last-coding-system-used nil)))))
4652 4650
4653;; This returns a value (MODES EXTENDED-ATTRIBUTES BACKUPNAME), like 4651;; This returns a value (MODES EXTENDED-ATTRIBUTES BACKUPNAME), like
4654;; backup-buffer. 4652;; backup-buffer.
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 57eec01bad5..4c27eea1602 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12013-02-10 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * nnir.el ("nnir"): Add 'virtual ability to nnir backend. (This was
4 done in 2012-07-22 by Andrew Cohen, but I reverted it mistakenly.)
5
12013-02-07 Gábor Vida <gabor.v.vida@ericsson.com> (tiny change) 62013-02-07 Gábor Vida <gabor.v.vida@ericsson.com> (tiny change)
2 7
3 * auth-source.el (auth-source-format-prompt): Don't get confused by 8 * auth-source.el (auth-source-format-prompt): Don't get confused by
diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el
index e0bfcc2b5f5..0e2e76f25be 100644
--- a/lisp/gnus/nnir.el
+++ b/lisp/gnus/nnir.el
@@ -298,7 +298,7 @@ is `(valuefunc member)'."
298(defvoo nnir-address nil 298(defvoo nnir-address nil
299 "The address of the nnir server.") 299 "The address of the nnir server.")
300 300
301(gnus-declare-backend "nnir" 'mail) 301(gnus-declare-backend "nnir" 'mail 'virtual)
302 302
303 303
304;;; User Customizable Variables: 304;;; User Customizable Variables:
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index 995df2fb9a7..47c7087518e 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -1132,17 +1132,20 @@ FORM is a form to evaluate to define the coding-system."
1132 (put (intern name) 'coding-system-define-form form) 1132 (put (intern name) 'coding-system-define-form form)
1133 (setq coding-system-alist (cons (list name) coding-system-alist))))) 1133 (setq coding-system-alist (cons (list name) coding-system-alist)))))
1134 1134
1135;; This variable is set in these three cases: 1135;; This variable is set in these two cases:
1136;; (1) A file is read by a coding system specified explicitly. 1136;; (1) A file is read by a coding system specified explicitly.
1137;; after-insert-file-set-coding sets the car of this value to 1137;; `after-insert-file-set-coding' sets the car of this value to
1138;; coding-system-for-read, and sets the cdr to nil. 1138;; `coding-system-for-read', and sets the cdr to nil.
1139;; (2) A buffer is saved. 1139;; (2) `set-buffer-file-coding-system' is called.
1140;; After writing, basic-save-buffer-1 sets the car of this value
1141;; to last-coding-system-used.
1142;; (3) set-buffer-file-coding-system is called.
1143;; The cdr of this value is set to the specified coding system. 1140;; The cdr of this value is set to the specified coding system.
1144;; This variable is used for decoding in revert-buffer and encoding in 1141;; This variable is used for decoding in `revert-buffer' and encoding
1145;; select-safe-coding-system. 1142;; in `select-safe-coding-system'.
1143;;
1144;; When saving a buffer, if `buffer-file-coding-system-explicit' is
1145;; already non-nil, `basic-save-buffer-1' sets its CAR to the value of
1146;; `last-coding-system-used'. (It used to set it unconditionally, but
1147;; that seems unnecessary; see Bug#4533.)
1148
1146(defvar buffer-file-coding-system-explicit nil 1149(defvar buffer-file-coding-system-explicit nil
1147 "The file coding system explicitly specified for the current buffer. 1150 "The file coding system explicitly specified for the current buffer.
1148The value is a cons of coding systems for reading (decoding) and 1151The value is a cons of coding systems for reading (decoding) and
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index c35809ef648..c1bc7e2e1ab 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -323,7 +323,7 @@ usually do not have translators for other languages.\n\n")))
323 (use-local-map (nconc (make-sparse-keymap) (current-local-map))) 323 (use-local-map (nconc (make-sparse-keymap) (current-local-map)))
324 (define-key (current-local-map) "\C-c\C-i" 'info-emacs-bug) 324 (define-key (current-local-map) "\C-c\C-i" 'info-emacs-bug)
325 (if can-insert-mail 325 (if can-insert-mail
326 (define-key (current-local-map) "\C-cm" 326 (define-key (current-local-map) "\C-c\M-i"
327 'report-emacs-bug-insert-to-mailer)) 327 'report-emacs-bug-insert-to-mailer))
328 (setq report-emacs-bug-send-command (get mail-user-agent 'sendfunc) 328 (setq report-emacs-bug-send-command (get mail-user-agent 'sendfunc)
329 report-emacs-bug-send-hook (get mail-user-agent 'hookvar)) 329 report-emacs-bug-send-hook (get mail-user-agent 'hookvar))
diff --git a/lisp/minibuf-eldef.el b/lisp/minibuf-eldef.el
index 3826a91f0e0..3b59a9c622a 100644
--- a/lisp/minibuf-eldef.el
+++ b/lisp/minibuf-eldef.el
@@ -38,6 +38,7 @@
38(defun minibuffer-default--in-prompt-regexps () 38(defun minibuffer-default--in-prompt-regexps ()
39 `(("\\( (default\\(?: is\\)? \\(.*\\))\\):? \\'" 39 `(("\\( (default\\(?: is\\)? \\(.*\\))\\):? \\'"
40 1 ,(if minibuffer-eldef-shorten-default " [\\2]")) 40 1 ,(if minibuffer-eldef-shorten-default " [\\2]"))
41 ("([^(]+?\\(, default\\(?: is\\)? \\(.*\\)\\)):? \\'" 1)
41 ("\\( \\[.*\\]\\):? *\\'" 1))) 42 ("\\( \\[.*\\]\\):? *\\'" 1)))
42 43
43(defcustom minibuffer-eldef-shorten-default nil 44(defcustom minibuffer-eldef-shorten-default nil
diff --git a/src/ChangeLog b/src/ChangeLog
index 05d69382855..9d8540075de 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,19 @@
12013-02-10 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (move_it_vertically_backward, move_it_by_lines): When
4 text lines are longer than window's screen lines, don't move back
5 too far. This speeds up some redisplay operations. (Bug#13675)
6
72013-02-10 Dmitry Antipov <dmantipov@yandex.ru>
8
9 * syntax.c (scan_sexps_forward): Fix byte position calculation
10 Bug#13664 (a.k.a Bug#13667) introduced with 2013-02-08 change.
11
122013-02-10 Paul Eggert <eggert@cs.ucla.edu>
13
14 * fileio.c (Fexpand_file_name): Omit confusing pointer comparison
15 that was not needed.
16
12013-02-09 Paul Eggert <eggert@cs.ucla.edu> 172013-02-09 Paul Eggert <eggert@cs.ucla.edu>
2 18
3 Minor hashing refactoring. 19 Minor hashing refactoring.
diff --git a/src/fileio.c b/src/fileio.c
index 1b293e3a971..ddf23867104 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1348,8 +1348,8 @@ filesystem tree, not (expand-file-name ".." dirname). */)
1348#ifdef WINDOWSNT 1348#ifdef WINDOWSNT
1349 char *prev_o = o; 1349 char *prev_o = o;
1350#endif 1350#endif
1351 while (o != target && (--o) && !IS_DIRECTORY_SEP (*o)) 1351 while (o != target && (--o, !IS_DIRECTORY_SEP (*o)))
1352 ; 1352 continue;
1353#ifdef WINDOWSNT 1353#ifdef WINDOWSNT
1354 /* Don't go below server level in UNC filenames. */ 1354 /* Don't go below server level in UNC filenames. */
1355 if (o == target + 1 && IS_DIRECTORY_SEP (*o) 1355 if (o == target + 1 && IS_DIRECTORY_SEP (*o)
diff --git a/src/syntax.c b/src/syntax.c
index 42500b0cb76..390d732944d 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -3278,6 +3278,7 @@ do { prev_from = from; \
3278 3278
3279 stop: /* Here if stopping before start of sexp. */ 3279 stop: /* Here if stopping before start of sexp. */
3280 from = prev_from; /* We have just fetched the char that starts it; */ 3280 from = prev_from; /* We have just fetched the char that starts it; */
3281 from_byte = prev_from_byte;
3281 goto done; /* but return the position before it. */ 3282 goto done; /* but return the position before it. */
3282 3283
3283 endquoted: 3284 endquoted:
diff --git a/src/xdisp.c b/src/xdisp.c
index 83a58aee32d..5b2eb1e84c8 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -9046,6 +9046,9 @@ move_it_vertically_backward (struct it *it, int dy)
9046 struct it it2, it3; 9046 struct it it2, it3;
9047 void *it2data = NULL, *it3data = NULL; 9047 void *it2data = NULL, *it3data = NULL;
9048 ptrdiff_t start_pos; 9048 ptrdiff_t start_pos;
9049 int nchars_per_row
9050 = (it->last_visible_x - it->first_visible_x) / FRAME_COLUMN_WIDTH (it->f);
9051 ptrdiff_t pos_limit;
9049 9052
9050 move_further_back: 9053 move_further_back:
9051 eassert (dy >= 0); 9054 eassert (dy >= 0);
@@ -9054,9 +9057,12 @@ move_it_vertically_backward (struct it *it, int dy)
9054 9057
9055 /* Estimate how many newlines we must move back. */ 9058 /* Estimate how many newlines we must move back. */
9056 nlines = max (1, dy / FRAME_LINE_HEIGHT (it->f)); 9059 nlines = max (1, dy / FRAME_LINE_HEIGHT (it->f));
9060 pos_limit = max (start_pos - nlines * nchars_per_row, BEGV);
9057 9061
9058 /* Set the iterator's position that many lines back. */ 9062 /* Set the iterator's position that many lines back. But don't go
9059 while (nlines-- && IT_CHARPOS (*it) > BEGV) 9063 back more than NLINES full screen lines -- this wins a day with
9064 buffers which have very long lines. */
9065 while (nlines-- && IT_CHARPOS (*it) > pos_limit)
9060 back_to_previous_visible_line_start (it); 9066 back_to_previous_visible_line_start (it);
9061 9067
9062 /* Reseat the iterator here. When moving backward, we don't want 9068 /* Reseat the iterator here. When moving backward, we don't want
@@ -9287,6 +9293,9 @@ move_it_by_lines (struct it *it, ptrdiff_t dvpos)
9287 struct it it2; 9293 struct it it2;
9288 void *it2data = NULL; 9294 void *it2data = NULL;
9289 ptrdiff_t start_charpos, i; 9295 ptrdiff_t start_charpos, i;
9296 int nchars_per_row
9297 = (it->last_visible_x - it->first_visible_x) / FRAME_COLUMN_WIDTH (it->f);
9298 ptrdiff_t pos_limit;
9290 9299
9291 /* Start at the beginning of the screen line containing IT's 9300 /* Start at the beginning of the screen line containing IT's
9292 position. This may actually move vertically backwards, 9301 position. This may actually move vertically backwards,
@@ -9295,9 +9304,11 @@ move_it_by_lines (struct it *it, ptrdiff_t dvpos)
9295 move_it_vertically_backward (it, 0); 9304 move_it_vertically_backward (it, 0);
9296 dvpos -= it->vpos; 9305 dvpos -= it->vpos;
9297 9306
9298 /* Go back -DVPOS visible lines and reseat the iterator there. */ 9307 /* Go back -DVPOS buffer lines, but no farther than -DVPOS full
9308 screen lines, and reseat the iterator there. */
9299 start_charpos = IT_CHARPOS (*it); 9309 start_charpos = IT_CHARPOS (*it);
9300 for (i = -dvpos; i > 0 && IT_CHARPOS (*it) > BEGV; --i) 9310 pos_limit = max (start_charpos + dvpos * nchars_per_row, BEGV);
9311 for (i = -dvpos; i > 0 && IT_CHARPOS (*it) > pos_limit; --i)
9301 back_to_previous_visible_line_start (it); 9312 back_to_previous_visible_line_start (it);
9302 reseat (it, it->current.pos, 1); 9313 reseat (it, it->current.pos, 1);
9303 9314