1. 18 May, 2016 2 commits
    • Paul Eggert's avatar
      Port --enable-gcc-warnings to GCC 6.1 · 374f6a5f
      Paul Eggert authored
      * configure.ac (WERROR_CFLAGS): Omit -Wunused-const-variable=2.
      * lib-src/etags.c (LOOKING_AT, LOOKING_AT_NOCASE):
      Omit test whether pointer plus a constant equals a null pointer.
      * src/alloc.c (compact_small_strings):
      Avoid pointer arithmetic on null pointers.
      * src/alloc.c (mark_face_cache):
      * src/fontset.c (free_realized_fontsets, Fset_fontset_font):
      * src/fringe.c (draw_fringe_bitmap_1)
      * src/macfont.m (macfont_draw):
      * src/msdos.c (IT_set_face, IT_clear_screen):
      * src/nsfont.m (nsfont_draw):
      * src/nsterm.h (FRAME_DEFAULT_FACE):
      * src/nsterm.m (ns_draw_window_cursor)
      (ns_draw_vertical_window_border, ns_draw_window_divider)
      (ns_maybe_dumpglyphs_background, ns_dumpglyphs_image)
      * src/w32term.c (w32_draw_vertical_window_border)
      (w32_draw_window_divider, x_set_mouse_face_gc):
      * src/xdisp.c (estimate_mode_line_height, init_iterator)
      (handle_face_prop, handle_single_display_spec, pop_it)
      (CHAR_COMPOSED_P, get_next_display_element)
      (next_element_from_display_vector, extend_face_to_end_of_line)
      * src/xfaces.c (Finternal_merge_in_global_face, Fface_font)
      * src/xterm.c (x_draw_vertical_window_border)
      (x_draw_window_divider, x_set_mouse_face_gc):
      Prefer FACE_OPT_FROM_ID to FACE_FROM_ID when the result might be null.
      * src/xterm.c (try_window_id):
      Redo loop to convince GCC 6.1 that it is null pointer safe.
      Use eassume as necessary to pacify GCC 6.1.
      * src/dispextern.h (FACE_FROM_ID, IMAGE_FROM_ID): Now returns non-null.
      (FACE_OPT_FROM_ID, IMAGE_OPT_FROM_ID): New macro, with the old
      behavior of the non-_OPT macro, to be used when the result
      might be a null pointer.
      * src/dispnew.c (buffer_posn_from_coords, marginal_area_string)
      * src/intervals.h (INTERVAL_WRITABLE_P):
      * src/term.c (turn_off_face):
      * src/xdisp.c (get_glyph_face_and_encoding, fill_image_glyph_string)
      (produce_image_glyph, produce_xwidget_glyph):
      * src/xfaces.c (lookup_named_face):
      Remove unnecessary test for null pointer.
      * src/keyboard.c (read_char): Suppress bogus -Wclobbered warning.
      * src/process.c (would_block): New function.
      (server_accept_connection, wait_reading_process_output, send_process):
      Use it.
      * src/xdisp.c (get_window_cursor_type, note_mouse_highlight):
      Prefer IMAGE_OPT_FROM_ID to IMAGE_FROM_ID when the result
      might be null.
    • Paul Eggert's avatar
      Sync from gnulib · 6f5db025
      Paul Eggert authored
      This incorporates:
      2016-05-17 manywarnings: update for GCC 6.1
      2016-05-13 intdiv0, memmem, nocrash, strcasestr, strstr: no exit
      * m4/manywarnings.m4, m4/nocrash.m4: Copy from gnulib.
  2. 17 May, 2016 2 commits
  3. 16 May, 2016 2 commits
    • Alan Mackenzie's avatar
    • Alan Mackenzie's avatar
      Fix spurious fontification of "for (; a * b;)" in CC Mode. · 116acebf
      Alan Mackenzie authored
      This fixes bug #7918 (again).
      * lisp/progmodes/cc-engine.el (c-delq-from-dotted-list): New function.
      (c-forward-decl-or-cast-1): Return a 4 element list in place of the previous
      cons cell - additionally, return a flag indicating whether the declaration
      parsed might have been an expression, and the position of the type identifier
      in the said declaration.
      * lisp/progmodes/cc-fonts.el (c-font-lock-declarations): When
      c-forward-decl-or-cast-1 has indicated it might have parsed an expression,
      check for it being a spurious declaration in a "for" statement.
  4. 15 May, 2016 1 commit
    • Paul Eggert's avatar
      Pacify ‘make check-declare’ · 65c8c7cb
      Paul Eggert authored
      * lisp/cedet/srecode/insert.el (data-debug-new-buffer)
      (data-debug-insert-stuff-list, data-debug-insert-thing):
      * lisp/emulation/viper-ex.el (viper-change-state-to-vi)
      * lisp/emulation/viper-macs.el (viper-change-state-to-vi):
      * lisp/org/ob-asymptote.el (orgtbl-to-generic):
      * lisp/org/ob-awk.el (orgtbl-to-generic):
      * lisp/org/ob-core.el (org-edit-src-code, orgtbl-to-generic):
      * lisp/org/ob-emacs-lisp.el (orgtbl-to-generic):
      * lisp/org/ob-exp.el (org-element-context):
      * lisp/org/ob-gnuplot.el (org-time-string-to-time)
      * lisp/org/ob-haskell.el (org-export-to-file):
      * lisp/org/ob-latex.el (org-create-formula-image)
      * lisp/org/ob-python.el (run-python):
      * lisp/org/ob-sh.el (orgtbl-to-generic):
      * lisp/org/ob-tangle.el (org-link-escape, org-back-to-heading):
      * lisp/org/org-colview.el (org-agenda-redo):
      * lisp/org/org-feed.el (url-retrieve-synchronously):
      * lisp/org/org-info.el (Info-find-node):
      * lisp/org/org-list.el (org-previous-line-empty-p):
      * lisp/org/org-macs.el (org-string-match-p):
      * lisp/org/org.el (org-beamer-mode):
      Fix prototype to match current definition.
      * lisp/emacs-lisp/advice.el (function-called-at-point):
      * lisp/progmodes/prolog.el (compilation-shell-minor-mode):
      Fix typo: extra '.
      * lisp/emacs-lisp/cl-generic.el (cl-defmethod):
      Insert ,' to pacify check-declare.
      * lisp/org/ob-comint.el (tramp-flush-directory-property):
      * lisp/org/ob-tangle.el (org-babel-update-block-body):
      * lisp/org/org-bibtex.el (org-babel-trim):
      * lisp/org/org-pcomplete.el (org-export-backend-options):
      * lisp/org/org-protocol.el (org-publish-get-project-from-filename):
      Fix file name in declare-function.
      * lisp/org/ob-comint.el (with-parsed-tramp-file-name)
      * lisp/org/ob-core.el (with-parsed-tramp-file-name):
      * lisp/org/org.el (org-beamer-mode):
      * lisp/url/url-http.el (gnutls-negotiate):
      Append ‘t’ to declare-function, since the declaration isn’t a defun.
      * lisp/org/ob-core.el (show-all):
      Declare outline-show-all instead, since it is the
      non-obsolete version of this function.
      (org-save-outline-visibility): Remove; not needed.
      * lisp/org/ob-scheme.el (run-geiser, geiser-mode)
      (geiser-eval-region, geiser-repl-exit):
      * lisp/org/ox-org.el (htmlize-buffer):
      Prepend "ext:" to file name, since it is not part of Emacs.
      * lisp/org/ob-sh.el (org-babel-comint-in-buffer)
      * lisp/org/org-gnus.el (nnimap-group-overview-filename):
      Remove decl, since function was removed.
      * lisp/org/ob-sh.el (org-babel-comint-with-output):
      * lisp/org/org-macro.el (org-with-wide-buffer):
      Omit unnecessary (and mismatching) decl.
      * lisp/org/org-agenda.el (calendar-absolute-from-iso):
      * lisp/org/org-clock.el (calendar-iso-to-absolute):
      Declare calendar-iso-to-absolute instead, since it is the
      non-obsolete version of this function.
      * lisp/org/org-compat.el (w32-focus-frame):
      Remove decl, since function is now obsolete.
  5. 14 May, 2016 5 commits
  6. 13 May, 2016 8 commits
    • Paul Eggert's avatar
      Improve display of tex-verbatim and Info quoted · 36906806
      Paul Eggert authored
      Problem reported by Glenn Morris (Bug#19889).
      * doc/emacs/display.texi (Standard Faces):
      * doc/lispref/display.texi (Basic Faces):
      * etc/NEWS: Mention fixed-pitch-serif.
      * lisp/faces.el (face-font-family-alternatives):
      New family alias Monospace Serif.
      (fixed-pitch-serif): New face, which uses the new family.
      * lisp/info.el (Info-quoted):
      * lisp/textmodes/tex-mode.el (tex-verbatim): Use the new face.
      * test/lisp/legacy/font-parse-tests.el (font-parse-tests--data):
      Add test case for Monospace Serif.
    • Stefan Monnier's avatar
      * lisp/net/sieve-mode.el: Handle the text:... notation · 536ddf40
      Stefan Monnier authored
      Get rid of redundant :group keywords.
      (sieve-mode-syntax-table): Move initialization into declaration.
      (sieve-syntax-propertize, sieve-syntax-propertize-text): New functions.
      (sieve-mode): Use them.
    • Paul Eggert's avatar
      Remove buggy non-native image scrolling · edae7d93
      Paul Eggert authored
      This never worked, and could cause infinite recursion.
      Problem reported by Glenn Morris (Bug#22465).
      * lisp/xwidget.el (xwidget-webkit-scroll-behavior): Remove.
      All uses removed.
    • Paul Eggert's avatar
      Tweak check-declare-directory performance · faa8f385
      Paul Eggert authored
      * lisp/emacs-lisp/check-declare.el (check-declare-directory):
      Use ‘find ... -exec ... +’ for speed.
    • Paul Eggert's avatar
      Sync from gnulib · f791efc0
      Paul Eggert authored
      This incorporates a spelling fix, plus:
      2016-05-09 Fix undefined behaviour in gettext.h
      * lib/gettext.h, lib/mktime.c:
      Copy from gnulib.
    • Paul Eggert's avatar
      Merge from origin/emacs-25 · 1adfb5ee
      Paul Eggert authored
      9c2a1a26 * doc/misc/texinfo.tex: Sync from gnulib.
      66cd4d8b * lisp/emacs-lisp/find-func.el (find-feature-regexp) (find-al...
      1a5a05cf Do not mistake colon at the end of regexp for slash symbol
      4c5a00b0 Make package-install-from-buffer not move point
      9596ea15 ; Revert "* emacs-lisp/lisp-mnt.el (lm-header): save-excursion"
      f79c3523 Redo the fix for bug#21839
      8d2f78c4 Don't treat JS spread as contination method call
    • Paul Eggert's avatar
      * doc/misc/texinfo.tex: Sync from gnulib. · 9c2a1a26
      Paul Eggert authored
    • Chris Feng's avatar
      Correct server/client address · 97c05cc8
      Chris Feng authored
      * src/process.c (Fmake_network_process): :local is for servers and :remote
      is for clients.
  7. 12 May, 2016 8 commits
    • Ken Brown's avatar
      Autosave buffers on logout if HAVE_NTGUI · 6435f41f
      Ken Brown authored
      * src/w32fns.c (w32_wnd_proc): Pass a WM_ENDSESSION message on to
      * src/w32term.c (w32_read_socket): Create an event of type
      END_SESSION_EVENT if a WM_ENDSESSION message is received.
      * src/termhooks.h [HAVE_NTGUI]: New event kind END_SESSION_EVENT.
      * src/keyboard.c [HAVE_NTGUI] (syms_of_keyboard): New symbol
      (kbd_buffer_get_event): Return an end-session event if an event of
      type END_SESSION_EVENT is read.
      (keys_of_keyboard): Bind the end-session event to kill-emacs in
      special-event-map.  (Bug#23483)
    • Stefan Monnier's avatar
      * lisp/cedet/semantic/{db-el,symref}.el: Mark unused vars · ec7a173e
      Stefan Monnier authored
      * lisp/cedet/semantic/db-el.el: Use _ to mark unused vars.
      (object-print): Use cl-call-next-method instead of call-next-method.
      * lisp/cedet/semantic/symref.el: Use _ to mark unused vars.
    • Glenn Morris's avatar
      * lisp/emacs-lisp/find-func.el (find-feature-regexp) · 66cd4d8b
      Glenn Morris authored
      (find-alias-regexp): Fix :version.
    • Stefan Monnier's avatar
      * lisp/cedet/semantic: Silence some warnings · 28e8e49e
      Stefan Monnier authored
      * lisp/cedet/semantic/db-el.el (emacs-lisp-mode)
      (semanticdb-get-database-tables): Use make-instance to silence warnings.
      * lisp/cedet/semantic/symref.el: Require semantic/find since we use
      some macros from there.  Silence compilation warnings:
      Replace initargs with slot names in oref/oset.
      Move `SYMREF TOOLS' section earlier so definitions precede their use.
    • Lars Ingebrigtsen's avatar
      Support srcset in <img> · 73071b4c
      Lars Ingebrigtsen authored
      * lisp/net/shr.el (shr--preferred-image): Allow <img> tags
      with srcset specifiers (bug#23459).
    • Michael Albinus's avatar
      Do not autoload some functions of tramp.el · 9872736a
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-completion-file-name-handler):
      Autoload a shortened version of this function, avoid recursive load.
      (tramp-completion-handle-file-name-completion): Do not autoload.
    • Michael Albinus's avatar
      Avoid recursive load of tramp.el · a8be7c1e
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-completion-file-name-handler):
      Autoload a shortened version of this function, avoid recursive load.
    • Dmitry Gutov's avatar
      Do not mistake colon at the end of regexp for slash symbol · 1a5a05cf
      Dmitry Gutov authored
      * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
      Check the parse state in the "Symbols with special characters"
      rule (bug#23515).
  8. 11 May, 2016 6 commits
  9. 10 May, 2016 6 commits
    • Dmitry Gutov's avatar
      Don't treat JS spread as contination method call · 8d2f78c4
      Dmitry Gutov authored
      * lisp/progmodes/js.el (js--indent-operator-re):
      Allow only one dot (bug#23492).
      * test/indent/js.js (default): Add a corresponding example.
    • Paul Eggert's avatar
      Pacify byte-compiler in lisp/vc · 62d7acae
      Paul Eggert authored
      * lisp/vc/vc-bzr.el, lisp/vc/vc-cvs.el, lisp/vc/vc-hg.el:
      * lisp/vc/vc-rcs.el, lisp/vc/vc-src.el:
      Declare functions defined elsewhere, to forestall “might not
      be defined at runtime” warnings.
    • Paul Eggert's avatar
      ; Merge from origin/emacs-25 · 9e6302cf
      Paul Eggert authored
      The following commit was skipped:
      fc8a4e0a ; Auto-commit of loaddefs files.
    • Paul Eggert's avatar
      Merge from origin/emacs-25 · 6d0703a0
      Paul Eggert authored
      d0d9f55b Allow newlines inside cl function arglists
      963541a6 Publicize cl--generic-all-functions
      3c581d56 ; Fix typo
      e58f900e Add some "safe-local-variable" declarations for compatibility...
    • Paul Eggert's avatar
      'text-quoting-style' now affects only ` and ' · 433d366d
      Paul Eggert authored
      Change 'text-quoting-style' so that it no longer affects
      formatting of curved quotes in format arguments to functions like
      'message'.  In particular, when this variable's value is 'grave',
      all quotes in formats are output as-is.
      * doc/lispref/help.texi (Keys in Documentation):
      * doc/lispref/strings.texi (Formatting Strings):
      * doc/lispref/tips.texi (Documentation Tips):
      * etc/NEWS:
      * src/doc.c (syms_of_doc): Document this.
      * lisp/help-fns.el (describe-function-1):
      * src/doc.c (text_quoting_style, Fsubstitute_command_keys)
      * src/editfns.c (styled_format): Omit now-unnecessary code.
      * src/lisp.h (LEAVE_QUOTING_STYLE): Remove.
    • Alan Mackenzie's avatar
      Revert "Fix spurious fontification of "for (; a * b;)" in CC Mode." · 8939ae68
      Alan Mackenzie authored
      This reverts commit 89d1776b.  It is
      being reverted because it slowed down CC Mode's fontification too much
      (factor ~3).  It was the fix to bug #7918.