1. 25 Feb, 2016 1 commit
  2. 24 Feb, 2016 16 commits
  3. 23 Feb, 2016 23 commits
    • Paul Eggert's avatar
      Port to --enable-gcc-warnings sans getaddrinfo_a · c7b8194c
      Paul Eggert authored
      * src/process.c (Fmake_network_process): Add ATTRIBUTE_UNUSED
      to a local unused when getaddrinfo_a is missing.
      Resize portbuf to size needed.  Do cheap test first.
      Move local to block where it’s needed.
      c7b8194c
    • Paul Eggert's avatar
      Minor cleanups for async DNS etc. · 82848cf6
      Paul Eggert authored
      * src/frame.h (FRAME_WINDOW_CONFIGURATION_CHANGED):
      Omit unnecessary parens.
      * src/gnutls.c (gnutls_try_handshake, emacs_gnutls_deinit)
      (gnutls_verify_boot):
      Use bool for boolean.
      (ATTRIBUTE_FORMAT_PRINTF): Add printf attribute.
      * src/process.c (free_dns_request, Fmake_network_process):
      Allocate and free async request control block all in one go.
      (set_network_socket_coding_system, finish_after_tls_connection)
      (connect_network_socket):
      Now static.
      (conv_numerical_to_lisp): 2nd arg is now int, not unsigned.
      (Fmake_network_process): Use list1 for brevity.
      (wait_for_socket_fds): 2nd arg is now const ptr.
      * src/process.h (struct Lisp_Process.dns_request):
      Now struct gaicb *, not struct gaicb **, since there was always
      exactly one.  All uses changed.
      * src/window.c, src/window.h (run_window_configuration_change_hook):
      Now static.
      82848cf6
    • Martin Rudalics's avatar
      ; Add NEWS entries for last commit · f4152efd
      Martin Rudalics authored
      f4152efd
    • Carlos Pita's avatar
      Allow more shell script defun forms · c817549b
      Carlos Pita authored
      * lisp/progmodes/sh-script.el (sh-mode): Allow more shell
      script defun forms, like function name () {...} (bug#19754).
      c817549b
    • Martin Rudalics's avatar
      Fix `window-configuration-change-hook' and `window-size-change-functions' · 8e7712c7
      Martin Rudalics authored
      (1) Run `window-configuration-change-hook' if and only if at least
      one window was deleted or created or shows another buffer since
      last redisplay.
      
      (2) Run `window-size-change-functions' if and only if at least
      one window changed its size since last redisplay (in a few cases
      `window-size-change-functions' will also run when no window
      changed its size).
      
      (3) Provide two functions `window-pixel-height-before-size-change'
      and `window-pixel-width-before-size-change' that allow to easily
      detect which window changed size.
      
      * src/frame.h (struct frame): New boolean member
      window_configuration_changed.
      (FRAME_WINDOW_SIZES_CHANGED): Remove macro.
      (FRAME_WINDOW_CONFIGURATION_CHANGED): New macro.
      * src/frame.c (adjust_frame_size): Don't run
      `window-configuration-change-hook'.
      * src/window.h (struct window): New fields
      pixel_width_before_size_change and pixel_height_before_size_change.
      (WINDOW_INTERNAL_P): New macro.
      * src/window.c (Fwindow_pixel_width_before_size_change)
      (Fwindow_pixel_height_before_size_change): New functions.
      (Fdelete_other_windows_internal, Fwindow_resize_apply)
      (resize_frame_windows, Fsplit_window_internal)
      (Fdelete_window_internal, grow_mini_window)
      (shrink_mini_window, Fresize_mini_window_internal): Don't call
      FRAME_WINDOW_SIZES_CHANGED.
      (window_size_changed, window_set_before_size_change_sizes)
      (run_window_size_change_functions): New functions.
      (make_window): Initialize pixel_width_before_size_change and
      pixel_height_before_size_change.
      (Fdelete_window_internal): Don't call
      run_window_configuration_change_hook.
      (struct saved_window): Add pixel_height_before_size_change and
      pixel_width_before_size_change.
      (Fset_window_configuration): Try to identify window configuration
      changes correctly so run_window_configuration_change_hook and
      run_window_size_change_functions run only if configuration and size
      really changed.
      (save_window_save): Set the pixel_height_before_size_change and
      pixel_width_before_size_change fields.
      (Vwindow_size_change_functions): Move here definiton from xdisp.c.
      * src/xdisp.c (prepare_menu_bars, redisplay_internal): Call
      run_window_size_change_functions.
      (Vwindow_size_change_functions): Move definition to window.c.
      * src/xfns.c (x_set_menu_bar_lines): Don't call
      run_window_configuration_change_hook.
      * doc/lispref/windows.texi (Window Sizes): Document new
      functions `window-pixel-height-before-size-change' and
      `window-pixel-width-before-size-change'.
      (Window Configurations): Mention that this may trigger
      execution of `window-size-change-functions' although no window
      changed size.
      (Window Hooks): Update descriptions of `window-size-change-functions'
      and `window-configuration-change-hook'.
      8e7712c7
    • Drew Adams's avatar
      (ls-lisp-insert-directory): Make -B work · ef52e66e
      Drew Adams authored
      * lisp/ls-lisp.el (ls-lisp-insert-directory): Make -B work
      (bug#20776).
      ef52e66e
    • Lars Ingebrigtsen's avatar
      Fix typo in message-setup-fill-variables · c399756d
      Lars Ingebrigtsen authored
      * lisp/gnus/message.el (message-setup-fill-variables): Fix
      typo in a recent checkin that used `setq-default' instead of
      `setq-local' (bug#22781).
      c399756d
    • Lars Ingebrigtsen's avatar
      `message-dont-reply-to-names' can also be a list of regexps · d9ab2503
      Lars Ingebrigtsen authored
      * lisp/gnus/message.el (message-dont-reply-to-names):
      `message-dont-reply-to-names' can also be a list of regexps (bug#22773).
      d9ab2503
    • Vaidheeswaran C's avatar
      Make buttons in header lines work · c11e565a
      Vaidheeswaran C authored
      * lisp/help-mode.el (help-button-action): `help-xref-button' in
      header line doesn't work (bug#21024).
      c11e565a
    • Vasilij Schneidermann's avatar
      Place apples randomly in Snake · 879e09bb
      Vasilij Schneidermann authored
      * lisp/play/snake.el (snake-score): New variable (bug#21359).
      (snake-set-dot): Place the apples randomly.
      879e09bb
    • Tino Calancha's avatar
      Allow optional parameter to be nil · cc27b1b0
      Tino Calancha authored
      * lisp/ibuf-ext.el (ibuffer-copy-filename-as-kill): Allow the
      optional parameter to be nil (bug#21576).
      cc27b1b0
    • Tino Calancha's avatar
      Completely ignore buffers with no name when copying file names · b8dfc7be
      Tino Calancha authored
      * lisp/ibuf-ext.el (ibuffer-copy-filename-as-kill): Completely
      ignore buffers with no file name. (bug#21577).
      b8dfc7be
    • Lars Ingebrigtsen's avatar
      Make spelling of "Eshell" consistent · ed91405a
      Lars Ingebrigtsen authored
      * lisp/eshell/esh-mode.el (eshell-mode): Spell it "Eshell".
      * lisp/eshell/eshell.el (eshell-command):
      Spell it "Eshell" (bug#21678).
      ed91405a
    • Simen Heggestøyl's avatar
      Allow pretty lambdas in Scheme mode · ad99299f
      Simen Heggestøyl authored
      * lisp/progmodes/scheme.el (scheme-mode-variables): Borrow
      `prettify-symbols-alist' from Lisp mode (bug#21679).
      ad99299f
    • Lars Ingebrigtsen's avatar
      Rename lisp--prettify-symbols-alist · aeac6037
      Lars Ingebrigtsen authored
      * lisp/emacs-lisp/lisp-mode.el (lisp-prettify-symbols-alist):
      Rename from `lisp--prettify-symbols-alist' since we're going
      to use it in Scheme mode, too.
      (lisp-mode-variables): Use it.
      aeac6037
    • Chunyang Xu's avatar
      Remove spurious newline in package list · d6925623
      Chunyang Xu authored
      * lisp/emacs-lisp/package.el (describe-package-1): Remove
      spurious newline (bug#21706).
      
      Copyright-paperwork-exempt: yes
      d6925623
    • Lars Ingebrigtsen's avatar
      Revert "Remove spurious newline in package list" · b85bfe2c
      Lars Ingebrigtsen authored
      This reverts commit fad14c28.
      b85bfe2c
    • Chunyang Xu's avatar
      Remove spurious newline in package list · fad14c28
      Chunyang Xu authored
      * lisp/emacs-lisp/package.el (describe-package-1): Remove
      spurious newline (bug#21706).
      fad14c28
    • Tino Calancha's avatar
      Keep the position in the process buffer when deleting processes · 1b0bf990
      Tino Calancha authored
      * lisp/simple.el (process-menu-delete-process): Keep the
      position in the buffer after killing a process (bug#21759).
      
      Copyright-paperwork-exempt: yes
      1b0bf990
    • Lars Ingebrigtsen's avatar
      Require that the buffer that we're trying to patch exist · 92da0036
      Lars Ingebrigtsen authored
      * lisp/vc/ediff.el (ediff-patch-buffer): Require that the
      buffer that we're trying to patch exist (bug#21852).
      92da0036
    • Tino Calancha's avatar
      Require that the buffer that we're trying to patch exist · 0d215406
      Tino Calancha authored
      * lisp/vc/ediff.el (ediff-patch-buffer): Require that the
      buffer that we're trying to patch exist (bug#21852).
      
      Copyright-paperwork-exempt: yes
      0d215406
    • Tino Calancha's avatar
      Be more verbose when changing frame mode in ediff · c5214e79
      Tino Calancha authored
      * lisp/vc/ediff-util.el (ediff-toggle-multiframe): Say what
      mode we toggled to (bug#21853).
      
      Copyright-paperwork-exempt: yes
      c5214e79
    • Łukasz Stelmach's avatar
      Encode header strings before printing · 3cedbdcc
      Łukasz Stelmach authored
      * lisp/ps-print.el (ps-generate-header-line): Encode the
      header strings to avoid problems with non-ASCII headers
      (bug#22611).
      3cedbdcc