1. 24 Oct, 2015 15 commits
  2. 23 Oct, 2015 11 commits
    • Eli Zaretskii's avatar
      Fix infloop in redisplay introduced by a recent change · 7836e422
      Eli Zaretskii authored
      * src/xdisp.c (redisplay_internal): Avoid inflooping when
      redisplaying the selected window sets the selected frame's
      redisplay flag.  (Bug#21745)
    • NicolasPetton's avatar
    • NicolasPetton's avatar
      Replace the old icon for Windows and Mac OSX · 8408f4e3
      NicolasPetton authored
      * nt/icons/emacs.ico:
      * nextstep/Cocoa/Emacs.base/Contents/Resources/Emacs.icns: Use the new
    • Stephen Leake's avatar
      `load-path' should contain only directory names · 4d3a595d
      Stephen Leake authored
      * lisp/emacs-lisp/package.el (package-autoload-ensure-default-file):
      `load-path' should contain only directory names
    • NicolasPetton's avatar
      New library thunk.el · 0f443a12
      NicolasPetton authored
      thunk.el is extracted from stream.el in ELPA, with additional tests.
      * lisp/emacs-lisp/thunk.el: New file.
      * test/automated/thunk-tests.el: New file.
      * etc/NEWS: Add information about thunk.el
    • Michael Albinus's avatar
      Fix Bug#21669 · 71d6acff
      Michael Albinus authored
      * lisp/filenotify.el (file-notify-rm-watch): Improve check for
      calling low-level functions.
      * test/automated/file-notify-tests.el (file-notify--test-timeout):
      Decrase to 6 seconds for remote directories.
      (file-notify-test02-events): Expect different number of
      `attribute-changed' events for the local and remote cases.  Apply
      short delays between the operations, in order to receive all
      events in the remote case.  Combine `attribute-change' tests.
    • Eli Zaretskii's avatar
      Decode the HTML source when displaying it in EWW · 0f733414
      Eli Zaretskii authored
      * lisp/net/eww.el (eww-view-source): Decode the HTML source
      according to its headers.
    • NicolasPetton's avatar
      New default icon · b3d065d2
      NicolasPetton authored
      * etc/images/icons/hicolor/128x128/apps/emacs23.png:
      * etc/images/icons/hicolor/16x16/apps/emacs23.png:
      * etc/images/icons/hicolor/24x24/apps/emacs23.png:
      * etc/images/icons/hicolor/32x32/apps/emacs23.png:
      * etc/images/icons/hicolor/48x48/apps/emacs23.png:
      * etc/images/icons/hicolor/scalable/apps/emacs23.svg:
      * etc/images/icons/hicolor/scalable/mimetypes/emacs-document23.svg: Move
        the old logo files to emacs23.*.
      * etc/images/icons/hicolor/128x128/apps/emacs.png:
      * etc/images/icons/hicolor/16x16/apps/emacs.png:
      * etc/images/icons/hicolor/24x24/apps/emacs.png:
      * etc/images/icons/hicolor/32x32/apps/emacs.png:
      * etc/images/icons/hicolor/48x48/apps/emacs.png:
      * etc/images/icons/hicolor/scalable/apps/emacs.svg:
      * etc/images/icons/hicolor/scalable/mimetypes/emacs-document.svg: New files.
      * etc/images/icons/README: Update the copyright information.
    • Eli Zaretskii's avatar
      Fix redisplay of frame title when current buffer is killed · 6a697259
      Eli Zaretskii authored
      * src/buffer.c (Fkill_buffer): Set windows_or_buffers_changed to a
      non-zero value, to redisplay more than just the affected windows.
    • Anders Lindgren's avatar
      NextSten maximization and NSTRACE rewrite. · ba24d35a
      Anders Lindgren authored
      Full-height, full-width, and maximized windows now cover the
      entire screen (except the menu bar), including the part where the
      system dock is placed.  The system zoom animation is no longer
      Made NonMaximized->FullWidth->FullHeight->NonMaximized restore the
      original size.
      * nsterm.m (ns_menu_bar_height): New function, return height of
      the menu bar, or 0 when it's hidden.
      * nsterm.m (constrain_frame_rect): New function for constraining a
      * nsterm.m (ns_constrain_all_frames): Set frame size explicitly
      rather than relying on the system doing it for us by writing back
      the current frame size.
      * nsterm.m (windowWillUseStandardFrame): Register non-maximized
      width or height as new user size.  When entering full width or
      height, the other size component is taken from the user size.
      * nsterm.m (fullscreenState): New method for accessing the
      fullscreen state.
      * nsterm.m (constrainFrameRect): Restrict frame to be placed under
      the menu bar, if present.  The old version, sometimes, restricted
      the height of a frame to the screen, this version never does this.
      * nsterm.m (zoom): Perform zoom by setting the frame to the full
      size of the screen (minus the menu bar).  The default system
      function, with the zoom animation, is no longer used, as the final
      frame size doesn't cover the entire screen.
      Rework how to constrain resizing to the character grid.  The old
      system used "resizeIncrements" in NSWindows.  However, once a frame
      was resized so that it was not aligned to the text grid, it
      remained unaligned even after a resize.  In addition, it conflicted
      when resizing a fullheight window.
      * nsterm.m (windowWillResize): Restrict frame size to text grid,
      unless when pixelwise frame resizing is enabled.
      * nsterm.m (updateFrameSize, initFrameFromEmacs)
      (toggleFullScreen, handleFS): Don't set resizeIncrements.
      Redesign the NS trace system.  The call structure is represented
      using indentations and vertical lines.  The NSTRACE macro accepts
      printf-style arguments.  New macros for printing various
      * nsterm.h (NSTRACE_ENABLED): Macro to enable trace system.
      * nsterm.h (NSTRACE, NSTRACE_WHEN, NSTRACE_UNLESS): Macros to
      start a new block (typically a function), accept printf-style
      * nsterm.h (NSTRACE_MSG): Macro for extra information, accepts
      printf-style arguments.
      * nsterm.h (NSTRACE_what): Macros for printing various types.
      * nsterm.h (NSTRACE_FMT_what): Macro with printf format string
      * nsterm.h (NSTRACE_ARG_what): Macros for passing printf-style
      arguments, corresponds to NSTRACE_FMT_what.
      * nsterm.h (NSTRACE_RETURN): Macro to print return value, accept
      printf-style arguments.
      * nsterm.h (NSTRACE_RETURN_what): Macros to print return value for
      various types.
      * nsterm.m: Remove old NSTRACE macro.
      * nsterm.m (nstrace_num): Trace counter.
      * nsterm.m (nstrace_depth): Current call depth.
      * nsterm.m (nstrace_leave): NSTRACE support function, called when
      the local variable "nstrace_enabled" goes out of scope using the
      "cleanup" extension.
      * nsterm.m (ns_print_fullscreen_type_name): NSTRACE_FSTYPE support
      * nsterm.m (constrain_frame_rect, ns_constrain_all_frames)
      (ns_update_auto_hide_menu_bar, ns_update_begin)
      (ns_update_window_begin, update_window_end, ns_update_end)
      (ns_focus, ns_unfocus, ns_ring_bell, ns_frame_raise_lower)
      (ns_frame_rehighlight, x_make_frame_visible)
      (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
      (x_destroy_window, x_set_offset, x_set_window_size)
      (ns_fullscreen_hook, ns_lisp_to_color, ns_color_to_lisp)
      (ns_defined_color, frame_set_mouse_pixel_position)
      (note_mouse_movement, ns_mouse_position, ns_frame_up_to_date)
      (ns_define_frame_cursor, x_get_keysym_name, ns_redraw_scroll_bars)
      (ns_clear_frame, ns_clear_frame_area, ns_scroll_run)
      (ns_after_update_window_line, ns_shift_glyphs_for_insert)
      (dumpcursor, ns_draw_vertical_window_border)
      (ns_draw_window_divider, ns_draw_relief)
      (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
      (ns_dumpglyphs_image, ns_draw_glyph_string, ns_send_appdefined)
      (ns_read_socket, ns_select, ns_set_vertical_scroll_bar)
      (ns_set_horizontal_scroll_bar, ns_condemn_scroll_bars)
      (ns_redeem_scroll_bar, ns_judge_scroll_bars, ns_delete_terminal)
      (ns_create_terminal, ns_term_init, sendEvent)
      (applicationDidFinishLaunching, applicationDidBecomeActive)
      (timeout_handler, fd_handler, EmacsView_dealloc, changeFont)
      (acceptsFirstResponder, resetCursorRects, keyDown, mouseDown)
      (deltaIsZero, rightMouseDown, otherMouseDown, mouseUp)
      (rightMouseUp, otherMouseUp, scrollWheel, mouseMoved)
      (mouse_autoselect_window, in_window, mouseDragged)
      (rightMouseDragged, otherMouseDragged, windowShouldClose)
      (updateFrameSize, windowWillResize, windowDidResize)
      (windowDidBecomeKey, windowDidResignKey, windowWillMiniaturize)
      (initFrameFromEmacs, windowDidMove, windowDidDeminiaturize)
      (windowDidExpose, windowDidMiniaturize, windowWillEnterFullScreen)
      (windowDidEnterFullScreen, windowWillExitFullScreen)
      (windowDidExitFullScreen, toggleFullScreen, handleFS, setFSValue)
      (mouseEntered, mouseExited, menuDown, toolbarClicked, drawRect)
      (draggingEntered, performDragOperation, validRequestorForSendType)
      (setMiniwindowImage, constrainFrameRect, performZoom, zoom)
      (EmacsScroller_initFrame, EmacsScroller_setFrame)
      (EmacsScroller_dealloc, condemn, reprieve, judge)
      (resetCursorRects, setPosition, EmacsScroller_mouseDown)
      (EmacsScroller_mouseDragged, syms_of_nsterm): Use new trace system.
      * nsfns.m: Remove old NSTRACE macro.
      * nsfns.m (x_set_icon_name, ns_set_name, x_explicitly_set_name)
      (x_implicitly_set_name, x_set_title, ns_set_name_as_filename)
      (ns_implicitly_set_icon_type, x_set_icon_type): Use new trace system.
      * nsimage.m: Remove old NSTRACE macro.
      * nsimage.m (ns_image_from_XBM, ns_image_for_XPM)
      (ns_image_from_bitmap_file, ns_load_image): Use new trace system.
      * nsmenu.m: Remove old NSTRACE macro.
      * nsmenu.m (ns_update_menubar, ns_menu_show, ns_popup_dialog):
      Use new trace system.
    • Katsumi Yamaoka's avatar
      No need to use eval-and-compile · 3768304c
      Katsumi Yamaoka authored
      * lisp/gnus/auth-source.el: Do require epg (when compiling) before
      autoload epg functions.
  3. 22 Oct, 2015 9 commits
    • Katsumi Yamaoka's avatar
      Fix auth-source-epa-make-gpg-token compilation (bug#21724) · bf40ed21
      Katsumi Yamaoka authored
      * lisp/gnus/auth-source.el: Add eval-and-compile to autoloads for
      epg-context-set-passphrase-callback, epg-decrypt-string, and
      epg-encrypt-string; require epg when compiling for the setf-method
      for epg-context-armor. (bug#21724)
    • Eli Zaretskii's avatar
      Include file cleanup for w32 files in src directory · d4352f81
      Eli Zaretskii authored
      * src/w32xfns.c: Don't include keyboard.h, window.h, charset.h,
      fontset.h, blockinput.h.
      * src/w32uniscribe.c: Don't include dispextern.h, character.h,
      charset.h, fontset.h.
      * src/w32term.c: Don't include systty.h, systime.h, charset.h,
      character.h, ccl.h, dispextern.h, disptab.h, intervals.h,
      process.h, atimer.h, keymap.h, w32heap.h.  Include bitmap/gray.xbm
      in an ifdef-ed away block.
      Include fcntl.h for CYGWIN.
      (set_frame_param): Remove unused function.
      * src/w32select.c: Don't include charset.h and composite.h.
      (setup_config, Fw32_get_clipboard_data): Avoid compiler warnings
      due to pointer signedness mismatches.
      * src/w32reg.c (w32_get_string_resource): Avoid compiler warnings
      due to pointer signedness mismatches.
      * src/w32proc.c: Include unistd.h.  Don't include systime.h,
      process.h, dispextern.h.
      (sys_spawnve, Fw32_short_file_name, Fw32_long_file_name)
      (Fw32_application_type): Avoid compiler warnings due to pointer
      signedness mismatches.
      * src/w32menu.c: Don't include keymap.h, termhooks.h, window.h,
      character.h, charset.h, dispextern.h.
      (simple_dialog_show, add_menu_item): Avoid compiler warnings due
      to pointer signedness mismatches.
      * src/w32inevt.c: Don't include dispextern.h, window.h,
      termhooks.h, w32heap.h.
      * src/w32font.c: Don't include dispextern.h, character.h,
      charset.h, fontset.h, font.h.
      (intern_font_name, add_font_entity_to_list)
      (registry_to_w32_charset, w32_to_x_charset, fill_in_logfont)
      (list_all_matching_fonts): Avoid compiler warnings due to pointer
      signedness mismatches.
      * src/w32fns.c: Don't include character.h, intervals.h,
      dispextern.h, epaths.h, charset.h, ccl.h, fontset.h, systime.h,
      termhooks.h, w32heap.h, bitmap/gray.xbm, font.h, w32font.h.
      (w32_color_map_lookup, add_system_logical_colors_to_map)
      (x_decode_color, x_set_name, FPRINTF_WM_CHARS, Fxw_color_defined_p)
      (Fxw_color_values, x_display_info_for_name, Fset_message_beep)
      (x_create_tip_frame, Fx_file_dialog, Fsystem_move_file_to_trash)
      (w32_parse_hot_key, Ffile_system_info, w32_kbd_patch_key): Avoid
      compiler warnings, mainly due to pointer signedness mismatches.
      (unwind_create_frame_1): Remove unused function.
      * src/w32console.c: Don't include character.h, disptab.h, frame.h,
      window.h, termhooks.h, dispextern.h.
      (w32con_write_glyphs, w32con_write_glyphs_with_face): Fix pointer
      signedness mismatch.
      * src/w32.c: Include c-strcase.h and systty.h.  Don't include
    • Tassilo Horn's avatar
      Improve doc-view wrt. auto-revert-mode · 11d14229
      Tassilo Horn authored
      * lisp/doc-view.el (doc-view-revert-buffer): Don't revert when file is
      corrupted (bug#21729).
      (doc-view-mode): Set doc-view-revert-buffer as revert-buffer-function.
    • Oleh Krehel's avatar
      Describe dired-do-compress-to in the manual · 717e7a4e
      Oleh Krehel authored
      * etc/NEWS: Update.
      * lisp/dired-aux.el: Fix typo.
      * doc/emacs/dired.texi: Add entry.
    • Jürgen Hötzel's avatar
      Further fix for proper locale handling in tramp-gvfs.el · 01d2af9c
      Jürgen Hötzel authored
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
      Just suppress LC_MESSAGES locale category settings.
    • Paul Eggert's avatar
      Spelling fixes · cd428600
      Paul Eggert authored
    • Paul Eggert's avatar
      New lispref section “Security Considerations” · f373e812
      Paul Eggert authored
      This attempts to document some of the issues recently discussed
      on emacs-devel, and to indicate other such issues.  The section
      could be a lot longer.
      * doc/lispref/os.texi (Security Considerations):
      New node.
      * doc/lispref/elisp.texi (Top):
      * doc/lispref/processes.texi (Shell Arguments):
      * lisp/subr.el (shell-quote-argument):
      * src/callproc.c (syms_of_callproc):
      Reference it.
    • Paul Eggert's avatar
      Merge from gnulib · 0bb27cd3
      Paul Eggert authored
      This incorporates:
      2015-10-18 stdalign: work around pre-4.9 GCC x86 bug
      2015-10-18 time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
      * doc/misc/texinfo.tex, lib/stdalign.in.h, lib/time_rz.c:
      Copy from gnulib.
    • Katsumi Yamaoka's avatar
      Remove fboundp checks from mailcap-mime-data · 2ab48baf
      Katsumi Yamaoka authored
      * lisp/gnus/mailcap.el (mailcap-mime-data): Remove fboundp checks.
      (mailcap-viewer-passes-test): Do it instead.  Thanks to Stefan Monnier.
  4. 21 Oct, 2015 5 commits
    • Ken Brown's avatar
      Further include-file cleanup · 54f59907
      Ken Brown authored
      * src/sheap.c: Include stdlib.h.
      * src/unexcw.c: Include string.h.
    • Eli Zaretskii's avatar
      Fix logic in 'server-kill-emacs-query-function' · 5dc48a2d
      Eli Zaretskii authored
      * lisp/server.el (server-kill-emacs-query-function): Correct the
      logic that controls whether the user is asked for confirmation.
    • Artur Malabarba's avatar
      * lisp/isearch.el (isearch-search-fun-default): Simplify logic · e5ece322
      Artur Malabarba authored
      (isearch--lax-regexp-function-p): New function.
    • Artur Malabarba's avatar
      * lisp/isearch.el: Support lax-whitespace in regexp-function searches · 19fada58
      Artur Malabarba authored
      (isearch-search-fun-default): Let-bind `search-spaces-regexp'
      around `isearch-regexp-function'.
    • Artur Malabarba's avatar
      * lisp/isearch.el: Rename word search to regexp-function search · ab65b33f
      Artur Malabarba authored
      `isearch-word' went well beyond its original purpose, and the name
      no longer makes sense.  It is now called
      `isearch-regexp-function', and it's value should always be a
      function that converts a string to a regexp (though setting it to
      t is still supported for now).
      (isearch-word): Make obsolete.
      (isearch-regexp-function): New variable.
      (isearch-mode, isearch-done, isearch--state, isearch--set-state)
      (with-isearch-suspended, isearch-toggle-regexp)
      (isearch-toggle-word, isearch-toggle-symbol)
      (isearch-toggle-character-fold, isearch-query-replace)
      (isearch-occur, isearch-highlight-regexp)
      (isearch-search-and-update, isearch-message-prefix)
      (isearch-search-fun-default, isearch-search)
      (isearch-lazy-highlight-new-loop, isearch-lazy-highlight-search):
      Use it.
      (isearch-lazy-highlight-regexp-function): New var.
      (isearch-lazy-highlight-word): Make obsolete.
      (isearch--describe-regexp-mode): New function.
      (isearch--describe-word-mode): Make obsolete.
      * lisp/info.el (Info-isearch-search): Use the new var.
      * lisp/replace.el (replace-search, replace-highlight): Use the new
      * lisp/obsolete/longlines.el (longlines-search-function): Use the
      new var.
      * lisp/hexl.el (hexl-isearch-search-function): Use the new var.
      * lisp/cedet/semantic/senator.el (senator-isearch-search-fun): Use
      the new var.