1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-19 01:10:57 -08:00
Commit graph

108502 commits

Author SHA1 Message Date
Dmitry Antipov
afa2ffd81e * xfns.c (xic_create_fontsetname): Remove redundant calls
to memset.
2012-06-25 14:16:11 +04:00
Paul Eggert
4495ff3898 * gtkutil.c (get_utf8_string): Remove redundant assignment.
sprintf already null-terminates its output.
2012-06-25 00:54:45 -07:00
Paul Eggert
b3b4476b09 * xfns.c (x_window): Remove redundant cast. 2012-06-25 00:45:49 -07:00
Glenn Morris
8c3a19aba0 * lisp/progmodes/which-func.el (which-func-format): Bump :version. 2012-06-25 00:11:53 -07:00
Masatake YAMATO
26e8548ea1 * lisp/progmodes/which-func.el (which-func-format): Add mouse-face.
Fixes: debbugs:11698
2012-06-25 00:11:03 -07:00
Dmitry Antipov
b00876c993 * xmenu.c (xmenu_show, xdialog_show): Explicit cast from
`const char *' to `char *' to avoid compiler warning.
2012-06-25 08:05:48 +04:00
Michael Witten
3b6f72805e * doc/emacs/fixit.texi (Undo): Fix typo. (tiny change)
Fixes: debbugs:11775
2012-06-24 16:45:10 -07:00
Paul Eggert
885d1d74a7 * xterm.c (x_term_init): Build proper-sized _XSETTINGS_Snnn string
instead of truncating it to 63 (admittedly a generous limit).
2012-06-24 16:14:39 -07:00
Paul Eggert
d188e26b1a * process.c: Fix spelling and caps in comments. 2012-06-24 13:34:48 -07:00
Dan Nicolaescu
e86db54bb3 * emacs.c (setpgrp): Remove definition, unused. 2012-06-24 14:22:22 -06:00
Dan Nicolaescu
e2f560b1dc * sysdep.c (setpgrp): Remove definition, not used in this file. 2012-06-24 14:13:15 -06:00
Eli Zaretskii
5e0881ddc4 nt/config.nt (_Noreturn): Don't reference __SUNPRO_C.
Fixes: debbugs:11750
2012-06-24 21:31:31 +03:00
Juanma Barranquero
7583a3a10a src/makefile.w32-in: Update dependencies. 2012-06-24 19:57:06 +02:00
Paul Eggert
845ca89390 Switch from NO_RETURN to C11's _Noreturn.
Fixes: debbugs:11750
2012-06-24 10:39:14 -07:00
Eli Zaretskii
696056c280 Improve port of struct timespec to MS-Windows.
lib/makefile.w32-in ($(BLD)/dtotimespec.$(O)):
 ($(BLD)/timespec-add.$(O)):
 ($(BLD)/timespec-sub.$(O)): Don't depend on
 $(EMACS_ROOT)/nt/inc/sys/time.h.
 lib/stat-time.h:
 lib/timespec.h:
 lib/utimens.h: Revert last change.
 src/makefile.w32-in (TIMESPEC_H): Remove nt/inc/sys/time.h.
 (SYSTIME_H): Add nt/inc/sys/time.h.
 src/systime.h [WINDOWSNT]: Include sys/time.h.
 src/s/ms-w32.h (struct timespec): Definition moved from
 nt/inc/sys/time.h.  Suggested by Paul Eggert <eggert@cs.ucla.edu>.
 nt/inc/sys/time.h (struct timespec): Don't define it here, it is
 now defined in src/s/ms-w32.h.

Fixes: debbugs:9000
2012-06-24 20:21:20 +03:00
Lawrence Mitchell
bbf908bc69 * etc/NEWS: Move and improve the defun/defalias changes.
Fixes: debbugs:11686
2012-06-24 13:07:26 -04:00
Dmitry Antipov
3c9359dfe4 First Coccinelle semantic patch.
* coccinelle: New subdirectory
* coccinelle/README: Documentation stub.
* coccinelle/vector_contents.cocci: Semantic patch to replace direct
access to `contents' member of Lisp_Vector objects with AREF and ASET
where appropriate.
2012-06-24 20:18:41 +04:00
Chong Yidong
772b2e2ce2 * xml.el (xml-parse-tag): Corrrectly handle comment embedded in non-tag text. 2012-06-24 23:06:24 +08:00
Glenn Morris
4961643b93 Auto-commit of loaddefs files. 2012-06-24 07:22:20 -04:00
Glenn Morris
0eb4e0df7a Auto-commit of generated files. 2012-06-24 06:17:34 -04:00
Samuel Bronson
dd1ff7c09a * emacsclient.c (set_local_socket): Fix a compiler warning.
Fixes: debbugs:7838
2012-06-24 17:43:09 +08:00
Thien-Thi Nguyen
6d41a41d81 Lisp manual -- improve discussion of ptys vs pipes.
* processes.texi (Asynchronous Processes): Make the pty vs pipe
discussion more prominent.
2012-06-24 17:30:35 +08:00
Paul Eggert
f1dd807386 Fix bug when time_t is unsigned and as wide as intmax_t.
* lisp.h (WAIT_READING_MAX): New macro.
* dispnew.c (Fsleep_for, sit_for):
* keyboard.c (kbd_buffer_get_event):
* process.c (Faccept_process_output):
Use it to avoid bogus compiler warnings with obsolescent GCC versions.
This improves on the previous patch, which introduced a bug
when time_t is unsigned and as wide as intmax_t.
See <http://bugs.gnu.org/9000#51>.
2012-06-23 21:11:19 -07:00
Leo Liu
a08bd6bfef Backport: Avoid buffer read-only error in ibuffer-diff-buffer-with-file-1 2012-06-24 10:41:03 +08:00
Leo Liu
d939b632e1 Backport: Avoid error when process-contact returns t in rcirc 2012-06-24 10:34:52 +08:00
Leo Liu
c101ef0a3c Backport: * Fix typo in diff-file-prev/next 2012-06-24 10:30:51 +08:00
Eli Zaretskii
b82c175521 Avoid compiler warnings in comparing time_t.
src/dispnew.c (sit_for, Fsleep_for):
 src/keyboard.c (kbd_buffer_get_event):
 src/process.c (Faccept_process_output): Avoid compiler warnings when
 comparing a 32-bit time_t with a 64-bit INTMAX_MAX.
2012-06-23 22:40:50 +03:00
Juanma Barranquero
049ec95ba5 src/makefile.w32-in: Update dependencies. 2012-06-23 21:28:01 +02:00
Paul Eggert
10b6eb0d9d Fix misspelling in latest ChangeLog entry. 2012-06-23 10:32:27 -07:00
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
Leo Liu
4bdc63b8b7 Backport: Fix mal-formed defconst in url-http-codes 2012-06-23 21:53:52 +08:00
Leo Liu
e994155e95 * textmodes/enriched.el (enriched-next-annotation):
Use eq.

Fixes: debbugs:11528
2012-06-23 21:33:44 +08: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
Eli Zaretskii
c81b46f68f Backport: 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 14:07:01 +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