1. 13 Jun, 2016 3 commits
    • Ken Brown's avatar
      Avoid compiler warning · 090fb90d
      Ken Brown authored
      * src/w32fns.c (deliver_wm_chars): Add 'const' to declaration of
      'type_CtrlAlt'.
      090fb90d
    • Paul Eggert's avatar
      Call tzset after setting TZ · 98162445
      Paul Eggert authored
      * src/editfns.c (tzlookup): Call tzset after setting TZ, so that
      the setting change propagates into Emacs local time (Bug#23600).
      (emacs_setenv_TZ): Clarify comments.
      98162445
    • Paul Eggert's avatar
      Update texinfo.tex · 37887dd0
      Paul Eggert authored
      * doc/misc/texinfo.tex: Update from gnulib.
      37887dd0
  2. 12 Jun, 2016 4 commits
    • Paul Eggert's avatar
      New macro GNUC_PREREQ for GCC version · ab182c62
      Paul Eggert authored
      * src/conf_post.h (GNUC_PREREQ): New macro.
      Change uses of __GNUC_MINOR__ and __GNUC_PATCHLEVEL__ to use this
      macro instead, for clarity and consistency.
      (PRINTF_ARCHETYPE): New macro.  Define it to __gnu_printf__ only
      if glibc, since non-GNU platforms don’t necessarily support GNU
      printf formats.
      (ATTRIBUTE_FORMAT_PRINTF): Use it.
      ab182c62
    • NicolasPetton's avatar
    • Eli Zaretskii's avatar
      Fix printf-related compilation warnings on MinGW · 643e0b8d
      Eli Zaretskii authored
      * src/conf_post.h (ATTRIBUTE_FORMAT_PRINTF) [__MINGW32__]: Use
      '__ms_printf__', not '__gnu_printf__', as the latter is not what
      MS 'printf' supports, and causes bogus compilation warnings.
      * src/lisp.h (pI) [__MINGW32__]: Define to "I64", as MS 'printf'
      doesn't support the "ll" modifier.
      643e0b8d
    • Paul Eggert's avatar
      emacs_strerror cleanups · 5932ffcd
      Paul Eggert authored
      * src/buffer.c, src/emacs.c, src/lread.c: Don’t include coding.h;
      no longer needed, now that emacs_strerror is declared by lisp.h.
      * src/coding.c (emacs_strerror): Remove; moved to emacs.c.
      * src/coding.h (emacs_strerror) [emacs]: Remove decl; moved
      to lisp.h.
      * src/emacs.c (emacs_strerror): Move here from coding.c.  Do not
      convert result string; this is now the caller’s responsibility,
      as some need conversion and others don’t.
      * src/fileio.c (report_file_errno, report_file_notify_error):
      Use emacs_strerror rather than rolling it ourselves.
      * src/lisp.h (emacs_strerror): Move decl here from coding.h.
      * src/lread.c (dir_warning): Just call emacs_strerror rather than
      both strerror and emacs_strerror.  Convert its result from
      locale-coding-system, since it no longer does that conversion.
      * src/sound.c (sound_perror):
      * src/sysdep.c (emacs_perror, str_collate):
      Use emacs_strerror, not strerror.
      5932ffcd
  3. 11 Jun, 2016 2 commits
    • David Reitter's avatar
      Prevent compiler warning for unused arguments · eacdc9eb
      David Reitter authored
      * lisp/international/ucs-normalize.el
      (ucs-normalize-hfs-nfd-pre-write-conversion):
      Prevent compiler warning for unused arguments, add coment.
      eacdc9eb
    • Paul Eggert's avatar
      Catch malloc_get_state, malloc_set_state failure · b4788b93
      Paul Eggert authored
      This should help insulate Emacs better from configuration screwups.
      Future versions of the GNU C library are planned to deprecate
      these functions, but will continue to support them in
      already-built-and-dumped Emacs executables.
      * src/alloc.c (malloc_initialize_hook) [DOUG_LEA_MALLOC]:
      Abort if malloc_set_state fails.
      (alloc_unexec_pre) [DOUG_LEA_MALLOC]:
      Report malloc_get_state failure, and exit.
      b4788b93
  4. 10 Jun, 2016 11 commits
    • Eli Zaretskii's avatar
      Show returned value after gdb-mi "finish" command · c803af78
      Eli Zaretskii authored
      * lisp/progmodes/gdb-mi.el (gdb-stopped): Display the expected
      "Value returned" message in response to "finish", when not
      produced by GDB/MI.  (Bug#23720)
      c803af78
    • David Reitter's avatar
      Simplify pre-write-conversion for utf-8-hfs coding system · ff9ddda9
      David Reitter authored
      * lisp/international/ucs-normalize.el
      (ucs-normalize-hfs-nfd-pre-write-conversion): Refactor.
      
      May address an issue where Emacs consumed large amounts of CPU
      because of neverending toolbar updating (which was caused
      by, but also called this function).
      ff9ddda9
    • Martin Rudalics's avatar
      57e6c66d
    • Martin Rudalics's avatar
      Revert "Bind `widget-button-click' to mouse-1/-2 instead of down-mouse-1/-2" · bb0f9253
      Martin Rudalics authored
      * lisp/wid-edit.el (widget-keymap): Bind `widget-button-click'
      to mouse-1/-2 instead of down-mouse-1/-2.  Suggested by Stefan
      Monnier.  (Bug#19185, Bug#20398)
      
      This reverts commit 72166f2f.
      
      That commit did more harm than good (Bug#23571).
      bb0f9253
    • Paul Eggert's avatar
      Port __builtin_assume_aligned to Sun C 5.13 · 25159d82
      Paul Eggert authored
      * src/conf_post.h (__builtin_assume_aligned):
      Fix typo: the extra arg did not conform to C99.
      25159d82
    • Paul Eggert's avatar
      Prefer getsockopt to getpeername on non-MS-Windows · 07b77b8e
      Paul Eggert authored
      * admin/CPP-DEFINES: Remove HAVE_GETPEERNAME.
      * configure.ac: Don’t check for getpeername.
      * src/process.c (wait_reading_process_output) [!WINDOWSNT]:
      Use getsockopt even if not GNU/Linux, as the platforms where
      getsockopt used to hang are no doubt long dead.
      07b77b8e
    • Paul Eggert's avatar
      Fix XFASTINT of non-fixnum in process status · 560202f6
      Paul Eggert authored
      * src/process.c (decode_status): 3rd arg is now Lisp_Object *,
      not int *, and is not decoded.  All uses changed.
      (status_message): Do not assume ‘failed’ code is an integer.
      * src/process.h: Document codes better.
      560202f6
    • Glenn Morris's avatar
      ; Refer to version 25.2 rather than 26.1. · 48079f68
      Glenn Morris authored
      ; I hope the next release from master is indeed 26.1, but for reasons
      ; that passeth my understanding we currently call it 25.2 everywhere else,
      ; so we should at least be consistent.
      48079f68
    • Glenn Morris's avatar
      Make messcompat.el obsolete. · 78b18cab
      Glenn Morris authored
      * lisp/obsolete/messcompat.el: Move here from lisp/gnus.
      * doc/misc/message.texi (Compatibility): Remove section.
      78b18cab
    • Glenn Morris's avatar
      Leading "*" in the doc of defvars is long obsolete. · b27c670b
      Glenn Morris authored
      * lisp/plstore.el (plstore-encrypt-to):
      * lisp/cedet/semantic/lex-spp.el
      (semantic-lex-spp-macro-max-length-to-save):
      * lisp/cedet/semantic/symref.el (semantic-symref-tool):
      * lisp/cedet/semantic/bovine/el.el
      (semantic-elisp-store-documentation-in-tag):
      * lisp/cedet/semantic/wisent/comp.el (wisent-verbose-flag)
      (wisent-expected-conflicts):
      * lisp/cedet/semantic/wisent/wisent.el (wisent-parse-verbose-flag):
      * lisp/gnus/gnus-agent.el (gnus-category-menu-hook):
      * lisp/gnus/gnus-group.el (gnus-group-listing-limit):
      * lisp/gnus/gnus-srvr.el (gnus-server-menu-hook)
      (gnus-browse-menu-hook):
      * lisp/gnus/message.el (message-shoot-gnksa-feet):
      * lisp/gnus/mm-decode.el (mm-path-name-rewrite-functions):
      * lisp/gnus/mm-util.el (mm-extra-numeric-entities):
      * lisp/gnus/mm-view.el (mm-w3m-standalone-supports-m17n-p):
      * lisp/gnus/mml.el (mml-generate-multipart-alist):
      * lisp/gnus/nndraft.el (nndraft-required-headers):
      * lisp/gnus/nnheader.el (nnheader-max-head-length)
      (nnheader-head-chop-length, nnheader-file-name-translation-alist)
      (nnheader-directory-separator-character)
      (nnheader-pathname-coding-system):
      * lisp/gnus/nnmail.el (nnmail-pathname-coding-system)
      (nnmail-active-file-coding-system):
      * lisp/gnus/nnrss.el (nnrss-file-coding-system):
      * lisp/gnus/nntp.el (nntp-record-commands):
      * lisp/gnus/score-mode.el (gnus-score-edit-done-hook)
      (gnus-score-mode-hook, gnus-score-menu-hook):
      * lisp/mail/rfc2047.el (rfc2047-header-encoding-alist)
      (rfc2047-allow-irregular-q-encoded-words)
      (rfc2047-allow-incomplete-encoded-text):
      * lisp/mh-e/mh-alias.el (mh-alias-system-aliases):
      * lisp/mh-e/mh-e.el (mh-mail-header-separator, mh-x-mailer-string):
      * lisp/mh-e/mh-scan.el (mh-scan-format-mh, mh-scan-format-nmh):
      * lisp/net/pop3.el (pop3-password):
      * lisp/play/animate.el (animate-n-steps):
      * lisp/progmodes/cc-vars.el (c-old-style-variable-behavior):
      Convert from defvar with leading * to defcustom.
      
      ; * lisp/cedet/semantic/lex.el: Comments.
      
      * lisp/emulation/viper-init.el (viper-heading-end):
      * lisp/gnus/mm-url.el (mm-url-html-entities):
      * lisp/gnus/nnmaildir.el (nnmaildir-article-file-name):
      * lisp/mh-e/mh-e.el (mh-invisible-header-fields-compiled):
      * lisp/net/tramp-adb.el (tramp-adb-method): Remove leading * from doc.
      
      * lisp/gnus/messcompat.el: Mark (pointless) file not for compilation.
      (message-from-style, message-interactive, message-indentation-spaces)
      (message-signature, message-signature-file):
      Remove settings that match the defaults.
      (message-setup-hook, message-mode-hook, message-default-headers)
      (message-send-hook, message-send-mail-function):
      Just use setq rather than redefining.
      
      * lisp/gnus/nnrss.el (nnrss):
      * lisp/mail/rfc2047.el (rfc2047):
      * lisp/play/animate.el (animate): New custom groups.
      b27c670b
    • Glenn Morris's avatar
      Remove obsolete leading * from defcustom, defface doc strings. · f9af5edd
      Glenn Morris authored
      * lisp/cedet/ede/linux.el, lisp/cedet/ede/project-am.el:
      * lisp/cedet/ede/simple.el, lisp/cedet/semantic/bovine/c.el:
      * lisp/cedet/semantic/complete.el, lisp/cedet/semantic/db.el:
      * lisp/cedet/semantic/decorate/include.el:
      * lisp/cedet/semantic/decorate/mode.el, lisp/cedet/semantic/format.el:
      * lisp/cedet/semantic/ia.el, lisp/cedet/semantic/idle.el:
      * lisp/cedet/semantic/imenu.el, lisp/cedet/semantic/lex-spp.el:
      * lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/sb.el:
      * lisp/cedet/srecode/fields.el, lisp/ecomplete.el:
      * lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
      * lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
      * lisp/gnus/gnus-cite.el, lisp/gnus/gnus-delay.el:
      * lisp/gnus/gnus-diary.el, lisp/gnus/gnus-dup.el:
      * lisp/gnus/gnus-fun.el, lisp/gnus/gnus-group.el:
      * lisp/gnus/gnus-kill.el, lisp/gnus/gnus-msg.el:
      * lisp/gnus/gnus-picon.el, lisp/gnus/gnus-salt.el:
      * lisp/gnus/gnus-score.el, lisp/gnus/gnus-start.el:
      * lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
      * lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
      * lisp/gnus/gnus.el, lisp/gnus/mail-source.el, lisp/gnus/message.el:
      * lisp/gnus/mm-url.el, lisp/gnus/mm-uu.el, lisp/gnus/mml.el:
      * lisp/gnus/nndiary.el, lisp/gnus/nnir.el, lisp/gnus/nnmail.el:
      * lisp/gnus/smiley.el, lisp/gnus/smime.el, lisp/mail/mail-extr.el:
      * lisp/mh-e/mh-e.el, lisp/net/mailcap.el, lisp/net/pop3.el:
      * lisp/net/starttls.el, lisp/progmodes/cc-vars.el:
      * lisp/progmodes/cperl-mode.el, test/manual/cedet/tests/test.el:
      Remove obsolete leading * from defcustom, defface doc strings.
      f9af5edd
  5. 09 Jun, 2016 4 commits
    • Eli Zaretskii's avatar
      Fix copying text properties by 'format' · 1c094238
      Eli Zaretskii authored
      * src/editfns.c (styled_format): Fix copying text properties from
      the format specification to the produced string representation.
      (Bug#23730)
      (Fformat) Doc fix.
      
      * doc/lispref/strings.texi (Formatting Strings): Document that
      text properties from the format specifiers are also copied to the
      produced string.
      1c094238
    • Alan Mackenzie's avatar
      Handle C++ raw strings. · fabb5582
      Alan Mackenzie authored
      * lisp/progmodes/cc-engine.el (c-raw-string-pos, c-depropertize-raw-string)
      (c-depropertize-raw-strings-in-region,
      c-before-change-check-raw-strings)
      (c-propertize-raw-string-opener, c-after-change-re-mark-raw-strings): New
      functions.
      
      * lisp/progmodes/cc-fonts.el (c-basic-matchers-before): Insert a clause for
      c-font-lock-raw-strings.
      (c-font-lock-raw-strings): New function.
      
      * lisp/progmodes/cc-langs.el (c-get-state-before-change-functions): Insert
      c-before-change-check-raw-strings into the C++ value, and c-depropertize-CPP
      into the values for C, C++, and Objective C.
      (c-before-font-lock-functions): Insert c-after-change-re-mark-raw-strings into
      the C++ value.
      
      * lisp/progmodes/cc-mode.el (c-old-BEG, c-old-END): New variables.
      (c-depropertize-CPP): New function, extracted from
      c-neutralize-syntax-in-and-mark-CPP.
      (c-neutralize-syntax-in-and-mark-CPP): Remove the call to
      c-clear-char-property-with-value for 'syntax-table value '(1) at the beginning
      of the function.
      (c-after-change): Set c-old-BEG and c-old-END to the current values of
      c-new-BEG and c-new-END.
      fabb5582
    • Daiki Ueno's avatar
      epg: don't use obsolete function · 47b710a9
      Daiki Ueno authored
      * lisp/epg.el (epg-sign-string, epg-encrypt-string): Remove
      redundant configuration check, which is now done in
      `epg-make-context'.
      47b710a9
    • Daiki Ueno's avatar
      epg: don't start pinentry if it is useless · cfacb754
      Daiki Ueno authored
      * lisp/epg.el (epg--start): Don't start pinentry server if the
      session is non-interactive or pinentry-mode is set.
      cfacb754
  6. 08 Jun, 2016 11 commits
  7. 07 Jun, 2016 5 commits