Paul Eggert
47d0c0118b
Merge from gnulib.
...
* m4/getopt.m4: Copy new version from gnulib, incorporating:
getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2012-06-23 10:25:56 -07:00
Juanma Barranquero
711b11e1e3
lisp/makefile.w32-in (COMPILE_FIRST): Synch with changes in 2012-06-22T21:24:54Z!monnier@iro.umontreal.ca.
2012-06-23 18:58:13 +02:00
Juanma Barranquero
ca300656a5
src/w32.c (ltime): Add return type and declare static.
...
(w32_get_internal_run_time): Remove usused variable `time_100ns'.
2012-06-23 18:56:47 +02:00
Paul Eggert
db7b8d066d
* sysdep.c [__FreeBSD__]: Fix more recently-introduced typos.
...
Privately reported by Herbert J. Skuhra.
(make_lisp_timeval) [__FreeBSD__]: Rename from TIMELIST.
All uses changed.
(system_process_attributes) [__FreeBSD__]: Invoke make_lisp_time,
not make_lisp_timeval, when the argument is of type EMACS_TIME.
2012-06-23 09:44:45 -07:00
Stefan Monnier
dc5d230cac
Miscellaneous minor cleanups and simplifications.
...
* lisp/help-fns.el (describe-variable): Don't croak when doc is not found.
* lisp/vc/pcvs.el (cvs-retrieve-revision): Avoid toggle-read-only.
* lisp/menu-bar.el (menu-bar-line-wrapping-menu): Purecopy a tiny bit more.
* lisp/emacs-lisp/syntax.el (syntax-ppss): Simplify with new `if' place.
* lisp/emacs-lisp/smie.el (smie-next-sexp): CSE.
* lisp/emacs-lisp/macroexp.el (macroexp-let2): Fix edebug spec and avoid
((lambda ..) ..).
* lisp/emacs-lisp/eieio.el (eieio-oref, slot-value): Use simpler defsetf.
2012-06-23 11:38:23 -04:00
Chong Yidong
e8c1cabf03
Use @ interactive spec for Info-mouse-follow-link.
...
Fixes: debbugs:11672
2012-06-23 21:32:29 +08:00
Chong Yidong
136e1c1d50
Fixes for Info link-following mouse commands.
...
* lisp/info.el (Info-mouse-follow-link): Accept symbol values of the
link-args property. Select the window.
(Info-fontify-node): Use Info-link-keymap for all navigation
buttons, with link-args property to perform the desired action.
(Info-link-keymap): Doc fix.
(Info-next-link-keymap, Info-prev-link-keymap)
(Info-up-link-keymap): Delete now-unused keymaps.
Fixes: debbugs:11672
2012-06-23 21:27:40 +08:00
Chong Yidong
7af107c7a3
Fix last commit.
2012-06-23 20:54:59 +08:00
Chong Yidong
05e89feafd
* mouse.el (mouse-drag-track): Deactivate the mark before popping.
2012-06-23 20:48:24 +08:00
Eli Zaretskii
9651255509
Fix a bug in w32-get-locale-info.
...
src/w32proc.c (Fw32_get_locale_info): Fix an off-by-one error in
last argument of make_unibyte_string.
2012-06-23 15:44:42 +03:00
Eli Zaretskii
0bd8297f9c
Improve and document the language-change event on MS-Windows.
...
src/keyboard.c (kbd_buffer_get_event): Include the codepage and the
language ID in the event parameters.
src/w32term.c (w32_read_socket): Put the new keyboard codepage into
event.code, not the obscure "character set ID".
doc/lispref/commands.texi (Misc Events): Document the language-change event.
2012-06-23 15:39:23 +03:00
Chong Yidong
63def6b6d1
* xmenu.c (x_menu_wait_for_event): Adapt GTK3 to new xg_select.
2012-06-23 18:47:00 +08:00
Eli Zaretskii
388cdec072
Fix the MS-Windows build broken by 2012-06-22T21:17:42Z!eggert@cs.ucla.edu.
...
nt/inc/sys/time.h (struct timespec): Define.
lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/dtotimespec.$(O),
$(BLD)/gettime.$(O), $(BLD)/timespec-add.$(O), and
$(BLD)/timespec-sub.$(O).
($(BLD)/dtotimespec.$(O)):
($(BLD)/gettime.$(O)):
($(BLD)/timespec-add.$(O)):
($(BLD)/timespec-sub.$(O)): New dependencies.
lib/stat-time.h:
lib/timespec.h:
lib/utimens.h: Include sys/time.h
src/w32.c (fdutimens): New function.
src/w32proc.c (sys_select): Adapt to change in the EMACS_TIME type.
src/s/ms-w32.h (pselect): Redirect to sys_select.
src/sysselect.h [WINDOWSNT]: Don't include sys/select.h.
Fixes: debbugs:9000
2012-06-23 13:22:59 +03:00
Glenn Morris
f199cab1a9
Auto-commit of generated files.
2012-06-23 06:17:30 -04:00
Andreas Schwab
54e8a4185f
* configure.in: Don't use AC_CHECK_FUNCS_ONCE, which doesn't use
...
the correct CFLAGS and LIBS.
2012-06-23 11:55:13 +02:00
Eli Zaretskii
e8a022046f
Really fix bug #11519 , by fixing the last change in ralloc.c.
...
src/ralloc.c (r_alloc_inhibit_buffer_relocation): Fix stupid thinko
in the logic of incrementing and decrementing the value of
use_relocatable_buffers.
2012-06-23 12:46:33 +03:00
Chong Yidong
0e9e6c6abc
Mark python-mode abbrevs as system abbrevs.
...
* progmodes/python.el (python-skeleton-define): Mark abbrevs as
system abbrevs.
* ansi-color.el (ansi-color-apply-on-region): Doc fix.
2012-06-23 17:28:10 +08:00
Paul Eggert
d054f3fb9a
* sysdep.c [__FreeBSD__]: Fix recently-introduced typos.
...
Privately reported by Herbert J. Skuhra.
[__FreeBSD__]: Remove "*/" typo after "#include".
(timeval_to_EMACS_TIME) [__FreeBSD__]: New static function.
(TIMEVAL) [__FreeBSD__]: Now a static function rather than a macro.
(TIMEVAL, system_process_attributes) [__FreeBSD__]:
Don't assume EMACS_TIME and struct timeval are the same type.
2012-06-23 01:21:48 -07:00
Stefan Monnier
b68581e26c
* lisp/emacs-lisp/cl-macs.el (cl--make-usage-args): Handle improper lists.
...
Fixes: debbugs:11719
2012-06-23 00:24:06 -04:00
Stefan Monnier
e33c6771f6
* lisp/minibuffer.el (completion--twq-try): Try to fail more gracefully when
...
the requote function doesn't work properly.
Fixes: debbugs:11714
2012-06-22 23:48:18 -04:00
Glenn Morris
7117e105bb
* lisp/pcmpl-rpm.el (pcmpl-rpm-packages): Give status messages.
2012-06-22 21:02:17 -04:00
Paul Eggert
c8fff86301
Add gnulib files to support higher-resolution time stamps.
...
Fixes: debbugs:9000
2012-06-22 14:26:37 -07:00
Stefan Monnier
36cec983d4
Further GV/CL cleanups.
...
* lisp/emacs-lisp/gv.el (gv-get): Autoload functions to find their
gv-expander.
(gv--defun-declaration): New function.
(defun-declarations-alist): Use it.
(gv-define-modify-macro, gv-pushnew!, gv-inc!, gv-dec!): Remove.
(gv-place): Autoload.
* lisp/emacs-lisp/cl.el (cl--dotimes, cl--dolist): Remember subr.el's
original definition of dotimes and dolist.
* lisp/emacs-lisp/cl-macs.el (cl-expr-access-order): Remove unused.
(cl-dolist, cl-dotimes): Use `dolist' and `dotimes'.
* lisp/emacs-lisp/cl-lib.el: Move gv handlers from cl-macs to here.
(cl-fifth, cl-sixth, cl-seventh, cl-eighth)
(cl-ninth, cl-tenth): Move gv handler to the function's definition.
* lisp/emacs-lisp/cl-extra.el (cl-subseq, cl-get, cl-getf): Move gv handler
to the function's definition.
* lisp/Makefile.in (COMPILE_FIRST): Re-order to speed it up by about 50%.
* lisp/window.el:
* lisp/files.el:
* lisp/faces.el:
* lisp/env.el: Don't use CL.
2012-06-22 17:24:54 -04:00
Paul Eggert
d35af63cd6
Support higher-resolution time stamps.
...
Fixes: debbugs:9000
2012-06-22 14:17:42 -07:00
Stefan Monnier
f143bfe38b
* lisp/icomplete.el (icomplete-minibuffer-setup, icomplete-completions):
...
Move the non-essential binding to the post/pre-command-hook where it is
more obviously correct.
2012-06-22 13:37:28 -04:00
Stefan Monnier
ac77b21adb
* lisp/subr.el (read-passwd): Don't use a history at all.
...
* lisp/savehist.el (savehist-save): Remove password saved accidentally
because of the above bug.
2012-06-22 13:30:25 -04:00
Paul Eggert
057306483c
Merge from gnulib.
...
* lib/filemode.h, lib/signal.in.h, lib/stat.c, lib/stdint.in.h:
* lib/stdlib.in.h, lib/unistd.in.h, m4/extensions.m4, m4/getloadavg.m4:
* m4/getopt.m4, m4/gnulib-common.m4, m4/largefile.m4, m4/mktime.m4:
* m4/multiarch.m4, m4/nocrash.m4, m4/stdio_h.m4, m4/time_r.m4:
Copy new versions from gnulib, incorporating the following changes:
2012-06-22 time_r: fix typo that always overrode localtime_r decl
2012-06-22 Write "Mac OS X" instead of "MacOS X".
2012-06-21 mktime: fix integer overflow in 'configure'-time test
2012-06-21 nonblocking: Avoid compilation error on mingw64.
2012-06-19 stat, fstat: Avoid warnings on mingw64.
2012-06-19 getopt-gnu: Fix exit code overflow in autoconf test.
2012-06-22 10:20:00 -07:00
Glenn Morris
b57b344b51
Improve pcmpl-rpm-query-options custom type
2012-06-22 09:00:34 -07:00
Bastien Guerry
76386c5a98
Fix bug #11726 -- send a message after `toggle-read-only'.
...
Thanks to Drew Adam for reporting this.
2012-06-22 16:12:42 +02:00
Stefan Monnier
2ee3d7f0aa
Provide generalized variables in core Elisp.
...
* lisp/emacs-lisp/gv.el: New file.
* lisp/subr.el (push, pop): Extend to generalized variables.
* lisp/loadup.el (macroexp): Unload if preloaded and uncompiled.
* lisp/emacs-lisp/cl-lib.el (cl-pop, cl-push, cl--set-nthcdr): Remove.
* lisp/emacs-lisp/cl-macs.el: Require gv. Use gv-define-setter,
gv-define-simple-setter, and gv-define-expander.
Remove setf-methods defined in gv. Rename cl-setf -> setf.
(cl-setf, cl-do-pop, cl-get-setf-method): Remove.
(cl-letf, cl-letf*, cl-define-modify-macro, cl-defsetf)
(cl-define-setf-expander, cl-struct-setf-expander): Move to cl.el.
(cl-remf, cl-shiftf, cl-rotatef, cl-callf, cl-callf2): Rewrite with
gv-letplace.
(cl-defstruct): Don't define setf-method any more.
* lisp/emacs-lisp/cl.el (flet): Don't autoload.
(cl--letf, letf, cl--letf*, letf*, cl--gv-adapt)
(define-setf-expander, defsetf, define-modify-macro)
(cl-struct-setf-expander): Move from cl-lib.el.
* lisp/emacs-lisp/syntax.el:
* lisp/emacs-lisp/ewoc.el:
* lisp/emacs-lisp/smie.el:
* lisp/emacs-lisp/cconv.el:
* lisp/emacs-lisp/timer.el: Rename cl-setf -> setf, cl-push -> push.
(timer--time): Use gv-define-simple-setter.
* lisp/emacs-lisp/macroexp.el (macroexp-let2): Rename from macroexp-let²
to avoid coding-system problems in subr.el. Adjust all users.
(macroexp--maxsize, macroexp-small-p): New functions.
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Don't use cl-letf.
* lisp/scroll-bar.el (scroll-bar-mode):
* lisp/simple.el (auto-fill-mode, overwrite-mode, binary-overwrite-mode)
(normal-erase-is-backspace-mode): Don't use the `eq' place.
* lisp/winner.el (winner-configuration, winner-make-point-alist)
(winner-set-conf, winner-get-point, winner-set): Don't abuse letf.
* lisp/files.el (locate-file-completion-table): Avoid list*.
Fixes: debbugs:11657
2012-06-22 09:42:38 -04:00
Glenn Morris
575db3f1a8
Further speed up rpm completion, by caching the installed packages
...
* lisp/pcmpl-rpm.el (pcmpl-rpm-cache): New option.
(pcmpl-rpm-cache-stamp-file): New constant.
(pcmpl-rpm-cache-time, pcmpl-rpm-packages): New variables.
(pcmpl-rpm-packages): Optionally cache list of packages.
2012-06-22 00:38:26 -07:00
Chong Yidong
c5695d1d09
Misc doc fixes for Dired.
...
* dired-aux.el (dired-do-create-files): Doc fix (Bug#11327).
(dired-create-files): Doc fix (Bug#11329).
(dired-do-copy): Doc fix (Bug#11334).
(dired-mark-read-string): Doc fix (Bug#11553).
* dired.el (dired-recursive-copies, dired-recursive-deletes): Doc
fix (Bug#11326).
(dired-make-relative): Doc fix (Bug#11332). Remove unused arg.
(dired-dwim-target): Doc fix.
* wdired.el (wdired-mode): Doc fix.
2012-06-22 15:30:33 +08:00
Chong Yidong
b6a92dfe32
* xdisp.c (x_consider_frame_title): Revert last change.
2012-06-22 15:28:28 +08:00
Glenn Morris
a4c8dd51c1
Try to speed up pcomplete's calling of rpm -qa
...
Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-04/msg00174.html
* lisp/pcmpl-rpm.el (pcmpl-rpm): New group.
(pcmpl-rpm-query-options): New option.
(pcmpl-rpm-packages): No need to inline it. Use pcmpl-rpm-query-options.
2012-06-22 00:01:32 -07:00
Eli Zaretskii
d251c37c72
Enlarge NSTATICS to 0x650.
...
src/alloc.c (NSTATICS): Enlarge to 0x650. Otherwise, Emacs compiled
with -DENABLE_CHECKING -DXASSERTS -DGLYPH_DEBUG=1 -DBYTE_CODE_METER
aborts in staticpro during startup. (Without -DBYTE_CODE_METER,
staticidx goes up to 1597 out of 1600 = 0x640.)
2012-06-22 09:51:06 +03:00
Glenn Morris
89b5595ade
* calendar.el (calendar-in-read-only-buffer): Avoid some needless mode changes.
2012-06-21 21:50:35 -04:00
Chong Yidong
a3f10d3e4b
* url.el (url-retrieve-internal): Fix last change.
...
Fixes: debbugs:11627
2012-06-21 17:21:28 +08:00
Glenn Morris
ac1a0ce1c6
Merge from emacs-24; up to 2012-04-26T03:04:36Z!cyd@gnu.org
2012-06-21 00:34:27 -07:00
Chong Yidong
6b67c0d4c9
* desktop.el (desktop-read): Use user-emacs-directory if desktop-path is nil.
2012-06-21 15:25:56 +08:00
Chong Yidong
e76f0800d2
Fixes to desktop reading logic.
...
* desktop.el (desktop-read): Don't prompt if daemon.
(desktop-path): Remove . from the default value.
2012-06-21 15:15:42 +08:00
Paul Eggert
f10deafb12
* fileio.c (Fdefault_file_modes): Block input while fiddling with umask.
...
Otherwise, the umask might be mistakenly 0 while handling input signals.
2012-06-20 14:20:06 -07:00
Chong Yidong
297a8f1ddb
term.el (term-send-raw-meta): Make C-M-<char> keys work (Bug#8172).
...
-------------- This lime and the following will be ignored --------------
modified:
lisp/ChangeLog
lisp/term.el
2012-06-20 12:21:57 -04:00
David Röthlisberger
d34c18b1c9
* lisp/ido.el (ido-switch-buffer, ido-find-file): Fix up doc of C-j.
...
Fixes: debbugs:11201
2012-06-20 11:51:34 -04:00
Chong Yidong
6ff7caa835
Change term.el to use font-lock.
...
* term.el (term-mode): Set font-lock-defaults.
(term-move-columns, term-insert-char, term-emulate-terminal)
(term-erase-in-line, term-insert-spaces): Use font-lock-face.
Fixes: debbugs:7692
2012-06-20 17:21:06 +08:00
Chong Yidong
32f7f28e02
Fixes to window size calculations in term.el.
...
* term.el (term-window-width): Handle the case of a missing right
fringe.
(term-check-size): Use window-text-height.
(term-mode): Use define-derived-mode. Minor cleanups.
Fixes: debbugs:8837
2012-06-20 16:34:21 +08:00
Michael Albinus
493c66882d
* net/ange-ftp.el (ange-ftp-get-passwd): Bind
...
`enable-recursive-minibuffers'.
(ange-ftp-get-process): Throw if `non-essential' is non-nil.
2012-06-20 08:51:53 +02:00
Paul Eggert
8b5257e1d4
Fix misspelling of Dmitry's last name in ChangeLog.
2012-06-19 11:57:39 -07:00
David Röthlisberger
3f06ecf4f6
* lisp/ido.el (ido-find-file): Mention C-d binding in docstring.
...
Fixes: debbugs:11244
2012-06-19 14:17:14 -04:00
Stefan Monnier
ec6de1e2ee
* src/minibuf.c (Fread_string): Bind minibuffer-completion-table.
2012-06-19 13:05:41 -04:00
Dmitry Antipov
28be1ada0f
* alloc.c, bytecode.c, ccl.c, coding.c, composite.c, data.c, dosfns.c:
...
* font.c, image.c, keyboard.c, lread.c, menu.c, minibuf.c, msdos.c:
* print.c, syntax.c, window.c, xmenu.c, xselect.c: Replace direct
access to `contents' member of Lisp_Vector objects with AREF and ASET
where appropriate.
2012-06-19 20:56:28 +04:00