1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00
Commit Graph

106238 Commits

Author SHA1 Message Date
Dmitry Antipov
3511c78479 * configure.in (AC_CHECK_FUNCS): Detect library functions
strcasecmp and strncasecmp.
* lib-src/etags.c (etags_strcasecmp, etags_strncasecmp): Define to
library functions strcasecmp and strncasecmp if available.
* lwlib/lwlib.c (my_strcasecmp): Rename to lwlib_strcasecmp, which
may be defined to library function strcasecmp if available.
* src/dispextern.c (xstrcasecmp): Define to library function
strcasecmp if available.
* src/xfaces.c: Do not use xstrcasecmp if strcasecmp is available.
2012-06-25 18:07:04 +04:00
Andreas Schwab
fb7da12e75 * keyboard.c (menu_bar_items, menu_bar_item, read_key_sequence):
Avoid comma operator.
* menu.c (push_submenu_start, push_submenu_end)
(push_left_right_boundary, push_menu_pane): Likewise.
* msdos.c (dos_rawgetc): Likewise.
2012-06-25 12:28:47 +02:00
Glenn Morris
75d5be5c60 Auto-commit of generated files. 2012-06-25 06:17:31 -04:00
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
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
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
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
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
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