Paul Eggert
56adbe62a5
* xfaces.c: Don't assume buffer size fits in 'int'.
2012-08-02 02:20:01 -07:00
Paul Eggert
c71f515666
* xfaces.c (face_at_buffer_position): Remove unused local.
2012-08-02 01:47:07 -07:00
Paul Eggert
f162bcc31c
Use C99-style 'extern inline' if available.
...
* lib-src/profile.c (SYSTIME_INLINE): Define.
* nt/config.nt: Sync with autogen/config.in.
(_GL_INLINE, _GL_EXTERN_INLINE, _GL_INLINE_HEADER_BEGIN)
(_GL_INLINE_HEADER_END): New macros.
* src/buffer.h (BUFFER_INLINE):
* src/category.h (CATEGORY_INLINE):
* src/character.h (CHARACTER_INLINE):
* src/charset.h (CHARSET_INLINE):
* src/composite.h (COMPOSITE_INLINE):
* src/dispextern.h (DISPEXTERN_INLINE):
* src/lisp.h (LISP_INLINE):
* src/systime.h (SYSTIME_INLINE):
New macro, replacing 'static inline' in this header.
* src/buffer.h, src/category.h, src/character.h, src/charset.h:
* src/composite.h, src/dispextern.h, lisp.h, systime.h:
Use INLINE_HEADER_BEGIN, INLINE_HEADER_END.
* src/alloc.c (LISP_INLINE):
* src/buffer.c (BUFFER_INLINE):
* src/category.c (CATEGORY_INLINE):
* src/character.c (CHARACTER_INLINE):
* src/charset.c (CHARSET_INLINE):
* src/composite.c (COMPOSITE_INLINE):
* src/dispnew.c (DISPEXTERN_INLINE):
* src/sysdep.c (SYSTIME_INLINE):
Define to EXTERN_INLINE, so that the corresponding functions
are compiled into code.
* src/conf_post.h (INLINE, EXTERN_INLINE, INLINE_HEADER_BEGIN)
(INLINE_HEADER_END): New macros.
* src/lisp.h (PSEUDOVECTOR_FLAG): Now a macro as well as a constant,
since it's used in non-static inline functions now.
2012-08-02 00:31:34 -07:00
Glenn Morris
6edd2f3de3
Comment
2012-08-01 23:43:13 -07:00
Glenn Morris
d66b744dc3
* src/s/: Remove empty directory.
...
* make-dist: Remove src/s.
2012-08-01 23:21:48 -07:00
Glenn Morris
837b365b2a
Move NT-specific include file to the NT include directory
...
* nt/inc/ms-w32.h: Move here from ../src/s.
* nt/config.nt (config_opsysfile): Change to <ms-w32.h>.
* s/ms-w32.h: Move to ../nt/inc.
* src/makefile.w32-in (TAGS, TAGS-gmake, MS_W32_H):
Update for new ms-w32.h location.
* lib-src/makefile.w32-in (MS_W32_H): Update for new ms-w32.h location.
* lib/makefile.w32-in (MS_W32_H): Update for new ms-w32.h location.
* lisp/emacs-lisp/authors.el (authors-renamed-files-alist): Add ms-w32.h.
2012-08-01 23:19:48 -07:00
Paul Eggert
13294f9517
Port to Solaris 8.
...
Without this change, 'configure' fails because the recently-added
wait3 prototype in config.h messes up later 'configure' tests.
Fix this problem by droping wait3 and WRETCODE, as they're
no longer needed on hosts that are current porting targets.
* configure.ac (wait3, WRETCODE): Remove, fixing a FIXME.
All uses changed to waitpid and WEXITSTATUS.
* src/syswait.h (WRETCODE): Remove, consistently with ../configure.ac.
2012-08-01 21:14:48 -07:00
Glenn Morris
90df0db330
* src/nsterm.m (ns_exec_path, ns_load_path): Use SEPCHAR
...
(rather than hard-coding the path separator).
2012-08-01 21:06:38 -07:00
Paul Eggert
3f750e43e8
Avoid needless autoheader after autogen.sh.
...
* src/stamp-h.in: Remove from bzr repository; no longer needed there.
* .bzrignore: Add it.
* autogen.sh: Create it.
2012-08-01 18:59:19 -07:00
Paul Eggert
4939150cb4
Use "ASET (a, i, v)" rather than "AREF (a, i) = v".
...
This how ASET and AREF are supposed to work, and makes
it easier to think about future improvements. See
<http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00026.html >.
* charset.h (set_charset_attr): New function.
All lvalue-style uses of CHARSET_DECODER etc. changed to use it.
* lisp.h (ASET): Rewrite so as not to use AREF in an lvalue style.
(aref_addr): New function. All uses of &AREF(...) changed.
(set_hash_key, set_hash_value, set_hash_next, set_hash_hash)
(set_hash_index): New functions. All lvalue-style uses of
HASH_KEY etc. changed.
* keyboard.c (set_prop): New function. All lvalue-style uses
of PROP changed.
2012-08-01 13:51:44 -07:00
Alp Aker
947b2afddc
* nsterm.m (ns_set_vertical_scroll_bar, ns_redeem_scroll_bar)
...
(EmacsWindow-accessibilityAttributeValue, EmacsScroller-initFrame:)
(EmacsScroller-dealloc): Adjust to use WVAR. (Bug#12114)
* nsfns.m (ns_set_name_as_filename): Likewise.
* nsmenu.m (ns_update_menubar): Likewise.
* nsselect.m (symbol_to_nsstring): Adjust to use SVAR.
2012-08-01 16:15:30 -04:00
Eli Zaretskii
75e3caf91e
More fixes in .gdbinit.
2012-08-01 19:31:59 +03:00
Eli Zaretskii
288479f65c
Fix typo in src/ChangeLog.
2012-08-01 19:30:13 +03:00
Eli Zaretskii
2008beae39
Fix .gdbinit for latest INTERNAL_FIELD uses.
...
src/.gdbinit (xcar, xcdr, xlist, xwindow, nextcons, xprintsym):
Adapt to latest changes in field names of the corresponding Lisp
objects.
2012-08-01 19:28:58 +03:00
Eli Zaretskii
4f5d0325f3
Fix fallout from 2012-08-01T05:11:36Z!dmantipov@yandex.ru that introduced WVAR.
...
src/xdisp.c (try_window_id): Use WVAR in IF_DEBUG code.
2012-08-01 18:39:21 +03:00
Glenn Morris
bb2e3a6e4f
Alphabetic order is proving tricky today
2012-08-01 08:33:09 -07:00
Glenn Morris
aac1c9ac83
Alphabetical order
2012-08-01 08:25:43 -07:00
Glenn Morris
2e415bb75f
Fix typo in previous
2012-08-01 08:24:23 -07:00
Glenn Morris
fe3cc7713a
Remove src/s/msdos.h
...
* msdos/sed2v2.inp (MSDOS, DOS_NT, FLOAT_CHECK_DOMAIN)
(HAVE_INVERSE_HYPERBOLIC, DEVICE_SEP, IS_DIRECTORY_SEP, IS_ANY_SEP)
(INTERNAL_TERMINAL, NULL_DEVICE, SEPCHAR, USER_FULL_NAME)
(_setjmp, _longjmp): Move here from src/s/msdos.h.
(config_opsysfile, config_machfile): Remove.
* msdos/sed1v2.inp (M_FILE, S_FILE): Remove.
* msdos/mainmake.v2 (TAGS tags): Remove src/s/msdos.h.
* src/s/msdos.h: Remove file.
* src/conf_post.h [MSDOS]: New section, moved from s/msdos.h.
* src/Makefile.in (S_FILE): Remove.
(config_h): Remove S_FILE.
2012-08-01 08:19:51 -07:00
Juanma Barranquero
c90acc54da
Sync Windows port with autogen/config.in changes.
...
* nt/config.nt: Sync with autogen/config.in.
(DEVICE_SEP, FLOAT_CHECK_DOMAIN, HAVE_INVERSE_HYPERBOLIC)
(INTERNAL_TERMINAL, IS_ANY_SEP, IS_DEVICE_SEP, IS_DIRECTORY_SEP):
New macros.
* src/s/ms-w32.h (DEVICE_SEP, IS_DIRECTORY_SEP, IS_ANY_SEP):
Remove; moved to nt/config.nt.
2012-08-01 13:20:07 +02:00
Dmitry Antipov
d8a05828fd
Use INTERNAL_FIELD for conses and overlays.
...
* src/lisp.h (struct Lisp_Cons): Use INTERNAL_FIELD.
Remove obsolete comment.
(MVAR): New macro.
(struct Lisp_Overlay): Use INTERNAL_FIELD.
* src/alloc.c, src/buffer.c, src/buffer.h, src/fns.c: Adjust users.
* admin/coccinelle/overlay.cocci: Semantic patch to replace direct
access to Lisp_Object members of struct Lisp_Overlay to MVAR.
2012-08-01 12:49:28 +04:00
Dmitry Antipov
8271d59040
Use INTERNAL_FIELD for symbols.
...
* src/lisp.h (SVAR): New macro. Adjust users.
* src/alloc.c, src/bytecode.c, src/cmds.c, src/data.c, src/doc.c, src/eval.c:
* src/fns.c, src/keyboard.c, src/lread.c, src/xterm.c: Users changed.
* admin/coccinelle/symbol.cocci: Semantic patch to replace direct
access to Lisp_Object members of struct Lisp_Symbol to SVAR.
2012-08-01 11:57:09 +04:00
Dmitry Antipov
3193acd258
Use INTERNAL_FIELD for processes.
...
* src/process.h (PVAR): New macro. Adjust style.
(struct Lisp_Process): Change Lisp_Object members to INTERNAL_FIELD.
* src/print.c, src/process.c, src/sysdep.c, src/w32.c:
* src/xdisp.c: Users changed.
* admin/coccinelle/process.cocci: Semantic patch to replace direct
access to Lisp_Object members of struct Lisp_Process to PVAR.
2012-08-01 10:23:24 +04:00
Dmitry Antipov
3a45383a47
Use INTERNAL_FIELD for windows.
...
* src/window.h (WVAR): New macro.
(struct window): Change Lisp_Object members to INTERNAL_FIELD.
* src/alloc.c, src/buffer.c, src/composite.c, src/dispextern.h:
* src/dispnew.c, src/editfns.c, src/fileio.c, src/font.c, src/fontset.c:
* src/frame.c, src/frame.h, src/fringe.c, src/indent.c, src/insdel.c:
* src/keyboard.c, src/keymap.c, src/lisp.h, src/minibuf.c, src/nsterm.m:
* src/print.c, src/textprop.c, src/w32fns.c, src/w32menu.c, src/w32term.c:
* src/window.c, src/xdisp.c, src/xfaces.c, src/xfns.c, src/xmenu.c:
* src/xterm.c: Users changed.
* admin/coccinelle/window.cocci: Semantic patch to replace direct
access to Lisp_Object members of struct window to WVAR.
2012-08-01 09:11:36 +04:00
Paul Eggert
c1dbc63c93
* coding.h (CODING_ATTR_FLUSHING): Remove; unused and wouldn't work.
2012-07-31 20:51:44 -07:00
Glenn Morris
8d7c7eed73
ChangeLog fixes
2012-07-31 22:14:20 -04:00
Glenn Morris
5c0c0e8a1a
Move definitions of directory and device separators to configure
...
* configure.ac (DEVICE_SEP, IS_DEVICE_SEP, IS_DIRECTORY_SEP, IS_ANY_SEP):
Move here from src/lisp.h.
* src/lisp.h (IS_DIRECTORY_SEP, IS_DEVICE_SEP, IS_ANY_SEP):
Move to configure.ac.
2012-07-31 21:43:08 -04:00
Juanma Barranquero
552a99b4cb
Adapt Windows port to recent changes in autogen/config.in.
...
* lib-src/makefile.w32-in (CONFIG_H): Update dependencies.
(CONF_POST_H): New macro.
* lib/makefile.w32-in (CONFIG_H): Update dependencies.
(CONF_POST_H): New macro.
* nt/config.nt: Sync with autogen/config.in.
Remove code moved to conf_post.h and include <conf_post.h>
(NULL_DEVICE, SEPCHAR, SIGNAL_H_AHB, TIOCSIGSEND, USER_FULL_NAME)
(USG5_4, WRETCODE, _longjmp, _setjmp, wait3): New macros.
* src/makefile.w32-in (CONFIG_H): Update dependencies.
(CONF_POST_H): New macro.
* src/s/ms-w32.h (SEPCHAR, NULL_DEVICE): Remove; moved to nt/config.nt.
2012-08-01 02:29:59 +02:00
Glenn Morris
bc96620af4
* configure.ac (S_FILE): Remove output variable.
...
* src/Makefile.in (S_FILE): No longer set by configure.
* msdos/sed1v2.inp (S_FILE): Update for format change.
2012-07-31 19:20:25 -04:00
Glenn Morris
476b1b2da1
Minor rearrangement for src/conf_post.h
...
* src/conf_post.h (config_opsysfile):
Move earlier, so that WINDOWSNT is available.
(alloca.h) [WINDOWSNT]: Don't include it on MS Windows.
2012-07-31 19:02:12 -04:00
Glenn Morris
b2c7a10681
* configure.ac (NULL_DEVICE, SEPCHAR, USER_FULL_NAME): Move here from src.
...
* src/editfns.c (USER_FULL_NAME):
* src/emacs.c (SEPCHAR):
* src/process.h (NULL_DEVICE): Let configure set them.
2012-07-31 18:24:49 -04:00
Glenn Morris
d53d062a0e
* src/s/README, src/s/template.h: Remove files.
2012-07-31 14:51:24 -04:00
Glenn Morris
4515017f63
* src/conf_post.h [HPUX]: Undefine HAVE_RANDOM and HAVE_RINT.
...
This is a belt-and-braces approach.
* configure.ac: Related comment.
2012-07-31 14:34:26 -04:00
Glenn Morris
8d8e2dfea4
Move AMPERSAND_FULL_NAME, subprocesses from conf_post.h to configure.ac
...
* configure.ac (AMPERSAND_FULL_NAME, subprocesses): Move here from conf_post.h.
* src/conf_post.h (AMPERSAND_FULL_NAME, subprocesses): Move to configure.ac.
2012-07-31 13:50:52 -04:00
Eli Zaretskii
1e0afd9a0f
Fix 'xframe' in .gdbinit.
...
src/.gdbinit (xframe): Adapt to introduction of FVAR and the
resulting renaming of 'struct frame' members.
2012-07-31 20:34:51 +03:00
Eli Zaretskii
5b20b3cc46
Fix some of the breakage introduced with 2012-07-31T12:36:19Z!dmantipov@yandex.ru.
...
src/w32menu.c (w32_menu_show): Revert bogus introduction of FVAR.
src/fontset.c (dump_fontset): Fix compilation with ENABLE_CHECKING
after introduction of FVAR.
2012-07-31 19:59:55 +03:00
Jan Djärv
79e721e0f8
Fix compiler and run time warnings in nsmenu.m and nsterm.m
...
* nsfns.m, nsmenu.m, msterm.m: Adopt to struct frame/FVAR changes.
* nsmenu.m (update_frame_tool_bar): Change key from NSObject* to id.
* nsterm.m (ns_draw_fringe_bitmap, ns_dumpglyphs_image): Use drawInRect
instead of compositeToPoint.
(applicationShouldTerminate): Pass NS String literal to NSRunAlertPanel.
2012-07-31 18:19:03 +02:00
Jan Djärv
f1310128a0
* nsfns.m, nsmenu.m, msterm.m: Adopt to struct frame/FVAR changes.
2012-07-31 17:15:29 +02:00
Dmitry Antipov
e34f7f7983
Generalize INTERNAL_FIELD between buffers, keyboards and frames.
...
* src/lisp.h (INTERNAL_FIELD): New macro.
* src/buffer.h (BUFFER_INTERNAL_FIELD): Removed.
(BVAR): Change to use INTERNAL_FIELD.
* src/keyboard.h (KBOARD_INTERNAL_FIELD): Likewise.
(KVAR): Change to use INTERNAL_FIELD.
* src/frame.h (FVAR): New macro.
(struct frame): Use INTERNAL_FIELD for all Lisp_Object fields.
* src/alloc.c, src/buffer.c, src/data.c, src/dispnew.c, src/dosfns.c
* src/eval.c, src/frame.c, src/fringe.c, src/gtkutil.c, src/minibuf.c
* src/nsfns.m, src/nsterm.m, src/print.c, src/term.c, src/w32fns.c
* src/w32menu.c, src/w32term.c, src/window.c, src/window.h, src/xdisp.c
* src/xfaces.c, src/xfns.c, src/xmenu.c, src/xterm.c: Users changed.
* admin/coccinelle/frame.cocci: Semantic patch to replace direct
access to Lisp_Object members of struct frame to FVAR.
2012-07-31 16:36:19 +04:00
Dmitry Antipov
c09bfb2f14
Miscellaneous fixes for non-default X toolkits.
...
* configure.ac (MOTIF): Check for /usr/include/openmotif
and /usr/(lib|lib64)/openmotif if --with-x-toolkit=motif.
* lwlib/lwlib-Xm.c (make_menu_in_widget): Remove unused variable.
* src/xfns.c (Fx_file_dialog): Change to SSDATA to avoid warnings.
* src/xterm.c (x_frame_of_widget): Remove redundant prototype.
Move under #ifdef USE_LUCID.
(x_create_toolkit_scroll_bar): Adjust scroll_bar_name
definition and usage to avoid warnings.
2012-07-31 15:37:38 +04:00
Jan Djärv
b9031d6911
Fix error in ChangeLog entry.
2012-07-31 09:42:43 +02:00
Glenn Morris
268e2432c9
Remove src/s/usg5-4-common.h
...
* configure.ac (USG5_4): Reintroduce this.
(opsysfile): Set to empty on irix6-5, sol2*, and unixware.
* src/conf_post.h [USG5_4]: Move remaining contents of s/usg5-4-common.h here.
* src/s/usg5-4-common.h: Remove file.
2012-07-30 23:43:37 -07:00
Glenn Morris
400d5621b8
Move wait3, WRETCODE from src/s to configure
...
* configure.ac (wait3, WRETCODE): Move here from src/s/usg5-4-common.h.
* s/usg5-4-common.h (wait3, WRETCODE): Let configure set them.
2012-07-30 23:35:08 -07:00
Glenn Morris
7552f3ee02
Remove src/s/irix6-5.h
...
* configure.ac (opsysfile): Set to s/usg5-4-common.h on irix6-5.
* src/conf_post.h [IRIX6_5]: Move remaining contents of s/irix6-5.h here.
* src/s/irix6-5.h: Remove file.
2012-07-30 23:19:40 -07:00
Jan Djärv
14c114ae54
* nsterm.m (openFiles): Fix previous checkin.
2012-07-31 07:56:36 +02:00
Paul Eggert
3bd21e82eb
* indent.c (compute_motion): Remove unused local.
2012-07-30 22:07:03 -07:00
Glenn Morris
6a3818523e
Remove src/s/darwin.h
...
* configure.ac (opsysfile): Set to empty on darwin.
* src/conf_post.h [DARWIN_OS]: Move remaining contents of src/s/darwin.h here.
* src/s/darwin.h: Remove file.
2012-07-30 21:38:04 -04:00
Glenn Morris
c1529dedfc
Remove src/s/hpux10-20.h
...
* configure.ac (opsysfile): Set to empty on hpux*.
* src/conf_post.h [HPUX]: Move random, srandom here from s/hpux10-20.h.
* src/s/hpux10-20.h: Remove file, which is now empty.
2012-07-30 21:32:19 -04:00
Glenn Morris
b429a4eee4
Use an include file in configure.ac's AH_BOTTOM
...
* configure.ac (AH_BOTTOM): Use an include file, so that the
contents do not get processed by autoheader. Eg this prevents undefs
being commented out, and is the recommended technique from the
autoconf manual.
* src/conf_post.h: New, split from configure.ac's AH_BOTTOM.
* src/Makefile.in (config_h): Add conf_post.h.
* src/makefile.w32-in (CONFIG_H): Add conf_post.h.
2012-07-30 17:20:43 -04:00
Jan Djärv
adff3182ba
Don't open files from Cocoa-parsed command line.
...
--eval '(whatever)' will open '(whatever)' if --eval is the last option.
* src/nsterm.m (ns_do_open_file): New variable.
(ns_term_init): Set ns_do_open_file to NO after run returns.
(openFile, openTempFile, openFileWithoutUI, openFiles): Open
files only if ns_do_open_file.
2012-07-30 22:10:31 +02:00