Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7489169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:12:34+00:00 2026-05-29T15:12:34+00:00

On Debian Wheezy, Emacs 23.3.1, running ediff-files with a file that is missing a

  • 0

On Debian Wheezy, Emacs 23.3.1, running ediff-files with a file that is missing a newline at the end results in the error \ No newline at end of file (I hope that’s the correct translation; it’s German \ Kein Zeilenumbruch am Dateiende. on my computer.)

Is it possible to have just a warning instead, so that I can see the diff and work on it (and fix the missing newline)? It’s just a bit tedious to first have ediff fail, then open the file, add the newline, ediff again.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T15:12:35+00:00Added an answer on May 29, 2026 at 3:12 pm

    Try changing the value of the variable ediff-diff-ok-lines-regexp to include the German text (“Kein Zeilenumbruch am Dateiende”):

    (setq ediff-diff-ok-lines-regexp
          (concat
           "^\\("
           "[0-9,]+[acd][0-9,]+\C-m?$"
           "\\|[] "
           "\\|---"
           "\\|.*Warning *:"
           "\\|.*No +newline"
           "\\|.*missing +newline"
           "\\|.*Kein +Zeilenumbruch +am +Dateiende"
           "\\|^\C-m?$"
           "\\)"))
    

    Update: Looking at the source code, it does seem that Ediff doesn’t make any attempt to deal with the issue of localization of messages from diff. It should also be possible to work around this by wrapping diff in a shell script, e.g:

    #!/bin/bash
    LANG=C diff $*
    

    ..then customising the ediff-diff-program to call the wrapper instead:

    (setq ediff-diff-program "~/bin/my-diff.sh")
    

    Other code in the Emacs source directory lisp/vc does seem to handle this, for example vc-hg-state:

    (defun vc-hg-state (file)
      "Hg-specific version of `vc-state'."
       ...
            (with-output-to-string
              (with-current-buffer
                  standard-output
                (setq status
                      (condition-case nil
                          ;; Ignore all errors.
                  (let ((process-environment
                     ;; Avoid localization of messages so we
                     ;; can parse the output.
                     (append (list "TERM=dumb" "LANGUAGE=C")
                         process-environment)))
       ...
    

    It seems a bit strange that Ediff doesn’t also do this, but perhaps I’m missing something.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a remote virtual server running debian that I SSH into. On it
I'm having a debian squeeze machine which has been changed recursively its file permissions
I'm on Debian Lenny if that matters, in terms of me possibly needing something
i am using debian. running my program with time command and want the result
I have a Java application running on Debian OS and communicate with a Windows
Debian stable has git 1.5.6.5 which is missing the --ff-only options in git pull/git
I installed debian lenny, but I was quite surprised that I can't get man
I use debian and g++. When compiling i get error-messages like these: In static
I have a gameserver running on Debian where players can edit an (already-running) php
The situation is: I have one Debian Server running LAMP with one Virtual Host

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.