1. 30 Sep, 2012 30 commits
    • Bastien Guerry's avatar
    • Kenichi Handa's avatar
      coding.c (decode_coding_ccl, encode_coding_ccl): Pay attention to the buffer... · 16322789
      Kenichi Handa authored
      coding.c (decode_coding_ccl, encode_coding_ccl): Pay attention to the buffer relocation which may be caused by ccl_driver.
      16322789
    • Kenichi Handa's avatar
      merge trunk · c194970e
      Kenichi Handa authored
      c194970e
    • Jan Djärv's avatar
      Support file name dialog on NS. · d7e642cc
      Jan Djärv authored
      * etc/NEWS: Mention that the file dialog is used on NS.
      
      * lisp/term/ns-win.el (x-file-dialog): New function.
      
      * src/fileio.c (Fnext_read_file_uses_dialog_p): Add HAVE_NS.
      
      * src/nsfns.m (ns_frame_parm_handlers): Add x_set_fullscreen.
      
      * src/nsfns.m (Fns_read_file_name): Add argument DIR_ONLY_P.
      Initialize panel name field if OSX >= 10.6.
      
      * src/w32fns.c (Fx_file_dialog): Update comment.
      
      * src/xfns.c (Fx_file_dialog): Update comment.
      d7e642cc
    • Kenichi Handa's avatar
      coding.c (decode_coding_ccl, encode_coding_ccl): Pay attention to the buffer... · 95402d5f
      Kenichi Handa authored
      coding.c (decode_coding_ccl, encode_coding_ccl): Pay attention to the buffer relocation which may be caused by ccl_driver.
      95402d5f
    • Jan Djärv's avatar
      Add support for fullscreen in the NS port. · dd946752
      Jan Djärv authored
      * etc/NEWS: The NS port supports fullscreen.
      
      * src/nsfns.m (ns_frame_parm_handlers): Add x_set_fullscreen.
      
      * src/nsterm.h (MAC_OS_X_VERSION_10_7, MAC_OS_X_VERSION_10_8): New.
      (EmacsView): Add variables for fullscreen.
      (handleFS, setFSValue, toggleFullScreen): New in EmacsView.
      (EmacsFSWindow): New interface for fullscreen.
      
      * src/nsterm.m (NEW_STYLE_FS): New define.
      (ns_fullscreen_hook, windowWillEnterFullScreen)
      (windowDidEnterFullScreen, windowWillExitFullScreen)
      (windowDidExitFullScreen, toggleFullScreen, handleFS)
      (setFSValue): New functions.
      (EmacsFSWindow): New implementation.
      (canBecomeKeyWindow): New function for EmacsFSWindow.
      (ns_create_terminal): Set fullscreen_hook to ns_fullscreen_hook.
      (dealloc): Release nonfs_window if in fullscreen.
      (updateFrameSize:): Call windowDidMove to update top/left.
      (windowWillResize:toSize:): Check if frame is still maximized.
      (initFrameFromEmacs:): Initialize fs_state, fs_before_fs,
      next_maximized, maximized_width, maximized_height and nonfs_window.
      Call setCollectionBehavior if NEW_STYLE_FS.  Initialize bwidth and
      tbar_height.
      (windowWillUseStandardFrame:defaultFrame:): Update frame parameter
      fullscreen. Set maximized_width/height.  Act on next_maximized.
      dd946752
    • Juanma Barranquero's avatar
      lisp/ido.el (ido-max-directory-size): Default to nil. · ee41332b
      Juanma Barranquero authored
      The current default is small for POSIX systems, and impractical
      on Windows 7 now that lstat returns directory sizes for NTFS.
      ee41332b
    • Juanma Barranquero's avatar
    • Juanma Barranquero's avatar
      9ee2ee9f
    • Martin Rudalics's avatar
      Fix last fix of window--display-buffer. · 1bc83413
      Martin Rudalics authored
      1bc83413
    • Glenn Morris's avatar
      Auto-commit of generated files. · 0e8bc990
      Glenn Morris authored
      0e8bc990
    • Chong Yidong's avatar
      Update docs for a bunch of 24.3 changes. · 48de8b12
      Chong Yidong authored
      * doc/emacs/killing.texi (Rectangles): Document copy-rectangle-as-kill.
      
      * doc/emacs/search.texi (Special Isearch): Document the lax space search
      feature and M-s SPC.
      (Regexp Search): Move main search-whitespace-regexp description to
      Special Isearch.
      (Replace): Document replace-lax-whitespace.
      
      * doc/emacs/basic.texi (Position Info): Document C-u M-=.
      (Moving Point): Document move-to-column.
      
      * doc/emacs/display.texi (Useless Whitespace): Add delete-trailing-lines.
      
      * doc/emacs/misc.texi (emacsclient Options): Document the effect of
      initial-buffer-choice on client frames.  Document server-auth-dir.
      Do not document server-host, which is bad security practice.
      
      * doc/emacs/building.texi (Lisp Libraries): Docstring lookups can trigger
      autoloading.  Document help-enable-auto-load.
      
      * doc/emacs/mini.texi (Yes or No Prompts): New node.
      
      * doc/emacs/ack.texi (Acknowledgments): Remove obsolete packages.
      
      * doc/lispref/commands.texi (Click Events): Define "mouse position list".
      Remove mention of unimplemented horizontal scroll bars.
      (Drag Events, Motion Events): Refer to "mouse position list".
      (Accessing Mouse): Document posnp.
      
      * doc/lispref/errors.texi (Standard Errors): Tweak arith-error description.
      Tweak markup.  Remove domain-error and friends, which seem to be
      unused after the floating-point code revamp.
      
      * doc/lispref/functions.texi (Obsolete Functions): Obsolescence also affects
      documentation commands.  Various clarifications.
      (Declare Form): New node.
      
      * doc/lispref/loading.texi (Autoload):
      * doc/lispref/help.texi (Documentation Basics): The special sequences can
      trigger autoloading.
      
      * doc/lispref/macros.texi (Defining Macros): Move description of `declare' to
      Declare Form node.
      
      * doc/lispref/numbers.texi (Integer Basics): Copyedits.
      (Float Basics): Consider IEEE floating point always available.
      (Random Numbers): Document actual limits.
      (Arithmetic Operations): Clarify division by zero.  Don't mention
      the machine-independence of negative division since it does not
      happen in practice.
      
      * doc/lispref/os.texi (Idle Timers): Minor clarifications.
      (User Identification): Add system-users and system-groups.
      
      * doc/lispref/strings.texi (String Basics): Copyedits.
      
      * lisp/minibuffer.el (minibuffer-local-filename-syntax): Doc fix.
      
      * lisp/server.el (server-host): Document the security implications.
      (server-auth-key): Doc fix.
      
      * lisp/startup.el (initial-buffer-choice): Doc fix.
      
      * src/fns.c (Frandom): Doc fix.
      48de8b12
    • Martin Rudalics's avatar
      Handle window-height and window-width alist entries in `display-buffer'. · 5938d519
      Martin Rudalics authored
      In buffer display functions handle window-height/window-width
      alist entries.  Suggested by Juri Linkov as fix for Bug#1806.
      * window.el (window--display-buffer): New argument ALIST.  Obey
      window-height and window-width alist entries.
      (window--try-to-split-window): New argument ALIST.  Bind
      window-combination-limit to t when the window's size shall be
      changed and window-combination-limit equals `window-size'.
      (display-buffer-in-atom-window)
      (display-buffer-in-major-side-window)
      (display-buffer-in-side-window, display-buffer-same-window)
      (display-buffer-reuse-window, display-buffer-pop-up-frame)
      (display-buffer-pop-up-window, display-buffer-below-selected)
      (display-buffer-at-bottom, display-buffer-in-previous-window)
      (display-buffer-use-some-window): Adjust all callers of
      window--display-buffer and window--try-to-split-window.
      (fit-frame-to-buffer): New option.
      (fit-window-to-buffer): Can resize frames if fit-frame-to-buffer
      is non-nil.
      (display-buffer-in-major-side-window): Evaluate window-height /
      window-width alist entries.
      
      * help.el (temp-buffer-resize-frames)
      (temp-buffer-resize-regexps): Remove options.
      (temp-buffer-resize-mode): Adjust doc-string.
      (resize-temp-buffer-window): Don't consult
      temp-buffer-resize-regexps.  Use fit-frame-to-buffer instead of
      temp-buffer-resize-frames.
      
      * dired.el (dired-mark-pop-up): Call
      display-buffer-below-selected with a fit-window-to-buffer alist
      entry.
      
      * window.c (Vwindow_combination_limit): New default value.
      (Qwindow_size): New symbol replacing Qtemp_buffer_resize.
      5938d519
    • Chong Yidong's avatar
      Minor code tweak for delete-trailing-whitespace. · a97dc380
      Chong Yidong authored
      * lisp/simple.el (delete-trailing-whitespace): Avoid an unnecessary
      restriction change.
      a97dc380
    • Chong Yidong's avatar
    • Chong Yidong's avatar
      c4c0c2df
    • Paul Eggert's avatar
    • Eli Zaretskii's avatar
      Fix compilation failure introduced in 2012-09-30T06:19:33Z!eggert@cs.ucla.edu. · 84f72efd
      Eli Zaretskii authored
       src/profiler.c (Fprofiler_cpu_stop): Use timer_settime only if
       HAVE_TIMER_SETTIME is defined.
      84f72efd
    • Paul Eggert's avatar
      Profiler improvements: more-accurate timers, overflow checks. · d89460ed
      Paul Eggert authored
      * profiler.c: Don't include stdio.h, limits.h, sys/time.h,
      signal.h, setjmp.h.  Include systime.h instead.
      (saturated_add): New function.
      (record_backtrace, current_sample_interval): Use EMACS_INT, not size_t.
      (record_backtrace, handle_profiler_signal): Saturate on fixnum overflow.
      (profiler_timer, profiler_timer_ok) [HAVE_TIMER_SETTIME]:
      New static vars.
      (enum profiler_cpu_running): New enumn.
      (profiler_cpu_running): Now of that enum type, not bool.
      All uses changed to store the new value.
      (handle_profiler_signal): Rename from sigprof_handler_1,
      for consistency with other handlers.  Do not check whether
      cpu_log is a hash-table if garbage collecting, since it
      doesn't matter in that case.
      (deliver_profiler_signal): Rename from sigprof_handler,
      for consistency with other handlers.
      (setup_cpu_timer): New function, with much of what used to be in
      Fprofiler_cpu_start.  Check for out-of-range argument.
      Prefer timer_settime if available, and prefer
      thread cputime clocks, then process cputime clocks, then
      monotonic clocks, to the old realtime clock.  Use make_timeval
      to round more-correctly when falling back to setitimer.
      (Fprofiler_cpu_start): Use it.
      (Fprofiler_cpu_stop): Prefer timer_settime if available.
      Don't assume that passing NULL as the 2nd argument of setitimer
      is the same as passing a pointer to all-zero storage.
      Ignore SIGPROF afterwards.
      (malloc_probe): Saturate at MOST_POSITIVE_FIXNUM.
      * sysdep.c (emacs_sigaction_init): Also mask out SIGPROF in
      non-fatal signal handlers.  Ignore SIGPROF on startup.
      * syssignal.h (PROFILER_CPU_SUPPORT): Define this macro here, not
      in profiler.c, since sysdep.c now uses it.
      d89460ed
    • Paul Eggert's avatar
      Merge from gnulib. · 65788e2e
      Paul Eggert authored
      65788e2e
    • Stefan Monnier's avatar
      * lisp/winner.el (winner-mode-map): Obey winner-dont-bind-my-keys here. · 34cf6f39
      Stefan Monnier authored
      (minor-mode-map-alist): Remove redundant code.
      34cf6f39
    • Stefan Monnier's avatar
      * lisp/vc/pcvs.el (cvs-cleanup-collection): Keep entries that are currently · e01c13fe
      Stefan Monnier authored
      visited in a buffer.
      (cvs-insert-visited-file): New function.
      (find-file-hook): Use it.
      * lisp/vc/pcvs-info.el (cvs-fileinfo-pp): Don't use non-existent faces.
      e01c13fe
    • Stefan Monnier's avatar
      * lisp/vc/log-edit.el (log-edit-font-lock-keywords): Ignore case to · 02661b3a
      Stefan Monnier authored
      chose face.
      (log-edit-empty-buffer-p): Don't require a space after a header.
      02661b3a
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      * lisp/url/url-handlers.el (url-file-handler): Don't assume any url-FOO · 23855148
      Stefan Monnier authored
      function is a good handler for FOO.
      (url-copy-file, url-file-local-copy, url-insert-file-contents)
      (url-file-name-completion, url-file-name-all-completions)
      (url-handlers-create-wrapper): Explicitly register as handler.
      23855148
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      * lisp/textmodes/text-mode.el (paragraph-indent-minor-mode): Make it · 4ffb41a9
      Stefan Monnier authored
      a proper minor-mode.
      4ffb41a9
    • Stefan Monnier's avatar
    • Glenn Morris's avatar
      Comment fix · 630d468c
      Glenn Morris authored
      630d468c
    • Paul Eggert's avatar
  2. 29 Sep, 2012 10 commits