1. 21 Oct, 2015 2 commits
    • Paul Eggert's avatar
      Include-file cleanup for src directory · 63cfb75f
      Paul Eggert authored
      Omit ‘#include "foo.h"’ unless the file needs foo.h (Bug#21707).
      In a few cases, add ‘#include "foo.h"’ if the file needs foo.h
      but does not include it directly.  As a general rule, a source
      file should include foo.h if it needs the interfaces that foo.h
      defines.
      * src/alloc.c: Don’t include process.h.  Include dispextern.h,
      systime.h.
      * src/atimer.c: Don’t include blockinput.h.
      * src/buffer.c: Include coding.h, systime.h.  Don’t include
      keyboard.h, coding.h.
      * src/callint.c: Don’t include commands.h, keymap.h.
      * src/callproc.c: Don’t include character.h, ccl.h, composite.h,
      systty.h, termhooks.h.
      * src/casetab.c: Don’t include character.h.
      * src/category.c: Don’t include charset.h, keymap.h.
      * src/ccl.h: Don’t include character.h.
      * src/character.c: Don’t include charset.h.
      * src/charset.c: Don’t include disptab.h.
      * src/chartab.c: Don’t include ccl.h.
      * src/cm.c: Don’t include frame.h, termhooks.h.
      * src/cmds.c: Don’t include window.h, dispextern.h.
      * src/coding.c: Don’t include window.h, frame.h.
      * src/composite.c: Include composite.h.  Don’t include window.h,
      font.h.
      * src/data.c: Don’t include syssignal.h, termhooks.h, font.h.
      * src/dbusbind.c: Don’t include frame.h.
      * src/decompress.c: Don’t include character.h.
      * src/dired.c: Don’t include character.h, commands.h, charset.h.
      * src/dispnew.c: Don’t include character.h, indent.h, intervals.h,
      process.h, timespec.h.  Include systime.h.
      * src/doc.c: Include coding.h.  Don’t include keyboard.h.
      * src/editfns.c: Include composite.h.  Don’t include frame.h.
      * src/emacs.c: Include fcntl.h, coding.h.  Don’t include
      commands.h, systty.h..
      * src/fileio.c: Don’t include intervals.h, dispextern.h.
      Include composite.h.
      * src/filelock.c: Don’t include character.h, systime.h.
      * src/fns.c: Don’t include time.h, commands.h, keyboard.h,
      keymap.h, frame.h, blockinput.h, xterm.h.  Include composite.h.
      * src/font.c: Include termhooks.h.
      * src/font.h: Don’t include ccl.h, frame.h.  Add forward decls of
      struct composition_it, struct face, struct glyph_string.
      * src/fontset.c: Don’t include buffer.h, ccl.h, keyboard.h,
      intervals.h, window.h, termhooks.h.
      * src/frame.c: Don’t include character.h, commands.h, font.h.
      * src/frame.h: Don’t include dispextern.h.
      * src/fringe.c: Don’t include character.h.
      * src/ftcrfont.c: Don’t include dispextern.h, frame.h,
      character.h, charset.h, fontset.h.
      * src/ftfont.c: Don’t include frame.h, blockinput.h, coding.h,
      fontset.h.
      * src/ftxfont.c: Don’t include dispextern.h, character.h,
      charset.h, fontset.h.
      * src/gfilenotify.c: Don’t include frame.h, process.h.
      * src/gtkutil.c: Include dispextern.h, frame.h, systime.h.
      Don’t include syssignal.h, buffer.h, charset.h, font.h.
      * src/gtkutil.h: Don’t include frame.h.
      * src/image.c: Include fcntl.h and stdio.h instead of sysstdio.h.
      Don’t include character.h.
      * src/indent.c: Don’t include keyboard.h, termchar.h.
      * src/inotify.c: Don’t include character.h, frame.h.
      * src/insdel.c: Include composite.h.  Don’t include blockinput.h.
      * src/intervals.c: Don’t include character.h, keyboard.h.
      * src/intervals.h: Don’t include dispextern.h, composite.h.
      * src/keyboard.c: Don’t include sysstdio.h, disptab.h, puresize.h.
      Include coding.h.
      * src/keyboard.h: Don’t incldue systime.h.
      * src/keymap.c: Don’t include charset.h, frame.h.
      * src/lread.c: Include dispextern.h and systime.h.
      Don’t include frame.h.  Include systime.h.
      * src/macros.c: Don’t include commands.h, character.h, buffer.h.
      * src/menu.c: Include character.h, coding.h.  Don’t include
      dispextern.h.
      * src/menu.h: Don’t include systime.h.
      * src/minibuf.c: Don’t include commands.h, dispextern.h, syntax.h,
      intervals.h, termhooks.h.
      * src/print.c: Include coding.h.  Don’t include keyboard.h,
      window.h, dispextern.h, termchar.h, termhooks.h, font.h.
      Add forward decl of struct terminal.
      * src/process.c: Don’t include termhooks.h, commands.h,
      dispextern.h, composite.h.
      * src/region-cache.c: Don’t include character.h.
      * src/scroll.c: Don’t include keyboard.h, window.h.
      * src/search.c: Don’t include category.h, commands.h.
      * src/sound.c: Don’t include dispextern.h.
      * src/syntax.c: Don’t include command.h, keymap.h.
      * src/sysdep.c: Don’t include window.h, dispextern.h.
      * src/systime.h: Use ‘#ifdef emacs’, not ‘#ifdef EMACS_LISP_H’,
      * src/term.c: Don’t include systty.h, intervals.h, xterm.h.
      * src/terminal.c: Include character.h.
      Don’t include charset.h, coding.h.
      * src/textprop.c: Don’t include character.h.
      * src/undo.c: Don’t include character.h, commands.h, window.h.
      * src/unexsol.c: Don’t include character.h, charset.h.
      * src/widget.c: Include widget.h.  Don’t include keyboard.h,
      window.h, dispextern.h, blockinput.h, character.h, font.h.
      * src/widgetprv.h: Don’t include widget.h.
      * src/window.c: Don’t include character.h, menu.h, intervals.h.
      * src/xdisp.c: Include composite.h, systime.h.  Don’t include
      macros.h, process.h.
      * src/xfaces.c: Don’t include charset.h, keyboard.h, termhooks.h,
      intervals.h.
      * src/xfns.c: Don’t include menu.h, character.h, intervals.h,
      epaths.h, fontset.h, systime.h, atimer.h, termchar.h.
      * src/xfont.c: Don’t include dispextern.h, fontset.h, ccl.h.
      * src/xftfont.c: Don’t include dispextern.h, character.h, fontset.h.
      * src/xgselect.c: Don’t include timespec.h, frame.h.
      Include systime.h.
      * src/xgselect.h: Don’t include time.h.
      Use a forward decl to struct timespec instead.
      * src/xmenu.c: Don’t include keymap.h, character.h, charset.h,
      dispextern.h.  Include systime.h.
      * src/xml.c: Don’t include character.h.
      * src/xrdb.c [USE_MOTIF]: Don’t include keyboard.h.
      * src/xselect.c: Don’t include dispextern.h, character.h,
      buffer.h, process.h.
      * src/xsmfns.c: Don’t include systime.h, sysselect.h.
      * src/xterm.c: Don’t include syssignal.h, charset.h, disptab.h,
      intervals.h process.h, keymap.h, xgselect.h.  Include composite.h.
      63cfb75f
    • Paul Eggert's avatar
      (/ N) now returns the reciprocal of N · e9af822a
      Paul Eggert authored
      This is more compatible with Common Lisp and XEmacs (Bug#21690).  See:
      http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg01053.html
      * lisp/color.el (color-hue-to-rgb, color-hsl-to-rgb)
      (color-xyz-to-srgb, color-xyz-to-lab):
      * lisp/emacs-lisp/cl-extra.el (cl-float-limits):
      * lisp/net/shr-color.el (shr-color-hue-to-rgb)
      (shr-color-hsl-to-rgb-fractions):
      Exploit the change to simplify the code a bit.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-quo):
      Don’t complain about single-argument calls to ‘/’.
      * src/data.c (arith_driver, float_arith_driver):
      Implement the change.
      e9af822a
  2. 20 Oct, 2015 7 commits
  3. 19 Oct, 2015 7 commits
  4. 18 Oct, 2015 6 commits
  5. 17 Oct, 2015 4 commits
  6. 16 Oct, 2015 12 commits
    • Artur Malabarba's avatar
      * emacs-lisp/package.el: Reload archive-contents if priorities change · 8868b834
      Artur Malabarba authored
      (package--old-archive-priorities): New variable.
      (package-read-all-archive-contents, package-menu--refresh): Use it
      to decide when the `package-archive-contents' needs to be read
      again.
      8868b834
    • Paul Eggert's avatar
      Make src headers idempotent and standalone · 55ba8c02
      Paul Eggert authored
      Redo src/*.h so that each include file is idempotent (that is, can
      be included multiple times with the latter inclusions having no
      effect) and standalone (that is, can be included by itself,
      with no include file other than config.h needed as a prerequisite).
      This is standard practice in GNU programs nowadays.
      * lwlib/lwlib-widget.h, src/buffer.h, src/category.h, src/character.h:
      * src/charset.h, src/coding.h, src/commands.h, src/disptab.h:
      * src/fontset.h, src/gnutls.h, src/indent.h, src/keymap.h, src/macros.h:
      * src/regex.h [emacs]:
      * src/syntax.h, src/systty.h, src/termhooks.h:
      Include lisp.h, for Lisp_Object.
      * src/buffer.h, src/category.h, src/cm.h, src/commands.h, src/disptab.h:
      * src/indent.h, src/intervals.h, src/keyboard.h, src/macros.h:
      * src/process.h, src/puresize.h, src/region-cache.h, src/syntax.h:
      * src/syssignal.h, src/sysstdio.h, src/systty.h, src/termchar.h:
      * src/termopts.h, src/tparam.h, src/unexec.h:
      Protect against multiple inclusion.
      * src/buffer.h: Include character.h, for STRING_CHAR.
      * src/emacsgtkfixed.h (struct frame):
      * src/fontset.h (struct face):
      * src/region-cache.h (struct buffer):
      * src/termhooks.h (struct glyph):
      * src/xsettings.h (struct x_display_info):
      Add possibly-forward decl.
      * src/syntax.h: Include buffer.h, for BVAR.
      * src/sysselect.h: Include lisp.h, for eassume.
      * src/termchar.h: Include <stdio.h>, for FILE.
      * src/widget.h: Include <X11/IntrinsicP.h>, for Widget.
      * src/xsettings.h: Include <X11/Xlib.h>, for XEvent.
      55ba8c02
    • Jürgen Hötzel's avatar
      Handle symlink targets containing spaces in tramp-gvfs.el · 1e1a326c
      Jürgen Hötzel authored
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
      Handle symlink targets containing spaces.
      1e1a326c
    • Artur Malabarba's avatar
      * custom.el (custom-theme-load-path): Demote to defvar · 995b6991
      Artur Malabarba authored
      `custom-theme-load-path' was a defcustom, but it shouldn't be for the
      same reason that `load-path' shouldn't.  Setting it via the customize
      interface is a trap for the user.
      
      Installed themes commonly add themselves to this variable, which means
      its value is not fit for being saved (it will permanently remember dirs
      that don't exist anymore).
      
      This is aggravated by the fact that Emacs always applies the `user'
      theme on top of any theme that's loaded, since this will apply the old
      variable value and remove any new directories that had been recently
      added by themes themselves.
      
      Not to mention, we already have `custom-theme-directory', which is safe
      to customize.
      995b6991
    • Stefan Monnier's avatar
      * lisp/mpc.el: Rename the new toggling commands · ce47ac81
      Stefan Monnier authored
      (mpc-toggle-consume, mpc-toggle-repeat, mpc-toggle-single)
      (mpc-toggle-shuffle): Add "-toggle" in the name.
      ce47ac81
    • Eli Zaretskii's avatar
      Improve the doc string of 'completion-boundaries' · 1158df5f
      Eli Zaretskii authored
      * lisp/minibuffer.el (completion-boundaries): Rename the argument
      TABLE to COLLECTION, for consistency with other high-level
      completion functions.  Document how COLLECTION is called if it
      is a function.  (Bug#21644)
      1158df5f
    • Oleh Krehel's avatar
    • Oleh Krehel's avatar
      Make dired-do-compress work for *.zip files · 7175459d
      Oleh Krehel authored
      * lisp/dired-aux.el (dired-check-process): Transform the top-level
        comment into a docstring.
      (dired-shell-command): New command. This mirrors
      `dired-check-process', but is more user-friendly for passing
      arguments.
      (dired-compress-file-suffixes): Allow to specify the command switches
      along with input (%i) and output (%o) inside the PROGRAM part.
      Add an entry for *.zip files, and update the entry for *.tar.gz files
      to the new style. Update the docstring.
      (dired-compress-file): When PROGRAM matches %i or %o, use the new
      logic.
      (dired-update-file-line): Avoid an error when at end of buffer.
      
      Fixes Bug#21637
      7175459d
    • Eli Zaretskii's avatar
      Minor improvement in documentation of internals · b0d190fb
      Eli Zaretskii authored
      * doc/lispref/internals.texi (Writing Emacs Primitives): Document QUIT.
      b0d190fb
    • Eli Zaretskii's avatar
      Improve documentation of COLLECTION in completion functions · d05410f3
      Eli Zaretskii authored
      * doc/lispref/minibuf.texi (Minibuffer Completion): Add a
      cross-reference to "Programmed Completion".
      
      * src/minibuf.c (Fcompleting_read): Improve the doc string.
      (Bug#21644)
      d05410f3
    • Eli Zaretskii's avatar
      3000d33c
    • Eli Zaretskii's avatar
      Add more release info to etc/HISTORY · 1c8ccba7
      Eli Zaretskii authored
      * etc/HISTORY: Add more release information about 19.x and 20.x
      versions.
      1c8ccba7
  7. 15 Oct, 2015 2 commits