]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid backslash-newline-newline in source code
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 23 May 2019 06:58:55 +0000 (23:58 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 23 May 2019 06:59:36 +0000 (23:59 -0700)
* etc/refcards/Makefile (PDF_FRENCH):
* lib-src/etags.c (LOOP_ON_INPUT_LINES):
* lisp/dabbrev.el (dabbrev-check-other-buffers):
* lisp/org/org-id.el (org-id-link-to-org-use-id):
* lisp/org/org.el (org-support-shift-select, org-file-apps):
* src/alloc.c (CHECK_ALLOCATED_AND_LIVE)
(CHECK_ALLOCATED_AND_LIVE_SYMBOL):
* src/frame.h (FRAME_PIXEL_WIDTH_TO_TEXT_COLS):
* src/regex-emacs.c (PREFETCH_NOLIMIT):
* src/window.h (WINDOW_BUFFER):
Remove backslash-newline that immediately precedes another
newline, as this is not the usual style and is confusing.

etc/refcards/Makefile
lib-src/etags.c
lisp/dabbrev.el
lisp/org/org-id.el
lisp/org/org.el
src/alloc.c
src/frame.h
src/regex-emacs.c
src/window.h

index 469e8fa05cdebde09d4cdd8e28dee21905110bb0..0ba6db5aa283f92cc2eb2696e1a5ae2fa97e00f1 100644 (file)
@@ -40,7 +40,7 @@ PDF_CZECH = \
 PDF_FRENCH = \
        fr-dired-ref.pdf \
        fr-refcard.pdf \
-       fr-survival.pdf \
+       fr-survival.pdf
 
 PDF_GERMAN = de-refcard.pdf
 
index 949ab5a2c6b661f40865182733422d1620d1e73d..6bd04d1f1c30b3e52a38eaf69a368b1c5bf713c4 100644 (file)
@@ -4282,7 +4282,7 @@ Yacc_entries (FILE *inf)
   while (perhaps_more_input (file_pointer)                             \
         && (readline (&(line_buffer), file_pointer),                   \
             (char_pointer) = (line_buffer).buffer,                     \
-            true))                                                     \
+            true))
 
 #define LOOKING_AT(cp, kw)  /* kw is the keyword, a literal string */  \
   ((assert ("" kw), true)   /* syntax error if not a literal string */ \
index f1fae18e74bc4d4bf4c56cd67864108acf6e8417..aa22d6c754e056277d998af901e8963e8ed6d365 100644 (file)
@@ -237,8 +237,7 @@ See also `dabbrev-ignored-buffer-names'."
   :version "21.1")
 
 (defcustom dabbrev-check-other-buffers t
-  "Should \\[dabbrev-expand] look in other buffers?\
-
+  "Should \\[dabbrev-expand] look in other buffers?
 nil: Don't look in other buffers.
 t: Also look for expansions in the buffers pointed out by
    `dabbrev-select-buffers-function'.
index 6a9d729c0a43924c20cffc3a690526bbd5a77fea..44cc7b2f14d1b28de3fe825cfa4be807672daa80 100644 (file)
@@ -83,8 +83,7 @@
 
 (defcustom org-id-link-to-org-use-id nil
   "Non-nil means storing a link to an Org file will use entry IDs.
-\\<org-mode-map>\
-
+\\<org-mode-map>
 The variable can have the following values:
 
 t     Create an ID if needed to make a link to the current entry.
index ce6dd24a83b43dabd89c027832bf1717464163b7..119d0a2566a9af5defd53460e59cc80f1fc2f202 100644 (file)
@@ -863,8 +863,7 @@ depends on, if any."
 
 (defcustom org-support-shift-select nil
   "Non-nil means make shift-cursor commands select text when possible.
-\\<org-mode-map>\
-
+\\<org-mode-map>
 In Emacs 23, when `shift-select-mode' is on, shifted cursor keys
 start selecting a region, or enlarge regions started in this way.
 In Org mode, in special contexts, these same keys are used for
@@ -2259,8 +2258,7 @@ See `org-file-apps'.")
     ("\\.x?html?\\'" . default)
     ("\\.pdf\\'" . default))
   "External applications for opening `file:path' items in a document.
-\\<org-mode-map>\
-
+\\<org-mode-map>
 Org mode uses system defaults for different file types, but
 you can use this variable to set the application for a given file
 extension.  The entries in this list are cons cells where the car identifies
index af4adb3856e818f1c925c84860f87cf757c02f1e..5c5b56d02e9a2d41139aa69325cf51bac687173a 100644 (file)
@@ -6384,7 +6384,7 @@ mark_object (Lisp_Object arg)
   do {                                         \
     CHECK_ALLOCATED ();                                \
     CHECK_LIVE (LIVEP);                                \
-  } while (0)                                  \
+  } while (false)
 
   /* Check both of the above conditions, for symbols.  */
 #define CHECK_ALLOCATED_AND_LIVE_SYMBOL()      \
@@ -6394,7 +6394,7 @@ mark_object (Lisp_Object arg)
        CHECK_ALLOCATED ();                     \
        CHECK_LIVE (live_symbol_p);             \
       }                                                \
-  } while (0)                                  \
+  } while (false)
 
 #else /* not GC_CHECK_MARKED_OBJECTS */
 
index 781063340d8dbc86a278df6562733c3cd4a71d10..fa45a32d6b68fefc5b132061da1951241898b6f2 100644 (file)
@@ -1480,7 +1480,7 @@ FRAME_BOTTOM_DIVIDER_WIDTH (struct frame *f)
     - FRAME_TOTAL_FRINGE_WIDTH (f)                                     \
     - FRAME_SCROLL_BAR_AREA_WIDTH (f)                                  \
     - 2 * FRAME_INTERNAL_BORDER_WIDTH (f))                             \
-   / FRAME_COLUMN_WIDTH (f))                                           \
+   / FRAME_COLUMN_WIDTH (f))
 
 #define FRAME_PIXEL_HEIGHT_TO_TEXT_LINES(f, height)                    \
   (((height)                                                           \
index 8dc698050243208619a9d8722f2af092248b34de..4cb17037c26c81bb8e1f7805f968d5582745e8c4 100644 (file)
@@ -3432,7 +3432,7 @@ static bool bcmp_translate (re_char *, re_char *, ptrdiff_t,
      {                                                                 \
        d = string2;                                                    \
        dend = end_match_2;                                             \
-     }                                                                 \
+     }
 
 /* Test if at very beginning or at very end of the virtual concatenation
    of STRING1 and STRING2.  If only one string, it's STRING2.  */
index fdef407041bd66c6f39b51cb1769e0cfd14591b2..6b0f0e5d07cca8c734883ec951fc2bb0952d7e23 100644 (file)
@@ -595,7 +595,7 @@ wset_next_buffers (struct window *w, Lisp_Object val)
 #define WINDOW_BUFFER(W)                       \
   (WINDOW_LEAF_P(W)                            \
    ? (W)->contents                             \
-   : Qnil)                                     \
+   : Qnil)
 
 /* Return the canonical column width of the frame of window W.  */
 #define WINDOW_FRAME_COLUMN_WIDTH(W) \
@@ -649,7 +649,7 @@ wset_next_buffers (struct window *w, Lisp_Object val)
 #define WINDOW_RIGHTMOST_P(W)                                  \
   (WINDOW_RIGHT_PIXEL_EDGE (W)                                 \
    == (WINDOW_RIGHT_PIXEL_EDGE                                 \
-       (XWINDOW (FRAME_ROOT_WINDOW (WINDOW_XFRAME (W))))))     \
+       (XWINDOW (FRAME_ROOT_WINDOW (WINDOW_XFRAME (W))))))
 
 /* True if window W has no other windows below it on its frame (the
    minibuffer window is not counted in this respect unless W itself is a
@@ -657,13 +657,13 @@ wset_next_buffers (struct window *w, Lisp_Object val)
 #define WINDOW_BOTTOMMOST_P(W)                                 \
   (WINDOW_BOTTOM_PIXEL_EDGE (W)                                        \
    == (WINDOW_BOTTOM_PIXEL_EDGE                                        \
-       (XWINDOW (FRAME_ROOT_WINDOW (WINDOW_XFRAME (W))))))     \
+       (XWINDOW (FRAME_ROOT_WINDOW (WINDOW_XFRAME (W))))))
 
 /* True if window W takes up the full width of its frame.  */
 #define WINDOW_FULL_WIDTH_P(W)                                 \
   (WINDOW_PIXEL_WIDTH (W)                                      \
    == (WINDOW_PIXEL_WIDTH                                      \
-       (XWINDOW (FRAME_ROOT_WINDOW (WINDOW_XFRAME (W))))))     \
+       (XWINDOW (FRAME_ROOT_WINDOW (WINDOW_XFRAME (W))))))
 
 /* Width of right divider of window W.  */
 #define WINDOW_RIGHT_DIVIDER_WIDTH(W)                          \
@@ -1122,7 +1122,7 @@ struct glyph *get_phys_cursor_glyph (struct window *w);
 
 /* True if WINDOW is a valid window.  */
 #define WINDOW_VALID_P(WINDOW)                                 \
-  (WINDOWP (WINDOW) && !NILP (XWINDOW (WINDOW)->contents))     \
+  (WINDOWP (WINDOW) && !NILP (XWINDOW (WINDOW)->contents))
 
 /* A window of any sort, leaf or interior, is "valid" if its
    contents slot is non-nil.  */