1. 13 Jul, 2012 20 commits
    • Jan Djärv's avatar
      Remove compiler warnings in objective-C files. · 0dc8cf50
      Jan Djärv authored
      * nsfns.m (x_set_icon_name, ns_set_name_internal)
      (ns_set_name_as_filename, ns_implicitly_set_icon_type)
      (x_set_icon_type, ns_lisp_to_cursor_type, Fns_read_file_name)
      (Fns_get_resource, Fns_set_resource, Fx_open_connection)
      (Fns_font_name, Fns_perform_service)
      (Fns_convert_utf8_nfd_to_nfc, ns_do_applescript)
      (Fns_do_applescript, Fx_show_tip): Use SSDATA where appropriate.
      (ns_set_name): Remove unused variable view.
      (x_set_menu_bar_lines): Remove unused variable olines.
      (x_set_tool_bar_lines): Remove unused variable root_window.
      (Fns_list_colors): Put () around assignment in while statement.
      (Fns_perform_service): Remove unused variable len.
      (Fns_display_usable_bounds): Remove unused variable top.
      (syms_of_nsfns): Remove unused variable i.
      
      * nsfont.m (ns_get_family, ns_lang_to_script, ns_otf_to_script)
      (ns_registry_to_script, ns_get_req_script, nsfont_open): Use SSDATA
      where appropriate.
      (ns_get_covering_families, ns_findfonts, nsfont_list_family): Put ()
      around assignment in loop statement.
      (nsfont_open): Remove unused variable i.
      (nsfont_open): Remove unused variable len.
      (nsfont_draw): Remove unused variable cs.
      
      * nsimage.m (ns_load_image, allocInitFromFile): Use SSDATA where
      appropriate.
      (setXBMColor): Remove unused variable len.
      (setPixmapData): Put () around assignment in loop statement.
      
      * nsmenu.m (ns_update_menubar, ns_menu_show, process_dialog)
      (initFromContents): Use SSDATA where appropriate.
      (ns_update_menubar): Add braces to ambigous if-else.
      (initWithTitle): Put () around assignment in if statement.
      (ns_menu_show): Remove unused variables window and keymap.
      (update_frame_tool_bar): Remove unused variable selected_p.
      (initWithContentRect): Remove unused variable this_cmd_name.
      
      * nsterm.h (menuDown): Add id as type to argument sender.
      (ns_display_info_for_name): Add Lisp_Object argument.
      (ns_term_init): Add Lisp_Object argument.
      (ns_map_event_to_object): Add void argument.
      (ns_string_from_pasteboard, ns_string_to_pasteboard): Add correct
      prototype with arguments and only declare if __OBJC__.
      (nxatoms_of_nsselect): Add void argument.
      (ns_lisp_to_cursor_type): Add Lisp_Object argument.
      (ns_alloc_autorelease_pool): Add void argument.
      (ns_release_autorelease_pool): Add void* argument.
      (ns_get_defaults_value): Add const char* argument.
      
      * nsterm.m (uRect): Only define if NS_IMPL_GNUSTEP.
      (x_free_frame_resources): Pass x_free_frame_resources to NSTRACE.
      (ns_lisp_to_color, ns_string_to_lispmod, ns_term_init)
      (ns_term_shutdown, requestService, initFrameFromEmacs): Use SSDATA
      where appropriate.
      (ns_exec_path, ns_load_path, changeFont): Put () around assignment used
      as boolean expression.
      (x_set_window_size): Remove unused variable toolbar.
      (ns_get_color_default, ns_mod_to_lisp): Remove.
      (ns_mouse_position): Remove unused variables xchar and ychar.
      (ns_compute_glyph_string_overhangs): Remove unused variable face.
      (ns_set_vertical_scroll_bar): Remove unused variable count.
      (ns_delete_terminal): Remove unused variable i.
      (ns_term_init): Remove unused variables r, g and b.
      (mouseDown): Remove unused variable window.
      (windowDidResize): Move definition of theWindow inside NS_IMPL_GNUSTEP.
      (initFrameFromEmacs): Remove unused variable vbextra.
      (mouseEntered): Remove unused variables p and dpyinfo.
      (mouseExited): Remove unused variables p and r.
      (ns_define_frame_cursor, ns_clear_frame_area)
      (ns_draw_window_cursor, ns_initialize_display_info): Make static.
      (menuDown): Assign [sender tag] to variable and cast the variable.
      0dc8cf50
    • Jan Djärv's avatar
      * nsmenu.m (ns_update_menubar): Exchange place of argument 2 and 3 to · b55b9f85
      Jan Djärv authored
      memcpy.
      
      Fixes: debbugs:11907
      b55b9f85
    • Juanma Barranquero's avatar
    • Juanma Barranquero's avatar
      lisp/loadup.el (top): Remove bogus `if' choice (brought by... · 97662200
      Juanma Barranquero authored
      lisp/loadup.el (top): Remove bogus `if' choice (brought by 2008-06-21T01:38:39Z!monnier@iro.umontreal.ca).
      97662200
    • Michael Albinus's avatar
      * progmodes/sql.el (sql-comint): Suppress the check for program on · 2bb1ae55
      Michael Albinus authored
      remote hosts.  Reported by Francis Devereux <francis@devrx.org>.
      (Bug#11908)
      2bb1ae55
    • Chong Yidong's avatar
      Give permanent-local property to per-buffer variables without defaults. · dea31bd3
      Chong Yidong authored
      * doc/emacs/custom.texi (Examining): Update C-h v message.
      
      * lisp/bindings.el: Assign a non-nil permanent-local property to
      per-buffer variables which lack a default value.
      
      * lisp/help-fns.el (describe-variable): In the "automatically becomes
      local" notice, take note of permanent-local variables.
      
      Fixes: debbugs:11930
      dea31bd3
    • Jan Djärv's avatar
      * image.c (Fimagemagick_types): Initialize ex with GetExceptionInfo · 2277de02
      Jan Djärv authored
      and free it with DestroyExceptionInfo.
      
      Fixes: debbugs:11558
      2277de02
    • Juanma Barranquero's avatar
      * nt/config.nt: Sync with autogen/config.in. · ef099b57
      Juanma Barranquero authored
      (BROKEN_FIONREAD, BROKEN_GET_CURRENT_DIR_NAME)
      (BROKEN_PTY_READ_AFTER_EAGAIN, BROKEN_SIGAIO, BROKEN_SIGPOLL)
      (BROKEN_SIGPTY, BSD4_2, BSD_SYSTEM, BSD_SYSTEM_AHB, CYGWIN, DARWIN_OS)
      (FIRST_PTY_LETTER, GNU_LINUX, G_SLICE_ALWAYS_MALLOC, HAVE_PTYS)
      (HAVE_SOCKETS, HPUX, INTERRUPT_INPUT, IRIX6_5, NARROWPROTO, NO_ABORT)
      (NO_EDITRES, NSIG_MINIMUM, PREFER_VSUSP, PTY_ITERATION
      (PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF, RUN_TIME_REMAP)
      (SETPGRP_RELEASES_CTTY, SOLARIS2, TAB3, TABDLY, ULIMIT_BREAK_VALUE)
      (UNIX98_PTYS, USG, USG5, XOS_NEEDS_TIME_H, _AIX): New macros.
      (HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE___BUILTIN_UNWIND_INIT):
      Set in src/s/ms-w32.h, not here.
      
      * src/s/ms-w32.h (FIRST_PTY_LETTER, HAVE_SOCKETS): Move to nt/config.nt.
      (HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE___BUILTIN_UNWIND_INIT):
      Set here, not in nt/config.nt.
      ef099b57
    • Glenn Morris's avatar
      Auto-commit of generated files. · d3127c14
      Glenn Morris authored
      d3127c14
    • Eli Zaretskii's avatar
      Fix bs-show when the right fringe is off. · ea814a5d
      Eli Zaretskii authored
       src/xdisp.c (move_it_in_display_line_to): On GUI terminals, allow
       cursor overflow into the last glyph on display line when the right
       fringe is off.  (Bug#11832)
      ea814a5d
    • Chong Yidong's avatar
      Don't warn on toggle-read-only calls. · b68b3337
      Chong Yidong authored
      Clarify the documentation of toggle-read-only, and audit the code tree
      for uses of toggle-read-only; where appropriate, switch to setting the
      variable buffer-read-only or calling toggle-read-only with a (new)
      second arg.
      
      * lisp/files.el (toggle-read-only): Doc fix and code cleanup.  New arg
      to allow printing the message when called from Lisp.
      
      * lisp/emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
      Remove toggle-read-only.
      
      * lisp/bindings.el (mode-line-toggle-read-only):
      * lisp/dired.el (dired-toggle-read-only):
      * lisp/ibuffer.el (ibuffer-do-toggle-read-only): Call toggle-read-only
      with non-nil second arg.
      
      * lisp/bs.el (bs-toggle-readonly):
      * lisp/buff-menu.el (Buffer-menu-toggle-read-only): Remove
      with-no-warnings around toggle-read-only.
      
      * lisp/ffap.el (ffap--toggle-read-only): Accept a list of buffers.
      Remove with-no-warnings around toggle-read-only.
      (ffap-read-only, ffap-read-only-other-window)
      (ffap-read-only-other-frame): Callers changed.
      
      * lisp/help-mode.el: Don't require view package.
      (help-mode-finish): Set buffer-read-only instead of calling
      toggle-read-only.
      
      * lisp/emacs-lisp/eieio-custom.el (eieio-customize-object):
      * lisp/vc/ediff.el (ediff-set-read-only-in-buf-A): Set buffer-read-only
      directly.
      
      * lisp/gnus/smime.el (smime-certificate-info): Set buffer-read-only directly,
      instead of calling toggle-read-only with a (bogus) argument.
      
      * doc/emacs/buffers.texi (Misc Buffer): Document view-read-only.
      
      * doc/lispref/buffers.texi (Read Only Buffers): Document toggle-read-only
      changes.  Reword to account for the fact that read-only is currently not
      supported in overlay properties.
      b68b3337
    • Paul Eggert's avatar
      * xdisp.c (produce_special_glyphs): Now static. · 1a952767
      Paul Eggert authored
      * dispextern.h (produce_special_glyphs): Remove decl.
      1a952767
    • Glenn Morris's avatar
      Remove some src/s files that are now empty · 32fb4bb6
      Glenn Morris authored
      * configure.ac (opsysfile): Set to empty on gnu, cygwin.
      
      * src/s/bsd-common, src/s/cygwin.h: Remove empty files.
      * src/s/freebsd.h, src/s/netbsd.h: Do not include bsd-common.h.
      32fb4bb6
    • Glenn Morris's avatar
      Move "system type" macros from src/s to configure · 983188fd
      Glenn Morris authored
      * configure.ac (BSD4_2, BSD_SYSTEM, USG, USG5, _AIX, CYGWIN)
      (DARWIN_OS, GNU_LINUX, HPUX, IRIX6_5, SOLARIS2):
      Move "system type" macros here from src/s.
      (BSD_SYSTEM_AHB): New hack macro.
      (AH_BOTTOM): Set BSD_SYSTEM, using BSD_SYSTEM_AHB.
      
      * src/s/usg5-4-common.h (USG, USG5):
      * src/s/template.h (USG5, USG, HPUX, BSD4_2, BSD_SYSTEM):
      * src/s/sol2-6.h (SOLARIS2):
      * src/s/irix6-5.h (IRIX6_5):
      * src/s/hpux10-20.h (USG, USG5, HPUX):
      * src/s/gnu-linux.h (USG, GNU_LINUX):
      * src/s/freebsd.h (BSD_SYSTEM):
      * src/s/darwin.h (BSD4_2, BSD_SYSTEM, DARWIN_OS):
      * src/s/cygwin.h (CYGWIN):
      * src/s/bsd-common.h (BSD_SYSTEM, BSD4_2):
      * src/s/aix4-2.h (USG, USG5, _AIX): Move "system type" macros to configure.
      983188fd
    • Glenn Morris's avatar
      ChangeLog fix · d1e68667
      Glenn Morris authored
      d1e68667
    • Paul Eggert's avatar
      * nsfont.m (ns_charset_covers): Don't abort if no bitmap. · 24ef80ae
      Paul Eggert authored
      Fixes: debbugs:11853
      24ef80ae
    • Glenn Morris's avatar
      Move NSIG_MINIMUM from src/s to configure · 739ae010
      Glenn Morris authored
      * configure.ac (NSIG_MINIMUM): Move here from src/s.
      
      * src/s/usg5-4-common.h (NSIG_MINIMUM): Let configure set it.
      739ae010
    • Glenn Morris's avatar
      Move ULIMIT_BREAK_VALUE from src/s to configure · dbee5793
      Glenn Morris authored
      * configure.ac (ULIMIT_BREAK_VALUE): Move here from src/s.
      
      * src/s/gnu-linux.h, src/s/irix6-5.h: Let configure set ULIMIT_BREAK_VALUE.
      dbee5793
    • Glenn Morris's avatar
      Remove macro MIN_PTY_KERNEL_VERSION, only used in one place · 6de0e799
      Glenn Morris authored
      * src/process.c (init_process_emacs): Replace MIN_PTY_KERNEL_VERSION.
      * src/s/darwin.h (MIN_PTY_KERNEL_VERSION): Remove single-use macro.
      6de0e799
    • Glenn Morris's avatar
      Move darwin.h's SYSTEM_PURESIZE_EXTRA setting to configure · 4fae5a7a
      Glenn Morris authored
      * configure.ac (AH_BOTTOM) [DARWIN_OS]: Move SYSTEM_PURESIZE_EXTRA
      setting here from src/s/darwin.h.
      
      * src/s/darwin.h (SYSTEM_PURESIZE_EXTRA): Move to configure.
      4fae5a7a
  2. 12 Jul, 2012 20 commits
    • Glenn Morris's avatar
      Rename init_process rather than working around it on Darwin · b82da769
      Glenn Morris authored
      The old name is also the name of a Mach system call.
      
      * src/process.c (init_process_emacs): Rename from init_process.
      
      * src/lisp.h, src/emacs.c: Update for this name change.
      
      * src/nsgui.h, src/sysselect.h, src/s/darwin.h:
      Remove workaround that is no longer needed.
      b82da769
    • Glenn Morris's avatar
      Move NO_EDITRES from src/s to configure · ba9e4b84
      Glenn Morris authored
      * configure.ac (NO_EDITRES): Move here from src/s.
      
      * src/s/aix4-2.h, src/s/hpux10-20.h: Let configure set NO_EDITRES.
      ba9e4b84
    • Glenn Morris's avatar
      Do not unconditionally define HAVE_XRMSETDATABASE on some systems · a7208036
      Glenn Morris authored
      * src/s/gnu-linux.h, src/s/hpux10-20.h:
      Do not unconditionally define HAVE_XRMSETDATABASE.
      
      Maybe there was a time when this made sense, but in the current tree
      it is totally illogical.  This is only used in xterm.c.  If it is set
      we call XrmSetDatabase, if not we do something else.  Configure tests
      for XrmSetDatabase and sets HAVE_XRMSETDATABASE accordingly.  The only
      possibility that is not totally nonsensical is that the system does in
      fact have XrmSetDatabase but configure failed to find it (I don't see
      how this could happen though...); in which case we should fix the
      configure test rather than force the results.  But this is not what
      the (vague) comments say was happending.
      
      The gnu-linux piece dates from 1995, the hpux one from 2000.
      
      https://groups.google.com/forum/?fromgroups#!topic/gnu.emacs.bug/H24wEM8Vp9A
      From: rainer@displaytech.com (Rainer Malzbender)
      Subject: Compiling emacs 20.4 on HP-UX 10.20 with gcc
      Date: 2000/02/01
      Newsgroups: gnu.emacs.bug
      a7208036
    • Eli Zaretskii's avatar
      Improve fix for bug #11832 with truncated/continued lines w/o margins. · 5a979817
      Eli Zaretskii authored
       src/xdisp.c (insert_left_trunc_glyphs): Fix incorrect size in
       memmove call that removes glyphs covered by the left truncation
       glyph.  Improve commentary.
       (display_line): Fix display of continuation glyphs on GUI frames
       when the right fringe is turned off and variable-size fonts are
       used in the window.  Move the code that appends a stretch glyph to
       produce_special_glyphs, so that it could be used for truncation
       and continuation glyphs alike.
       (produce_special_glyphs) [HAVE_WINDOW_SYSTEM]: Produce a stretch
       glyph of a suitably computed width, to align the special glyphs at
       the window margin.  Code moved from display_line.
      5a979817
    • Glenn Morris's avatar
      Move UNIX98_PTYS from src/s to configure · 3e91a053
      Glenn Morris authored
      * configure.ac (UNIX98_PTYS): Move here from src/s.
      
      * src/s/gnu-linux.h (UNIX98_PTYS): Let configure set it.
      3e91a053
    • Paul Eggert's avatar
      Fix typos that broke OS X build. · b300b1f4
      Paul Eggert authored
      Reported by Randal L. Schwartz in
      <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00225.html>.
      * nsterm.m (ns_timeout): Add missing local decl.
      (ns_get_color): snprintf -> sprintf, to fix typo.
      b300b1f4
    • Paul Eggert's avatar
      debd9b27
    • Eli Zaretskii's avatar
      Fix byte-recompile-directory. · 56bc1586
      Eli Zaretskii authored
       lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Use cl-incf,
       not incf.
      56bc1586
    • Glenn Morris's avatar
      Auto-commit of loaddefs files. · 222fbb8b
      Glenn Morris authored
      222fbb8b
    • Glenn Morris's avatar
      Auto-commit of generated files. · dd0d840e
      Glenn Morris authored
      dd0d840e
    • Glenn Morris's avatar
      Move PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF from src/s to configure · 3f922c37
      Glenn Morris authored
      * configure.ac (PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Move here from src/s.
      
      * src/s/aix4-2.h, src/s/cygwin.h, src/s/darwin.h:
      * src/s/gnu-linux.h, src/s/hpux10-20.h, src/s/irix6-5.h:
      * src/s/sol2-6.h, src/s/unixware.h, src/s/usg5-4-common.h:
      Move PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF to configure.
      3f922c37
    • Glenn Morris's avatar
      Move PTY_OPEN from src/s to configure · 0ab7b23a
      Glenn Morris authored
      * configure.ac (PTY_OPEN) Move here from src/s.
      
      * src/s/cygwin.h, src/s/darwin.h, src/s/gnu-linux.h, src/s/irix6-5.h:
      Move PTY_OPEN to configure.
      0ab7b23a
    • Glenn Morris's avatar
      Move FIRST_PTY_LETTER, PTY_ITERATION from src/s to configure · 6e777848
      Glenn Morris authored
      * configure.ac (FIRST_PTY_LETTER PTY_ITERATION): Move here from src/s.
      
      * src/s/aix4-2.h, src/s/bsd-common.h, src/s/cygwin.h, src/s/darwin.h:
      * src/s/gnu-linux.h, src/s/hpux10-20.h, src/s/irix6-5.h, src/s/template.h:
      * src/s/usg5-4-common.h: Move FIRST_PTY_LETTER, PTY_ITERATION to configure.
      6e777848
    • Dmitry Antipov's avatar
      Use empty_unibyte_string where applicable. · 4a7edc24
      Dmitry Antipov authored
      * keyboard.c (parse_tool_bar_item): Use empty_unibyte_string.
      * lread.c (read1): Likewise.
      * xsettings.c (syms_of_xsettings): Likewise.
      4a7edc24
    • Glenn Morris's avatar
      Move more things from src/s to configure · 42bd1719
      Glenn Morris authored
      * configure.ac (BROKEN_GET_CURRENT_DIR_NAME, BROKEN_PTY_READ_AFTER_EAGAIN)
      (G_SLICE_ALWAYS_MALLOC): Move here from src/s.
      
      * src/s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN):
      * src/s/cygwin.h (G_SLICE_ALWAYS_MALLOC):
      * src/s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME): Let configure set them.
      42bd1719
    • Glenn Morris's avatar
      Move more stuff from src/s to configure · 7ccad002
      Glenn Morris authored
      * configure.ac (PREFER_VSUSP, RUN_TIME_REMAP, SETPGRP_RELEASES_CTTY)
      (TAB3, TABDLY, RUN_TIME_REMAP, XOS_NEEDS_TIME_H): Move here from src/s.
      
      * src/s/bsd-common.h, src/s/darwin.h: Move TAB3 to configure.
      
      * src/s/hpux10-20.h, src/s/sol2-6.h: Move XOS_NEEDS_TIME_H to configure.
      
      * src/s/irix6-5.h (SETPGRP_RELEASES_CTTY, PREFER_VSUSP):
      * src/s/hpux10-20.h (RUN_TIME_REMAP):
      * src/s/bsd-common.h (TABDLY): Move to configure.
      7ccad002
    • Glenn Morris's avatar
      Move some AIX defines from src/s to configure · ea0bbd17
      Glenn Morris authored
      * configure.ac (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPOLL)
      (BROKEN_SIGPTY): Move here from src/s.
      
      * src/s/aix4-2.h (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPTY)
      (BROKEN_SIGPOLL): Let configure set them.
      
      * src/s/syssignal.h: Comment fix.
      ea0bbd17
    • Glenn Morris's avatar
      Move NO_ABORT from src/s to configure · c5564388
      Glenn Morris authored
      * configure.ac (NO_ABORT): Move here from src/s.
      
      * src/s/darwin.h (NO_ABORT): Let configure set it.
      c5564388
    • Glenn Morris's avatar
      Move setting of NO_MATHERR for Darwin from src/s to configure · 51c3b9b4
      Glenn Morris authored
      * configure.ac (NO_MATHERR): Unconditionally define for Darwin;
      as src/s/darwin.h used to.
      
      * src/s/darwin.h (NO_MATHERR): Let configure set it.
      51c3b9b4
    • Glenn Morris's avatar
      Move NARROWPROTO from src/s to configure · 308aab79
      Glenn Morris authored
      * configure.ac (NARROWPROTO): Move here from src/s.
      
      * src/s/bsd-common.h, src/s/cygwin.h, src/s/gnu-linux.h, src/s/irix6-5.h:
      * src/s/template.h: Move NARROWPROTO to configure.
      308aab79