summaryrefslogtreecommitdiff
path: root/lib-src
Commit message (Collapse)AuthorAgeFilesLines
* Allow emacsclient to set parameters of new graphical frames (bug#5864)Andreas Rottmann2011-06-252-0/+20
| | | | | | | | | | | | * lib-src/emacsclient.c (longopts, decode_options, main): Add frame-parameters. * lisp/server.el (server-create-window-system-frame): Add parameters arg. (server-process-filter): Doc fix. Handle frame-parameters. * doc/emacs/misc.texi (emacsclient Options): Mention --frame-parameters. * doc/man/emacsclient.1: Mention --frame-parameters. * etc/NEWS: Mention this.
* * movemail.c: Fix race condition and related bugs (Bug#8836).Paul Eggert2011-06-102-11/+34
| | | | | | | | | (main) [!MAIL_USE_SYSTEM_LOCK]: Prefer mkstemp to mktemp, as this fixes some race conditions. Report mkstemp/mktemp errno rather than a possibly-garbage errno. Reinitialize the template each time through the loop, as earlier mkstemp/mktemp calls could have trashed it. Pass 0600 (not 0666) to mktemp, for consistency with mkstemp; the permissions don't matter anyway.
* * lib-src/emacsclient.c (socket_status): Use constant pointer.Dan Nicolaescu2011-06-012-1/+5
|
* [ChangeLog]Paul Eggert2011-05-283-9/+8
| | | | | | | | | | | | | | | | | | | | Use 'inline', not 'INLINE'. * configure.in, autogen/config.in (INLINE): Remove. [lib-src/ChangeLog] Use 'inline', not 'INLINE'. * etags.c (hash): Now inline unconditionally. * make-docfile.c (put_char): inline, not INLINE. [nt/ChangeLog] Use 'inline', not 'INLINE'. * config.nt (INLINE): Remove. [src/ChangeLog] Use 'inline', not 'INLINE'. * alloc.c, fontset.c (INLINE): Remove. * alloc.c, bidi.c, charset.c, coding.c, dispnew.c, fns.c, image.c: * intervals.c, keyboard.c, process.c, syntax.c, textprop.c, w32term.c: * xdisp.c, xfaces.c, xterm.c: Replace all uses of INLINE with inline. * gmalloc.c (register_heapinfo): Use inline unconditionally. * lisp.h (LISP_MAKE_RVALUE): Use inline, not __inline__.
* * lib-src/Makefile.in (all, clean): Use $EXE_FILES.Glenn Morris2011-05-252-2/+3
|
* Small further clean-up in lib-src/Makefile.inGlenn Morris2011-05-242-14/+14
| | | | | | | | * lib-src/Makefile.in (.c.o): Remove (every .o file has an explicit rule). (insrcdir): New. (stamp-rcs2log, stamp-rcs-checkin, stamp-grep-changelog, stamp-vcdiff): Use $insrcdir to suppress unaesthetic ignored errors. (clean): Simplify list of things to delete.
* * lib-src/Makefile.in (movemail${EXEEXT}): Build in one step, not via .o file.Glenn Morris2011-05-242-5/+4
|
* Tiny simplifications in lib-src/Makfile.inGlenn Morris2011-05-242-6/+8
| | | | | * lib-src/Makfile.in (REGEXPOBJ, REGEXPDEPS): Remove. Replace by expansion. (etags${EXEEXT}): Just depend on regex.o, not regex.h as well.
* * lib-src/Makefile.in (update-game-score${EXEEXT}): Use a single rule.Glenn Morris2011-05-232-7/+7
|
* * lib-src/etags.c: Fix typo in previous comment change.Glenn Morris2011-05-201-1/+1
|
* * lib-src/etags.c: Comment.Glenn Morris2011-05-201-2/+5
|
* Remove the SOME_MACHINE_LISP distinction in src/Makefile.in.Glenn Morris2011-05-182-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See discussion in http://debbugs.gnu.org/8302 * configure.in (NS_SUPPORT, MOUSE_SUPPORT, TOOLTIP_SUPPORT) (WINDOW_SUPPORT): Remove output variables that are no longer used. * lib-src/makefile.w32-in (echolisp): Remove rule that is no longer needed. (clean): No more echolisp.tmp. * .bzrignore: Remove lib-src/echolisp.tmp. * lisp/emacs-lisp/autoload.el (batch-update-autoloads): Set autoload-excludes by parsing lisp/loadup.el rather than Makefiles. * lisp/loadup.el: Update commentary. * msdos/sed1x.inp (TOOLTIP_SUPPORT, WINDOW_SUPPORT): * msdos/sed1v2.inp (MSDOS_SUPPORT, NS_SUPPORT, MOUSE_SUPPORT) (TOOLTIP_SUPPORT, WINDOW_SUPPORT): No need to edit these any more. * src/Makefile.in (MSDOS_SUPPORT_REAL, MSDOS_SUPPORT, NS_SUPPORT) (REAL_MOUSE_SUPPORT, GPM_MOUSE_SUPPORT, MOUSE_SUPPORT, TOOLTIP_SUPPORT) (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT, WINDOW_SUPPORT): Remove. (lisp): Set the order to that of loadup.el. (shortlisp): Make it a copy of $lisp. (SOME_MACHINE_LISP): Remove. ($(etc)/DOC): Depend just on $lisp, not $SOME_MACHINE_LISP too. Use just $shortlisp, not $SOME_MACHINE_LISP too.
* Remove lib-src/fakemail.c.Glenn Morris2011-05-174-761/+11
| | | | | | | | | | | | | | | | | | | | * lib-src/fakemail.c: Remove file. * lib-src/Makefile.in (UTILITIES): Remove fakemail${EXEEXT}. (fakemail${EXEEXT}): Remove rule. * lib-src/makefile.w32-in ($(BLD)/fakemail.exe, fakemail) ($(BLD)/fakemail.$(O)): Remove. * lisp/mail/sendmail.el (sendmail-program): Fall back to just "sendmail". * lisp/mail/feedmail.el: Update commentary. * doc/emacs/ack.texi (Acknowledgments): Remove fakemail.c. * etc/NEWS: Mention this. * INSTALL: Remove fakemail.
* Fix verb tense in ChangeLog message.Ted Zlatanov2011-04-261-1/+1
|
* Add GnuTLS support for W32.Ted Zlatanov2011-04-242-1/+6
| | | | * lib-src/makefile.w32-in (obj): Added gnutls.o.
* Static checks with GCC 4.6.0 and non-default toolkits.Paul Eggert2011-04-164-19/+40
|\
| * * pop.c: Undo previous change.Paul Eggert2011-04-162-5/+1
| |
| * * pop.c (socket_connection): Double-cast to avoid GCC warningPaul Eggert2011-04-162-1/+5
| | | | | | | | about alignment.
| * * movemail.c (mail_spool_name): Protoize.Paul Eggert2011-04-162-6/+18
| | | | | | | | | | (main): Remove unused var. Mark var as initialized. Move locals to avoid shadowing, and use time_t for times.
| * * fakemail.c (xmalloc, xreallc): Use standard C prototypesPaul Eggert2011-04-162-9/+12
| | | | | | | | with void *. This avoids warnings about pointer casts.
| * * emacsclient.c (main): Don't use uninitialized var.Paul Eggert2011-04-162-4/+8
|/ | | | | (IS_ANY_SEP): Remove; unused. (get_current_dir_name): Add an extern decl.
* Update and split ChangeLogs.Juanma Barranquero2011-04-061-0/+4
|
* Fix more problems found by GCC 4.6.0's static checks.Paul Eggert2011-04-053-1/+18
|\
| * * emacsclient.c (message): Mark it as a printf-like function.Paul Eggert2011-04-052-0/+5
| |
| * * make-docfile.c (IF_LINT): New macro, copied from emacsclient.c.Paul Eggert2011-04-012-1/+13
|/ | | | (write_c_args): Use it to suppress GCC warning.
* Fix more problems found by GCC 4.6.0's static checks.Paul Eggert2011-03-292-4/+7
|\
| * * etags.c (just_read_file): Remove dummy variable and simplify.Paul Eggert2011-03-282-4/+6
|/
* Remove (RET)SIGTYPE; it is identical to void on all supported systems.Glenn Morris2011-03-262-3/+7
| | | | | | | | | | | | | | | | | | | | | | Ref: http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg01068.html * configure.in (AC_TYPE_SIGNAL): Remove obsolete macro. (AH_BOTTOM): Do not define SIGTYPE. * lib-src/emacsclient.c: Replace SIGTYPE with void. * nt/config.nt: Remove RETSIGTYPE, SIGTYPE (identical to void). * src/syssignal.h: Replace RETSIGTYPE with void. * src/atimer.c, src/data.c, src/dispnew.c, src/emacs.c, src/floatfns.c: * src/keyboard.c, src/keyboard.h, src/lisp.h, src/process.c, src/sysdep.c: * src/xterm.c: Replace SIGTYPE with void everywhere. * src/s/template.h (SIGTYPE): Remove commented out definition. * src/s/usg5-4-common.h (SIGTYPE): Remove definition. * admin/CPP-DEFINES: Remove SIGTYPE.
* w32: Fix some warnings reported by -Wall -Wextra.Juanma Barranquero2011-03-232-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lib-src/ntlib.c: Include <ctype.h>. * nt/cmdproxy.c: Include <ctype.h>. (make_absolute): Remove unused variable `i'. * src/w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'. (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer. (Fx_close_connection): Remove unused variable `i'. * src/w32font.c (w32font_draw): Return number of glyphs. (w32font_open_internal): Remove unused variable `i'. (w32font_driver): Add missing initializer. * src/w32menu.c (utf8to16): Remove unused variable `utf16'. (fill_in_menu): Remove unused variable `items_added'. * src/w32term.c (last_mouse_press_frame): Remove static global variable. (w32_clip_to_row): Remove unused variable `f'. (x_delete_terminal): Remove unused variable `i'. * src/w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'. (NOTHING): Remove unused static global variable. (uniscribe_check_otf): Remove unused variable `table'. (uniscribe_font_driver): Add missing initializers.
* Replace mkinstalldirs with `install-sh -d', as automake recommends.Glenn Morris2011-03-222-2/+7
| | | | | | | | | | | | | | | | * Makefile.in (mkdir): Use `install-sh -d' instead of mkinstalldirs. (sync-from-gnulib): Don't sync mkinstalldirs. * make-dist: Don't distribute mkinstalldirs. * leim/Makefile.in (install): Use `install-sh -d' rather than mkinstalldirs. * lib-src/Makefile.in ($(DESTDIR)${archlibdir}): Use `install-sh -d' rather than mkinstalldirs. * configure.in, doc/emacs/Makefile.in: Update comments. * admin/notes/copyright: Remove mkinstalldirs.
* Fix more problems found by GCC 4.5.2's static checks.Paul Eggert2011-03-226-39/+67
|\
| * * ebrowse.c: Use size_t, not int, for sizes.Paul Eggert2011-03-212-12/+17
| | | | | | | | | | | | | | | | This avoids a warning with gcc -Wstrict-overflow, and works better for very large objects. (inbuffer_size): Now size_t. All uses changed. (xmalloc, xrealloc, operator_name, process_file): Use size_t for sizes. Don't bother testing whether a size_t value can be negative.
| * * etags.c (Ada_funcs): Redo slightly to avoid overflow warning.Paul Eggert2011-03-212-1/+3
| |
| * etags: In Prolog functions, don't assume int fits in size_t.Paul Eggert2011-03-212-16/+22
| | | | | | | | | | | | | | This avoids a warning with gcc -Wstrict-overflow. * etags.c (Prolog_functions, prolog_pr, prolog_atom): Use size_t, not int, to store sizes. (prolog_atom): Return 0, not -1, on error. All callers changed.
| * Add Bug#.Paul Eggert2011-03-211-2/+2
| |
| * update-game-score: fix bug with -rPaul Eggert2011-03-212-6/+14
| | | | | | | | | | | | | | * update-game-score.c (main): Don't set 'scores' to garbage when -r is specified and scorecount != MAX_SCORES. This bug was introduced in the 2002-04-10 change, and was found with gcc -Wstrict-overflow (GCC 4.5.2, x86-64).
| * [ChangeLog]Paul Eggert2011-03-203-4/+11
|/ | | | | | | | | | | | | | fakemail: Remove dependency on ignore-value. * Makefile.in (GNULIB_MODULES): Add stdio. * lib/stdio.in.h, m4/stdio_h.m4: New files, automatically imported from gnulib. [lib-src/ChangeLog] fakemail: Remove dependency on ignore-value. This undoes some of the recent fakemail-related changes. It is made possible due to recent changes to gnulib's stdio module. * Makefile.in (fakemail${EXEEXT}): Do not depend on ignore-value.h. * fakemail.c: Do not include ignore-value.h. (put_line): Do not use ignore_value.
* Remove unnecessary "(tiny change)" markers.Juanma Barranquero2011-03-071-1/+1
|
* Add --quiet option for emacsclient (bug#663) (tiny change)Drake Wilson2011-03-022-4/+20
| | | | | | | | | * lib-src/emacsclient.c (longopts): Add quiet. (decode_options): Handle q/quiet. (print_help_and_exit): Add q/quiet. (main): Suppress some messages if quiet option is used. * doc/emacs/misc.texi (emacsclient Options): Add q/quiet.
* Fix dependencies following 2011-02-26T05:54:36Z!eggert@cs.ucla.edu.Eli Zaretskii2011-02-262-1/+3
| | | | lib-src/Makefile.in (fakemail${EXEEXT}): Depend on lib/ignore-value.h.
* Fix the MS-Windows build after 2011-02-26T05:54:36Z!eggert@cs.ucla.edu.Eli Zaretskii2011-02-262-6/+29
| | | | | | emacsclient.c (xstrdup) [WINDOWSNT]: Function added back. (w32_getenv): Use xstrdup to return all values in malloc'ed storage.
* * ebrowse.c (BROWSE_STRUCT): Remove unused macro.Paul Eggert2011-02-252-1/+1
|
* * ebrowse.c (parse_qualified_param_ident_or_type): Make it clearPaul Eggert2011-02-252-1/+8
| | | | | to reader (and to the compiler) that the loop always executes at least once. This prevents a warning with recent GCC.
* * fakemail.c: Include <ignore-value.h>.Paul Eggert2011-02-252-3/+18
| | | | | | | | | (put_line): Explicitly ignore fwrite return value, for benefit of recent glibc + gcc. (close_the_streams): Diagnose output errors instead of merely exiting with nonzero status. (my_fclose, main): Diagnose input errors, and exit with nonzero status. Formerly, input errors were silently ignored.
* * ebrowse.c (insert_keyword): Rename parameter to avoid shadowing diagnostic.Paul Eggert2011-02-252-3/+4
|
* * ebrowse.c (putstr): Rename from PUTSTR and turn into a function.Paul Eggert2011-02-252-29/+36
| | | | | All callers changed. This is cleaner, and avoids GCC warnings about passing NULL to fputs.
* * emacsclient.c (IF_LINT): New macro.Paul Eggert2011-02-252-2/+14
| | | | | (set_local_socket, main): Use it to suppress warnings with GCC -Wuninitialized.
* * emacsclient.c (xstrdup): Remove; no longer needed.Paul Eggert2011-02-252-23/+14
| | | | | | | (get_current_dir_name, w32_getenv, get_server_config, find_tty): (set_local_socket, main): Use const char *, not char *, for pointers that are not assigned through.
* * emacsclient.c (main): Avoid dangling 'if'.Paul Eggert2011-02-252-15/+17
|
* * emacsclient.c: Redo local variables to avoid shadowing problems.Paul Eggert2011-02-252-8/+14
| | | | | | (message, socket_status, start_daemon_and_retry_set_socket): Rename locals. (main): Move decl of "i".